Added a fixture so that the users default have a user to login with and play with permissions.

This commit is contained in:
markotibold 2011-06-25 13:08:46 +02:00
parent 409ee533fd
commit ddd36206bc
5 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,12 @@
- 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

View File

@ -0,0 +1 @@
#for fixture loading

View File

@ -2,5 +2,5 @@ from django.conf.urls.defaults import patterns, url
from permissionsexample.views import ThrottlingExampleView
urlpatterns = patterns('',
url(r'^$', ThrottlingExampleView.as_view(), name='throttled-resource'),
url(r'^$', ThrottlingExampleView.as_view(), name='throttled-resource'),
)

View File

@ -5,4 +5,5 @@ wsgiref==0.1.2
Pygments==1.4
httplib2==0.6.0
Markdown==2.0.3
Pyyaml

View File

@ -89,6 +89,12 @@ TEMPLATE_DIRS = (
# Don't forget to use absolute paths, not relative paths.
)
# for loading initial data
##SERIALIZATION_MODULES = {
# 'yml': "django.core.serializers.pyyaml"
#}
INSTALLED_APPS = (
'django.contrib.auth',
@ -104,6 +110,7 @@ INSTALLED_APPS = (
'objectstore',
'pygments_api',
'blogpost',
'permissionsexample',
)
import os