Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
a utility script to generate boilerplate settings files for new django projects
JavaScript Python
branch: master

This branch is 26 commits ahead of frozenskys:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
django
flask
LICENSE
README.rst
generate_site.py

README.rst

django-site-gen

a utility script for generating skeleton django sites (and now support for other frameworks like flask).

What it creates

assuming a base directory of /home/user/envs/, django-site-gen will create the following when executed like so:

python generate_site.py twitter 9001
  • envs/twitter/ - the root directory of django site - a virtualenv
  • envs/twitter/apache/ - where the wsgi file lives
  • envs/twitter/conf/ - apache, gunicorn and nginx confs for local and production
  • envs/twitter/logs/ - apache, gunicorn and nginx logs
  • envs/twitter/twitter/ - where the site, site apps, settings, etc live
  • envs/twitter/twitter/media/ - site media served by nginx
  • envs/twitter/twitter/templates/ - site template dirs

if you want to use the flask framework, django-site-gen will create the following:

python generate_site.py flask twitter 9001
  • envs/twitter/ - the root directory of flask site - a virtualenv
  • envs/twitter/conf/ - gunicorn and nginx confs for local and production
  • envs/twitter/logs/ - gunicorn and nginx logs
  • envs/twitter/twitter/ - where the site and sqlite db live
  • envs/twitter/twitter/static/ - site media served by nginx
  • envs/twitter/twitter/templates/ - site template dirs
Something went wrong with that request. Please try again.