#18277 : Passing additional context to startproject command

37 views
Skip to first unread message

Dominique Guardiola Falco

unread,
May 15, 2012, 9:53:56 AM5/15/12
to django-d...@googlegroups.com
Jezdez said he wanted to discuss the point of this feature.
I posted a very simple working patch (I only have a yellow belt in django/python)
As this was advertised as possible in the docs, I wanted to pass more variables to the project template rendering command (./manage.py startproject --template)

Example use case : in order to make a valid wsgi.py file, pass the virtualenv site-packages folder path

Now for the discussion of is it a good idea : the command in itself empowers us to create our own templates
Big apps already use this kind of template-base-project : satchmo and mezzanine are two examples. I'm sure they could also benefit from this additional context feature.


Dominique
http://quinode.fr/

Florian Apolloner

unread,
May 16, 2012, 6:55:49 AM5/16/12
to django-d...@googlegroups.com
On Tuesday, May 15, 2012 3:53:56 PM UTC+2, Dominique Guardiola Falco wrote:
Example use case : in order to make a valid wsgi.py file, pass the virtualenv site-packages folder path

Why would your wsgi file need to know the site-packages folder? Shouldn't the external hosting mechanism configure that properly?!

Cheers,
Florian 

Dominique Guardiola Falco

unread,
May 16, 2012, 7:32:40 AM5/16/12
to django-d...@googlegroups.com

Why would your wsgi file need to know the site-packages folder? Shouldn't the external hosting mechanism configure that properly?!

It was just an example of using additional context
I don't know which mecanism you're mentioning. My WSGI file follows what you can read here about virtualenv and mod_wsgi:
http://code.google.com/p/modwsgi/wiki/VirtualEnvironments
Reply all
Reply to author
Forward
0 new messages