Did you find a solution to that?

On Saturday, May 5, 2012 at 2:48:28 PM UTC+3, Dom Guardiola wrote:
>
> 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 
> <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
>
>
> 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
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/aec83857-47fc-4131-9623-458fd39b8b06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to