Use app for Django 1.2

This commit is contained in:
Tom Christie 2012-02-07 11:22:47 +00:00
parent 0f49f9b2b5
commit cbac9244ac

View File

@ -1,7 +1,10 @@
from django.conf.urls.defaults import patterns, include, url from django.conf.urls.defaults import patterns, include
from django.conf import settings
from sandbox.views import Sandbox from sandbox.views import Sandbox
try:
from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib.staticfiles.urls import staticfiles_urlpatterns
except ImportError: # Django <= 1.2
from staticfiles.urls import staticfiles_urlpatterns
urlpatterns = patterns('', urlpatterns = patterns('',
(r'^$', Sandbox.as_view()), (r'^$', Sandbox.as_view()),