Commit 4c4e1a56 authored by okhin's avatar okhin 🚴

Adding commands to seed the databases

parent d8089cd1
......@@ -50,21 +50,36 @@ Groups have to be initialized with the following command:
You can run migrations with :
```sh
$ python manage.py migrate
```
You can seed the database with a provided fixtures
located in apps/rp/fixtures/all_articles.json:
```sh
$ python manage.py loaddata all_articles.json
```
## Dev server
To launch the dev server :
```sh
$ python manage.py runserver
```
## Tests
To launch tests install requirements-tests.txt
```sh
$ pip install -r requirements-tests.txt
$ pytest
```
Coverage with
```sh
$ pytest --cov=.
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment