Browse files

Fixed path.

  • Loading branch information...
1 parent b34db21 commit c4eaf6e0ddb863ca20a1b95b766b4f1239835bd3 Johan Bichel Lindegaard committed Jul 1, 2012
Showing with 5 additions and 8 deletions.
  1. +2 −5 jakobjohan/settings.py
  2. +3 −3 jakobjohan/urls.py
View
7 jakobjohan/settings.py
@@ -4,7 +4,9 @@
import platform
BASE_PATH = os.path.dirname(os.path.abspath(__file__))
+
PRODUCTION_HOSTNAME = "tango"
+DEVELOPMENT_MODE = (platform.node() != PRODUCTION_HOSTNAME)
sys.path.append(BASE_PATH + '/apps')
@@ -13,9 +15,6 @@
)
MANAGERS = ADMINS
-DEVELOPMENT_MODE = (platform.node() != PRODUCTION_HOSTNAME)
-
-
ROOT_URLCONF = 'jakobjohan.urls'
@@ -34,7 +33,6 @@
'LOCATION': '127.0.0.1:11211',
}
}
-
TEMPLATE_DEBUG = DEBUG
# Static files
@@ -73,7 +71,6 @@
'django.contrib.messages.middleware.MessageMiddleware',
)
-
TEMPLATE_DIRS = (
BASE_PATH + '/templates/'
)
View
6 jakobjohan/urls.py
@@ -8,10 +8,10 @@
urlpatterns = patterns('',
url(r'^a/', include(admin.site.urls)),
- url(r'^$', 'views.home', name='home'),
- url(r'^leather-sleeves/$', 'views.sleeves', name='leather-sleeves'),
+ url(r'^$', 'jakobjohan.views.home', name='home'),
+ url(r'^leather-sleeves/$', 'jakobjohan.views.sleeves', name='leather-sleeves'),
url(r'^contact/$', direct_to_template, {'template': 'contact.html'}, name='contact'),
- url(r'^story/$', 'views.story', name='story'),
+ url(r'^story/$', 'jakobjohan.views.story', name='story'),
)

0 comments on commit c4eaf6e

Please sign in to comment.