mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-16 21:30:23 +00:00
Create superuser from fixture
This commit is contained in:
parent
482910ed7a
commit
ccf2f12905
3 changed files with 19 additions and 3 deletions
|
|
@ -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``.
|
||||
|
|
|
|||
15
example_project/example_project/fixtures/initial_data.yaml
Normal file
15
example_project/example_project/fixtures/initial_data.yaml
Normal 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
|
||||
0
example_project/example_project/models.py
Normal file
0
example_project/example_project/models.py
Normal file
Loading…
Reference in a new issue