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.
/usr/local/www/webroot/DOMAIN/. -
Each environment (staging, production) has a separate folder below it, e.g.
/usr/local/www/webroot/DOMAIN/ENVIRONMENT/. -
The
create_directory_structureFab command creates folderslog,site,site.gitandvirtualenvfor each environment. Web server and application log files are to be put inlog. Foldersite.gitis a bare repository to push changes to, and then undersiteit is pulled. Thesitecontains 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 (settingsmodule,urlsmodule, project-specific applications) are placed in folderPROJECT. Python packages that cannot be installed via PyPI are to be hosted undersite-packages. As for git, they can be commited as submodules in the main repository. -
Fab command
bootstrapinitializes the directory setup described so far.