A small django app that provides an enhanced startapp management command. An extra parameter called extra_context is supplied to allow for more flexible app templates.
Project description
Installation
==========
Installing:
easy_install django-startappextracontext
or:
pip install django-startappextracontext
Then add `startappextracontext` to your `INSTALLED_APPS`:
INSTALLED_APPS = (
#... your other apps
('startappextracontext'),
)
Example usage
===========
To create an new app called `my_stuff` from a custom template residing in `~/my-custom-app-template` with the
custom variable `model_name` with value `Stuff` you can do the following:
./manage.py startappextracontext --template=~/my-custom-app-template --extra-context=[model_name]Stuff my_stuff
==========
Installing:
easy_install django-startappextracontext
or:
pip install django-startappextracontext
Then add `startappextracontext` to your `INSTALLED_APPS`:
INSTALLED_APPS = (
#... your other apps
('startappextracontext'),
)
Example usage
===========
To create an new app called `my_stuff` from a custom template residing in `~/my-custom-app-template` with the
custom variable `model_name` with value `Stuff` you can do the following:
./manage.py startappextracontext --template=~/my-custom-app-template --extra-context=[model_name]Stuff my_stuff
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-startappextracontext-0.1.tar.gz
.
File metadata
- Download URL: django-startappextracontext-0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f836b3d084efe3b01d8cad6f2b993bcc06d39dd4e2d3f9dfcded01d6abf2afe |
|
MD5 | 5aac6e3a1cb19e1a308a3acf5ca31c52 |
|
BLAKE2b-256 | 31ef912b42639fac33638554e153bd30527b18615455ced2c36e3e8374db6e8b |