Layout¶
.
├── .hgignore - ignore file for Mercurial VCS
├── config - package requirements and other configs
├── Makefile - commands for make
├── var
│ ├── development.db - sqlite3 database
│ ├── htdocs - directory that should be handled by webserver in production
│ │ ├── media
│ │ └── static
│ └── mail - directory where mails are stored in development by default
└── project
├── development.py.sample
├── development.py - settings used for development environment
├── production.py - settings used for production environment
├── initial_data.json - default logins and site
├── __init__.py
├── manage.py - standart django commands
├── settings.py - settings for development and production
├── static - static files for /static/
├── templates
├── urls.py
└── wsgi.py - script for WSGI
Configuration files¶
There are 3 settings files: development.py
, production.py
, settings.py
.
By checking if settings files exists it’s determined which environment should be used. If production.py
is present - production environment is used.
When running make
for development environment it creates development.py
by default
if it’s not present.
You can also create development.py manually by running:
make project/development.py