diff options
| author | Tom Christie | 2012-02-07 11:01:43 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-02-07 11:01:43 +0000 |
| commit | 0f49f9b2b5c4e36c6edbb9b135e5653bdec46ce2 (patch) | |
| tree | 9b73a704dcfdc1b1c317fc8b0e2ed4ebf7122e14 /examples/settings.py | |
| parent | 6207791af1702ec4a80d689b39ca4e4d1c9d8157 (diff) | |
| download | django-rest-framework-0f49f9b2b5c4e36c6edbb9b135e5653bdec46ce2.tar.bz2 | |
In examples settings, use staticfiles for 1.2, django.contrib.staticfiles otherwise
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 a8846b1b..5ff9fd0f 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', |
