Расположение фаилов Django
Мне чтото лень переводить, тут и так все понятно
blog.zacharyvoase.com/2010/02/03/django-project-conventions/
blog.zacharyvoase.com/2010/02/03/django-project-conventions/
SITE_ROOT/
|-- bin/ # Part of the virtualenv
|-- cache/ # A filesystem-based cache
|-- db/ # Store SQLite files in here (during development)
|-- include/ # Part of the virtualenv
|-- lib/ # Part of the virtualenv
|-- log/ # Log files
|-- pid/ # PID files
|-- share/ # Part of the virtualenv
|-- sock/ # UNIX socket files
|-- tmp/ # Temporary files
`-- uploads/ # Site uploads
PROJECT_ROOT/
|-- apps/ # Site-specific Django apps
|-- etc/ # A symlink to an `etcs/` sub-directory
|-- etcs/ # Assorted plain-text configuration files
|-- libs/ # Site-specific Python libs
|-- media/ # Static site media (images, stylesheets, JavaScript)
|-- settings/ # Settings directory
|-- templates/ # Site-wide Django templates
|-- .hgignore # VCS ignore file (can be .gitignore, .cvsignore, etc)
|-- README # Instructions/assistance for other developers/admins
|-- REQUIREMENTS # pip dependencies file
|-- __init__.py # Makes the project root a Python package
`-- urls.py # Root URLconf
settings/
|-- __init__.py # Empty; makes this a Python package
|-- common.py # All the common settings are defined here
|-- development.py # Settings for development
|-- production.py # Settings for production
`-- staging.py # Settings for staging
SITE_ROOT
|-- PROJECT_ROOT/
| |-- apps/
| |-- etc/
| |-- etcs/
| |-- libs/
| |-- media/
| |-- settings/
| | |-- __init__.py
| | |-- common.py
| | |-- development.py
| | |-- production.py
| | `-- staging.py
| |-- templates/
| |-- README
| |-- REQUIREMENTS
| |-- __init__.py
| `-- urls.py
|-- bin/
|-- db/
|-- include/
|-- lib/
|-- pid/
|-- share/
|-- sock/
|-- tmp/
`-- uploads/
Нет комментариев