Re: settings.configure() does not allow me to access custom variables in settings.py

2014-07-07 Thread Bill Freeman
I don't know how fussy about not using stuff from django you are, but the following works for me: $ DJANGO_SETTINGS_MODULE=foo.ct python >>> from django.conf import settings >>> settings.INSTALLED_APPS Obviously, you replace "foo" with the name of your project. This prints my installed app

Re: settings.configure() does not allow me to access custom variables in settings.py

2014-07-04 Thread Mike Dewhirst
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. Per

settings.configure() does not allow me to access custom variables in settings.py

2014-07-04 Thread Chen Xu
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. Thanks -- ⚡ Chen Xu ⚡ -- You received

Re: custom variables in settings.py

2008-12-10 Thread Darthmahon
e > > import mysite.settings > > Then just reference it like so: > > {{ settings.MAP_MEDIA }} > > Cheers, > Chris > > On Dec 10, 10:28 am, Leppy <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > I am facing some issues in creating custom variables in setti

Re: custom variables in settings.py

2008-12-10 Thread Darthmahon
ating custom variables in settings.py and > accessing that in a template. > It is possible to access the default settings variable in template just by > calling that variable like {{MEDIA_URL}}. > I created a variable MAP_MEDIA as shown bel

custom variables in settings.py

2008-12-10 Thread Leppy
Hi everyone, I am facing some issues in creating custom variables in settings.py and accessing that in a template. It is possible to access the default settings variable in template just by calling that variable like {{MEDIA_URL}}. I created a variable MAP_MEDIA as shown below: *settings.py