README.md 931 Bytes
Newer Older
luxcem's avatar
Readme  
luxcem committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
# LQDN RP

This project uses Django 1.11 and python >= 3.5

## Requirements

To run the project, start a virtual environment and install
requirements.txt requirements-dev.txt contains additional dependencies
for development

    $ pip install -r requirements.txt
    $ pip install -r requirements-dev.txt

## Settings

Create a file in `project/settings/env.py` which contains django
settings for **DEBUG** and **SECRET_KEY**.

For testing you can use `DEBUG = True` and a random string for
`SECRET_KEY`.

In production you can use env variables with

```python
os.environ["DJANGO_DEBUG"]
os.environ["DJANGO_SECRET_KEY"]
```

## Database

You can run migrations with :

    $ python manage.py migrate

## Dev server

To launch the dev server :

    $ python manage.py runserver

## Tests

To launch tests install requirements-tests.txt

    $ pip install -r requirements-tests.txt
    $ pytest

Coverage with

    $ pytest --cov=.