Permalink
Browse files

Added default users and set the login_redirect_url.

  • Loading branch information...
1 parent 2e85bc3 commit 178b09dde5790b42dfd44401daab9d3e1b9852ea @markotibold markotibold committed Oct 28, 2012
Showing with 76 additions and 0 deletions.
  1. +74 −0 snippets/fixtures/initial_data.json
  2. +2 −0 tutorial/settings.py
@@ -0,0 +1,74 @@
+[
+ {
+ "pk": 2,
+ "model": "auth.user",
+ "fields": {
+ "username": "aziz",
+ "first_name": "",
+ "last_name": "",
+ "is_active": true,
+ "is_superuser": false,
+ "is_staff": false,
+ "last_login": "2012-10-28T21:36:57.799Z",
+ "groups": [],
+ "user_permissions": [],
+ "password": "pbkdf2_sha256$10000$2x3LOiFCb9sq$3jiN4zgb3wYHQ9fpn/elUrcn1S1Bq/q0djZFBjb8Y2w=",
+ "email": "",
+ "date_joined": "2012-10-28T21:36:57.799Z"
+ }
+ },
+ {
+ "pk": 3,
+ "model": "auth.user",
+ "fields": {
+ "username": "amy",
+ "first_name": "",
+ "last_name": "",
+ "is_active": true,
+ "is_superuser": false,
+ "is_staff": false,
+ "last_login": "2012-10-28T21:42:34.081Z",
+ "groups": [],
+ "user_permissions": [],
+ "password": "pbkdf2_sha256$10000$wjy2WvTgw1Ro$oR8pVFHIBqZUmD9XEHdRl5m4TxWOF+qnvZn/q+npTlc=",
+ "email": "",
+ "date_joined": "2012-10-28T21:42:34.081Z"
+ }
+ },
+ {
+ "pk": 4,
+ "model": "auth.user",
+ "fields": {
+ "username": "max",
+ "first_name": "",
+ "last_name": "",
+ "is_active": true,
+ "is_superuser": false,
+ "is_staff": false,
+ "last_login": "2012-10-28T21:42:45.711Z",
+ "groups": [],
+ "user_permissions": [],
+ "password": "pbkdf2_sha256$10000$NhDNt8GNYfjC$0FlcsJxt8Sac0dvGv+xcaUVSUfh1UYZfWEq3C1WoHjc=",
+ "email": "",
+ "date_joined": "2012-10-28T21:42:45.711Z"
+ }
+ },
+ {
+ "pk": 5,
+ "model": "auth.user",
+ "fields": {
+ "username": "jose",
+ "first_name": "",
+ "last_name": "",
+ "is_active": true,
+ "is_superuser": false,
+ "is_staff": false,
+ "last_login": "2012-10-28T21:43:03.591Z",
+ "groups": [],
+ "user_permissions": [],
+ "password": "pbkdf2_sha256$10000$ibnHXtPQKwBN$Kab9tTROT6bpxnAI1imgb0kdlAmBuAQ5Z0fAzHbkL68=",
+ "email": "",
+ "date_joined": "2012-10-28T21:43:03.591Z"
+ }
+ }
+]
View
@@ -156,3 +156,5 @@
if os.environ.get('HEROKU'): # heroku config:set HEROKU=1
import dj_database_url
DATABASES['default'] = dj_database_url.config()
+
+LOGIN_REDIRECT_URL = '/'

0 comments on commit 178b09d

Please sign in to comment.