Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
0f49f9b2
Commit
0f49f9b2
authored
Feb 07, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In examples settings, use staticfiles for 1.2, django.contrib.staticfiles otherwise
parent
6207791a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
examples/settings.py
+6
-7
No files found.
examples/settings.py
View file @
0f49f9b2
# 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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment