aboutsummaryrefslogtreecommitdiffstats
path: root/examples/settings.py
diff options
context:
space:
mode:
authorSébastien Piquemal2012-02-14 10:10:04 +0200
committerSébastien Piquemal2012-02-14 10:10:04 +0200
commitc04cb5145c4398cfac090ca7eef032296a04446f (patch)
treef556b30b0af21980d599bd716a82cfc997679a6f /examples/settings.py
parent821844bb11e5262fb0dfc2fecf2add8fe18d3210 (diff)
parentba1e3b46998254e12578d75428669751e105735b (diff)
downloaddjango-rest-framework-c04cb5145c4398cfac090ca7eef032296a04446f.tar.bz2
merged with trunk
Diffstat (limited to 'examples/settings.py')
-rw-r--r--examples/settings.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/examples/settings.py b/examples/settings.py
index 082ba9d3..d7da6b0a 100644
--- a/examples/settings.py
+++ b/examples/settings.py
@@ -1,4 +1,5 @@
# Settings for djangorestframework examples project
+import django
import os
DEBUG = True
@@ -84,19 +85,17 @@ TEMPLATE_DIRS = (
# Don't forget to use absolute paths, not relative paths.
)
-# for loading initial data
-##SERIALIZATION_MODULES = {
- # 'yml': "django.core.serializers.pyyaml"
-
-#}
-
+if django.VERSION < (1, 3):
+ staticfiles = 'staticfiles'
+else:
+ staticfiles = 'django.contrib.staticfiles'
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
- 'django.contrib.staticfiles',
+ staticfiles,
'django.contrib.messages',
'djangorestframework',