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
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
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
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.
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/')
5 matches
Mail list logo