Browse Source

settings.py: add some templates into TEMPLATE_DIRS

pull/1/head
Hidden Z 14 years ago
parent
commit
6e9dd89fc0
  1. 4
      web/settings.py

4
web/settings.py

@ -1,5 +1,8 @@
# Django settings for web project. # Django settings for web project.
import os
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
DEBUG = True DEBUG = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
@ -81,6 +84,7 @@ TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows. # Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths. # Don't forget to use absolute paths, not relative paths.
os.path.join(PROJECT_ROOT, 'templates/'),
) )
INSTALLED_APPS = ( INSTALLED_APPS = (

Loading…
Cancel
Save