Commit 0f49f9b2 by Tom Christie

In examples settings, use staticfiles for 1.2, django.contrib.staticfiles otherwise

parent 6207791a
# Settings for djangorestframework examples project # Settings for djangorestframework examples project
import django
import os import os
DEBUG = True DEBUG = True
...@@ -84,19 +85,17 @@ TEMPLATE_DIRS = ( ...@@ -84,19 +85,17 @@ TEMPLATE_DIRS = (
# Don't forget to use absolute paths, not relative paths. # Don't forget to use absolute paths, not relative paths.
) )
# for loading initial data if django.VERSION < (1, 3):
##SERIALIZATION_MODULES = { staticfiles = 'staticfiles'
# 'yml': "django.core.serializers.pyyaml" else:
staticfiles = 'django.contrib.staticfiles'
#}
INSTALLED_APPS = ( INSTALLED_APPS = (
'django.contrib.auth', 'django.contrib.auth',
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.sites', 'django.contrib.sites',
'django.contrib.staticfiles', staticfiles,
'django.contrib.messages', 'django.contrib.messages',
'djangorestframework', 'djangorestframework',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment