The idea behind this project is to fork this repo when you are starting a new Django app, then go to town customizing it. It will include normal base Wilcox Development Solutions tools for creating Django apps.
Booting Up The Project
$ paver paver.virtual.bootstrap $ python bootstrap.py # (coffee time now, it'll take a minute...) $ source virtual-env/bin/activate $ django-admin.py startproject YOUR PROJECT
This will also install a paver wrapper over manage.py. You can delete this or use this, whatever.
Now configure your django project for all the apps that came in, by:
$ `paver update_paver_with_git_support` # updates your paver to one that has (rudimentary) git support $ paver setup_project YOURPROJECT
What this gives you after you setup_project (and things to configure)
- Set up your database information in `user_setup.py
- Set up templates/base.html with your general site layout
Pull this setups and supporting framework out so others can use it. (
is very much considered a test bed for a reusable framework)
Because ultimately I'd like to hook it up to my Turbogears work too
TODOs for that
Rethink how tasks are registered. Feels like too much boilerplate going on to create a simple task.
If you get odd errors like:
$ python bootstrap.py New python executable in venv/bin/python ERROR: The executable venv/bin/python is not functioning ERROR: It thinks sys.prefix is '/System/Library/Frameworks/Python.framework/Versions/2.6' (should be '/Users/aias/Development/HgBased/wd_django_bootstrap/venv') ERROR: virtualenv is not compatible with this system or executable
Please do two things:
- Make sure you're running the latest virtualenv (1.5.1, of this writting)
If you're using a non system Python as your standard Python (
which pythonto check) Forcefully use the System supplied one.