On 5/07/2014 7:12 AM, Chen Xu wrote:
Hi Everyone,
I want to access some variables in my settings.py without starting my
server, I know I will have to run settings.configure(); however, running
settings.configure() does not allow me to access my custom variables.

What should I do with that.

Perhaps read in the settings file and look for the settings of interest using plain python. Should not take too long and it would make a useful little utility. If necessary, hack settings.configure() to use your utility when it doesn't find a Django setting. Maybe submit the resulting improvement as a patch?

Mike



Thanks

--
âš¡ Chen Xu âš¡

--
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 django-users+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CACac-qbCUJ3WCDVN022%3DU6nnh40X4tYPiW8oJ6q%3DY_LTGN9Bhw%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CACac-qbCUJ3WCDVN022%3DU6nnh40X4tYPiW8oJ6q%3DY_LTGN9Bhw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/53B748C2.1010306%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

Reply via email to