Skip to content
Snippets Groups Projects
Commit aa6aec58 authored by Fanna Lautenbach's avatar Fanna Lautenbach
Browse files

update readme with correct fixture

parent 0036674a
No related branches found
No related tags found
No related merge requests found
Pipeline #41495 passed
...@@ -39,18 +39,20 @@ docker exec -ti ldv-specification python manage.py migrate --settings ldvspec.se ...@@ -39,18 +39,20 @@ docker exec -ti ldv-specification python manage.py migrate --settings ldvspec.se
- Copy the `ldvspec.example.env`, rename it to `ldvspec.env` and fill in the variables. The variables should match the `local.py` settings which are coherent with the `docker-compose-local.yml` setup. - Copy the `ldvspec.example.env`, rename it to `ldvspec.env` and fill in the variables. The variables should match the `local.py` settings which are coherent with the `docker-compose-local.yml` setup.
- Run `docker-compose -f docker-compose-local.yml up -d` with the following compose file to spin up a new Postgres container, celery worker and rabbitMQ. - Run `docker-compose -f docker-compose-local.yml up -d` with the following compose file to spin up a new Postgres container, celery worker and rabbitMQ.
- Run the following python command to start developing - Run the following python commands to start developing
> python manage.py migrate --settings=ldvspec.settings.local - migrate
> python manage.py migrate --settings=ldvspec.settings.local
- create a superuser
> python manage.py createsuperuser --settings=ldvspec.settings.local
>
> *Or use the following to create it without any user interaction (admin, admin)*
>
> DJANGO_SUPERUSER_PASSWORD=admin python ldvspec/manage.py createsuperuser --username admin --email no-reply@example.com --noinput --settings=ldvspec.settings.local
- Run the server
> python manage.py runserver --settings=ldvspec.settings.local
> >
> python manage.py createsuperuser --settings=ldvspec.settings.local - You can use the following fixture to fill the database with complete example data
> # Or use the following to create it without any user interaction (admin, admin) > python manage.py loaddata fixtures/fixture_16122022.json --settings=ldvspec.settings.local
> DJANGO_SUPERUSER_PASSWORD=admin python ldvspec/manage.py createsuperuser --username admin --email no-reply@example.com --noinput --settings=ldvspec.settings.local
>
> python manage.py runserver --settings=ldvspec.settings.local
>
> # You can use the following fixtures to fille the database with some example data
> python manage.py loaddata fixtures/lofardata_fixture.json --settings=ldvspec.settings.local
> python manage.py loaddata fixtures/test-env.json --settings=ldvspec.settings.local
### Django Application ### Django Application
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment