Skip to content
Snippets Groups Projects
Commit f75037c7 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Clarify the loading the fixtures

parent 6a9e9690
No related branches found
No related tags found
No related merge requests found
Pipeline #1785 passed
...@@ -25,15 +25,25 @@ Then, you can setup the database:: ...@@ -25,15 +25,25 @@ Then, you can setup the database::
$ docker compose run django ./manage.py migrate $ docker compose run django ./manage.py migrate
And load the fixtures:: You can the load all the fixtures. This loads data for the authentication
(users, groups and permissions) and for the program app (categories, funding
categories, hosts, languages, music focus, recurrence rules, shows, topics and
types).
This provides enough data to get started::
$ docker compose run django ./manage.py loaddata fixtures/*/*.json $ docker compose run django ./manage.py loaddata fixtures/*/*.json
Or, if you prefer, you can just create a super user after setting up the Alternatively, if you prefer, you can just create a super user after setting up
database:: the database::
$ docker compose run django python manage.py createsuperuser $ docker compose run django python manage.py createsuperuser
The only required fixtures are the recurrence rules, these are needed to create
schedules::
$ docker compose run django ./manage.py loaddata fixtures/program/rrule.json
Then, you can create a RSA Key and the clients for `dashboard` and `tank`:: Then, you can create a RSA Key and the clients for `dashboard` and `tank`::
$ docker compose run django ./manage.py creatersakey $ docker compose run django ./manage.py creatersakey
...@@ -65,7 +75,6 @@ venv ...@@ -65,7 +75,6 @@ venv
If you really don't want to use Docker, you can install `steering` using a If you really don't want to use Docker, you can install `steering` using a
virtual environment. virtual environment.
Create and activate a virtual environment:: Create and activate a virtual environment::
$ python3.9 -m venv venv $ python3.9 -m venv venv
...@@ -80,7 +89,6 @@ Then, you can setup the database:: ...@@ -80,7 +89,6 @@ Then, you can setup the database::
(venv) $ ./manage.py migrate (venv) $ ./manage.py migrate
And load the fixtures:: And load the fixtures::
(venv) $ ./manage.py loaddata fixtures/*/*.json (venv) $ ./manage.py loaddata fixtures/*/*.json
...@@ -90,6 +98,11 @@ database:: ...@@ -90,6 +98,11 @@ database::
(venv) $ manage.py createsuperuser (venv) $ manage.py createsuperuser
The only required fixtures are the recurrence rules, these are needed to create
schedules::
$ docker compose run django ./manage.py loaddata fixtures/program/rrule.json
Then, you can create a RSA Key and the clients for `dashboard` and `tank`:: Then, you can create a RSA Key and the clients for `dashboard` and `tank`::
(venv) $ ./manage.py creatersakey (venv) $ ./manage.py creatersakey
...@@ -99,3 +112,4 @@ Then, you can create a RSA Key and the clients for `dashboard` and `tank`:: ...@@ -99,3 +112,4 @@ Then, you can create a RSA Key and the clients for `dashboard` and `tank`::
Finally, you can start the development server:: Finally, you can start the development server::
(venv) $ ./manage.py runserver (venv) $ ./manage.py runserver
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment