Permalink
Browse files

Added development fixture. Beware that ./manage.py syncdb now always …

…re-creates users.

Usage is more or less:
rm limuweb.sqlite; ./manage.py syncdb --noinput

And log in as admin/admin or user/user.
  • Loading branch information...
1 parent 429b4ee commit 443093a6ccf64f0e93cb390c077607733a080a77 @tanelikaivola committed Apr 15, 2011
Showing with 38 additions and 0 deletions.
  1. +38 −0 limuweb/global/fixtures/initial_data.json
@@ -0,0 +1,38 @@
+[
+ {
+ "pk": 1,
+ "model": "auth.user",
+ "fields": {
+ "username": "admin",
+ "first_name": "",
+ "last_name": "",
+ "is_active": true,
+ "is_superuser": true,
+ "is_staff": true,
+ "last_login": "2011-04-15 23:43:56",
+ "groups": [],
+ "user_permissions": [],
+ "password": "sha1$a9d79$e40cab40a5a30dd29d5421bc77e8d90115081534",
+ "email": "admin@localhost",
+ "date_joined": "2011-04-15 23:43:56"
+ }
+ },
+ {
+ "pk": 2,
+ "model": "auth.user",
+ "fields": {
+ "username": "user",
+ "first_name": "",
+ "last_name": "",
+ "is_active": true,
+ "is_superuser": false,
+ "is_staff": false,
+ "last_login": "2011-04-15 23:43:56",
+ "groups": [],
+ "user_permissions": [],
+ "password": "sha1$5a3f5$cfbc5db4aa68c115ecb10bd98d92a7869896c018",
+ "email": "user@localhost",
+ "date_joined": "2011-04-15 23:43:56"
+ }
+ }
+]

0 comments on commit 443093a

Please sign in to comment.