diff options
| author | Sébastien Piquemal | 2012-02-14 10:10:04 +0200 |
|---|---|---|
| committer | Sébastien Piquemal | 2012-02-14 10:10:04 +0200 |
| commit | c04cb5145c4398cfac090ca7eef032296a04446f (patch) | |
| tree | f556b30b0af21980d599bd716a82cfc997679a6f /examples/settings.py | |
| parent | 821844bb11e5262fb0dfc2fecf2add8fe18d3210 (diff) | |
| parent | ba1e3b46998254e12578d75428669751e105735b (diff) | |
| download | django-rest-framework-c04cb5145c4398cfac090ca7eef032296a04446f.tar.bz2 | |
merged with trunk
Diffstat (limited to 'examples/settings.py')
| -rw-r--r-- | examples/settings.py | 13 |
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', |
