On 09/05/2014 03:11 PM, Marc Tamlyn wrote:
> Yup, that works. The issue is that most users never explicitly call
> django.setup(), so they need to know how to modify manage.py and wsgi.py
> to do
> 
> conf = MyProjectConfig()
> django.setup(conf)
> <something here>
> 
> In the case of wsgi.py this isn't too obtuse, but django.setup() is here
> - 
> https://github.com/django/django/blob/master/django/core/management/__init__.py#L310
> for management commands. Not the easiest place to customise!

Yes, that approach would definitely require some thinking (which I
haven't fully done yet) about how best to get a custom ProjectConfig
inserted into both the wsgi.py and manage.py entry-points.

Carl

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" 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 http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/540A289A.9070509%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to