# Django settings for ee project.
from dbsettings import *
+import os
+
+PROJECT_DIR = os.path.dirname(__file__)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
- '/home/matthijs/docs/src/django/ee/templates',
+ os.path.join(PROJECT_DIR, 'templates'),
)
INSTALLED_APPS = (
from django.conf.urls.defaults import *
from ee.influences.models import Character
from ee.influences.models import Influence
+import os
chars_dict = {
'queryset': Character.objects.all(),
if settings.DEBUG:
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
- {'document_root': '/home/matthijs/docs/src/django/ee/static/'}),
+ {'document_root': os.path.join(settings.PROJECT_DIR, 'static')}),
)