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
ddd36206
Commit
ddd36206
authored
Jun 25, 2011
by
markotibold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a fixture so that the users default have a user to login with and play with permissions.
parent
409ee533
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
0 deletions
+22
-0
examples/permissionsexample/fixtures/initial_data.yaml
+12
-0
examples/permissionsexample/models.py
+2
-0
examples/permissionsexample/urls.py
+0
-0
examples/requirements.txt
+1
-0
examples/settings.py
+7
-0
No files found.
examples/permissionsexample/fixtures/initial_data.yaml
0 → 100644
View file @
ddd36206
-
fields
:
first_name
:
'
'
groups
:
[]
is_active
:
true
is_staff
:
true
is_superuser
:
true
last_name
:
'
'
password
:
sha1$b3dff$671b4ab97f2714446da32670d27576614e176758
user_permissions
:
[]
username
:
test
model
:
auth.user
pk
:
2
examples/permissionsexample/models.py
0 → 100644
View file @
ddd36206
#for fixture loading
\ No newline at end of file
examples/permissionsexample/urls.py
View file @
ddd36206
examples/requirements.txt
View file @
ddd36206
...
@@ -5,4 +5,5 @@ wsgiref==0.1.2
...
@@ -5,4 +5,5 @@ wsgiref==0.1.2
Pygments==1.4
Pygments==1.4
httplib2==0.6.0
httplib2==0.6.0
Markdown==2.0.3
Markdown==2.0.3
Pyyaml
examples/settings.py
View file @
ddd36206
...
@@ -89,6 +89,12 @@ TEMPLATE_DIRS = (
...
@@ -89,6 +89,12 @@ 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
##SERIALIZATION_MODULES = {
# 'yml': "django.core.serializers.pyyaml"
#}
INSTALLED_APPS
=
(
INSTALLED_APPS
=
(
'django.contrib.auth'
,
'django.contrib.auth'
,
...
@@ -104,6 +110,7 @@ INSTALLED_APPS = (
...
@@ -104,6 +110,7 @@ INSTALLED_APPS = (
'objectstore'
,
'objectstore'
,
'pygments_api'
,
'pygments_api'
,
'blogpost'
,
'blogpost'
,
'permissionsexample'
,
)
)
import
os
import
os
...
...
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