First thing you need to do is import your settings file at the top of your .py file
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 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* > .................... > MAP_MEDIA = 'var/www/map/' > > How to access this varible in template without rendering from a .py file? > Any help would be appreciated. > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---