I have a working project template that I can use with the new "--template" option of the startproject management command
Now Iwanted to pass more variables in the template_context, and the doc [1] says :
The
template context used is:
- Any option passed to the startproject command
- project_name -- the project name as passed to the command
- project_directory -- the full path of the newly created project
- secret_key -- a random key for the SECRET_KEY setting
My question is : what is the command line syntax to pass these options ?
when I type for example :
django-admin.py startproject --template=/home/admin/tmpl/ --myvar="hey" a-new-project
I get : django-admin.py: error: no such option: --myvar
Dominique Guardiola
http://www.quinode.fr/[1]
https://docs.djangoproject.com/en/1.4/ref/django-admin/#django-admin-startproject