Re: how to use variables in settings.py on template + how to use the media

2011-04-14 Thread Mengu
sorry, i've got you wrong. i thought you wanted to use the constants in your views which were defined in your settings.py file. your real problem is about serving static files. reading http://docs.djangoproject.com/en/dev/howto/static-files/ will help you. On Apr 14, 5:03 pm, GKR wrote: > plz he

Re: how to use variables in settings.py on template + how to use the media

2011-04-14 Thread GKR
plz help on how to use my custom images and css -- 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 django-users+unsubscr...@googlegro

Re: how to use variables in settings.py on template + how to use the media

2011-04-14 Thread Mengu
this will help you out: http://stackoverflow.com/questions/433162/can-i-access-constants-in-settings-py-from-templates-in-django/433209#433209 On Apr 14, 4:33 pm, GKR wrote: > please help -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: how to use variables in settings.py on template + how to use the media

2011-04-14 Thread GKR
please help -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit thi

how to use variables in settings.py on template + how to use the media

2011-04-14 Thread GKR
how to use variables in settings.py on template. eg : [settings.py] -- import os import sys PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "./")) PROJECT_NAME = 'e_book' MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'site_media/')