Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
4c4e1a56
Commit
4c4e1a56
authored
Apr 03, 2019
by
Okhin
Browse files
Adding commands to seed the databases
parent
d8089cd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
4c4e1a56
...
...
@@ -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
=
.
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment