Skip to content

Commit

Permalink
Add new superuser fixture for public demo site
Browse files Browse the repository at this point in the history
With a private password this time.
  • Loading branch information
codeinthehole committed Apr 12, 2013
1 parent d9b86c5 commit 686ff58
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ demo: install
sites/demo/manage.py syncdb --noinput
sites/demo/manage.py migrate
# Import some core fixtures
sites/demo/manage.py loaddata countries.json sites/_fixtures/pages.json sites/_fixtures/auth.json
sites/demo/manage.py loaddata countries.json sites/_fixtures/pages.json
# Create catalogue (create product classes from fixture than import CSV files)
sites/demo/manage.py loaddata sites/demo/fixtures/auth.json
sites/demo/manage.py loaddata sites/demo/fixtures/product-classes.json sites/demo/fixtures/product-attributes.json
sites/demo/manage.py create_products --class=Books sites/demo/fixtures/books.csv
sites/demo/manage.py create_products --class=Downloads sites/demo/fixtures/downloads.csv
Expand Down
20 changes: 20 additions & 0 deletions sites/demo/fixtures/auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"pk": 1,
"model": "auth.user",
"fields": {
"username": "superuser",
"first_name": "",
"last_name": "",
"is_active": true,
"is_superuser": true,
"is_staff": true,
"last_login": "2013-04-12T10:40:17.625Z",
"groups": [],
"user_permissions": [],
"password": "pbkdf2_sha256$10000$eEakWcLSrX77$OkOhpxDu4YvbtMb8WpeFKnMcJdn49o3OV7McjNZEwTg=",
"email": "superuser@example.com",
"date_joined": "2012-09-12T17:00:02Z"
}
}
]

0 comments on commit 686ff58

Please sign in to comment.