Skip to content

polylith/django-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Project Template

A template for creating django projects for the polylith/entwicklerheld platform. It works with ansible, because we need to generate not only python/django files but also deployment files ans so on.

Development

  • If you want to edit the template, use the following delimiter:
    • Block Start: @@
    • Block End: @@
    • Variable Start: @=
    • Variable End: =@

Usage:

  • You need to choose a project_name. This should ideally be consist of one word or a maximum of two words connected with an - (minus).
  • You need to choose a description. about the purpose of the service.
  • Switch to the folder where the project should be created. The template don't create a parent folder named after project_name.
  • Run: docker run -it -v $(pwd):/data eu.gcr.io/polylith-177713/django-template --extra-vars "project_name=YOUR_APP_NAME description='YOUR DESCRIPTION'"
  • Copy generated directory to your desired destination.

Steps to do manually afterwards