Boilerplate for initializing a new Django project
It contains several start-up files and an empty Django project.
Replace all instances of string
PROJECT with the actual project name.
Fork me and customize it to fit your needs.
I use the following directory setup pattern for my projects.
Every site is bound to a directory given by its domain name, e.g.
Each environment (staging, production) has a separate folder below it, e.g.
create_directory_structureFab command creates folders
virtualenvfor each environment. Web server and application log files are to be put in
site.gitis a bare repository to push changes to, and then under
siteit is pulled. The
sitecontains everything related to the website (application code, media, configuration files, etc.).
All the startup-up files and templates this boilerplate provides go directly in
site. Django based codes (
urlsmodule, project-specific applications) are placed in folder
PROJECT. Python packages that cannot be installed via PyPI are to be hosted under
site-packages. As for git, they can be commited as submodules in the main repository.
bootstrapinitializes the directory setup described so far.