Create superuser from fixture

This commit is contained in:
Juda Kaleta 2013-12-01 12:33:09 +01:00
parent 482910ed7a
commit ccf2f12905
3 changed files with 19 additions and 3 deletions

View file

@ -6,12 +6,13 @@ How to run it?
pip install Django
pip install pyyaml
#. Create database (you can create admin account)::
#. Create database::
python manage.py syncdb
python manage.py syncdb --noinput
#. Run testing server::
python manage.py runserver
#. Take a look at http://localhost:8000
#. Take a look at http://localhost:8000 . You can log in to administration with username ``admin``
and password ``admin``.

View file

@ -0,0 +1,15 @@
- fields:
date_joined: 2013-12-01 05:25:05.084549
email: admin@example.com
first_name: 'John'
groups: []
is_active: true
is_staff: true
is_superuser: true
last_login: 2013-12-01 05:25:09.185561
last_name: 'Smith'
password: pbkdf2_sha256$12000$scfDItXHnci7$ZloMPgY2YAhaFelKGqZ7eJB3mCYbxwua8TxNnCerwP8=
user_permissions: []
username: admin
model: auth.user
pk: 1