Skip to main content

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

Project description

============
dj-scaffold
============

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.


dj-scaffold.py
==============

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

dj-scaffold.py 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
-------------------

|+docs/
|+env/ #python virtual env, created by scripts/create_env.py
|~requirements.txt
|~scripts/ #some scripts for this project
| |-create_env.py #initialize python virtual env and install requirements
| `-env.rc #start python virtual env. Create $mg as a shortcut for python manger.py. 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
| | |-__init__.py
| | |-base.py #base settings
| | |-dev.py #settings for develop environment
| | |-local.sample
| | |-pre.sample #you can create pre.py to set which settings file you want to use(default is dev)
| | `-production.py ##settings for production environment
| `+templates/ #templates folder
|+tools/
`~deploy/
`-dj_scaffold.wsgi

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

lbstartapp
===============================

add dj_scaffold to INSTALLED_APPS.
run commend::

python manage.py 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 details)

Uploaded Source

File details

Details for the file dj-scaffold-1.0.6.tar.gz.

File metadata

  • Download URL: dj-scaffold-1.0.6.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dj-scaffold-1.0.6.tar.gz
Algorithm Hash digest
SHA256 f7dbec52a1747bb0f3fd02076d9072deecedf5cd7a9ae3eade3fde2f15755747
MD5 b2d0e590f8016756eee45fbda63e1e47
BLAKE2b-256 ff3d075a16875c0e465230064f8afbacf55121a31227be1b620ff45e349f8694

See more details on using hashes here.

Supported by

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