Skip to main content

Create a Django project layout based on vicalloy'sbest practices.

Project description


dj-scaffold installs a script which allows the easy creation of a standard
Django project layout.
dj-scaffold add a commend lbstartapp to django, which allows the easy creation
of a standard Django app layout.

After installing dj-scaffold, simply run the following command (from within
the directory in where the new project directory should be created):: project_name

The script will prompt for values to replace boilerplate variables with. These
variables allow for both the file contents and path names to be customized to
this specific project.

directory structure

|+env/ #python virtual env, created by scripts/
|~scripts/ #some scripts for this project
| | #initialize python virtual env and install requirements
| `-env.rc #start python virtual env. Create $mg as a shortcut for python you can use $mg in any folder.
|~sites/ #django's project files. Added some default settings. default db is sqlite, set up template folder and static folder for project.
| |+media/ #media folder
| |+static/ #static folder(css/js...)
| |~settings/ #settings files
| | |
| | | #base settings
| | | #settings for develop environment
| | |-local.sample
| | |-pre.sample #you can create to set which settings file you want to use(default is dev)
| | ` ##settings for production environment
| `+templates/ #templates folder

note: project's app put in sites/ folder. sites/you app/


add dj_scaffold to INSTALLED_APPS.
run commend::

python lbstartapp app_name

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dj-scaffold-1.0.6.tar.gz (11.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page