Sorry to cross-post this, as I just posted it on django-users, but it's perhaps a little problem with the django documentation here
I have a working project template that I can use with the new "--template" option of the startproject management command I wanted to pass more variables in the template_context, and the doc [1] says : The template context<https://docs.djangoproject.com/en/1.4/ref/templates/api/#django.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<https://docs.djangoproject.com/en/1.4/ref/settings/#std:setting-SECRET_KEY>setting But when I type for example : django-admin.py startproject --template=/home/admin/tmpl/ --myvar="hey" mynewprojectname I get : django-admin.py: error: no such option: --myvar TemplateCommand(BaseCommand) uses *optparse*, and from what I read on this module, it's normal that optparse refuses options that were not defined before ? Am I missing a specific syntax to use here or does the documentation is wrong ? Thanks for your help [1] https://docs.djangoproject.com/en/1.4/ref/django-admin/#django-admin-startproject Dominique Guardiola http://www.quinode.fr/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/QEIR-fl7n4wJ. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.