Skip to content

Instantly share code, notes, and snippets.

@squiddy
Created December 15, 2011 18:02
Show Gist options
  • Save squiddy/1482109 to your computer and use it in GitHub Desktop.
Save squiddy/1482109 to your computer and use it in GitHub Desktop.
codespeed django 1.2
diff --git a/example/settings.py b/example/settings.py
index 5d6f346..da47af2 100644
--- a/example/settings.py
+++ b/example/settings.py
@@ -98,7 +98,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
- 'django.core.context_processors.static',
+ 'staticfiles.context_processors.static',
'django.core.context_processors.request',
)
@@ -108,7 +108,7 @@ INSTALLED_APPS = (
'django.contrib.sessions',
#'django.contrib.sites',
'django.contrib.admin',
- 'django.contrib.staticfiles',
+ 'staticfiles',
'codespeed',
'south',
'tastypie',
diff --git a/example/urls.py b/example/urls.py
index 34c3fca..b2d397f 100644
--- a/example/urls.py
+++ b/example/urls.py
@@ -27,5 +27,5 @@ urlpatterns += patterns(
if settings.DEBUG:
# needed for development server
- from django.contrib.staticfiles.urls import staticfiles_urlpatterns
+ from staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment