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
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
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
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
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
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
6 matches
Mail list logo