
Creating a production release of dplace
=======================================


- Run flake8 to check for pep8 conformance:

```
flake8 --exclude=migrations,static --ignore=E711,E712,D100,D101,D103,D102,D301,E402,E731 --max-line-length=100 dplace_app
```

- Run the tests and check the coverage:

```
coverage run --source='dplace_app' manage.py test
coverage report
```



Creating a production release of dplace
=======================================


- Run flake8 to check for pep8 conformance:

```
flake8 --exclude=migrations,static --ignore=E711,E712,D100,D101,D103,D102,D301,E402,E731 --max-line-length=100 dplace_app
```

- Run the tests and check the coverage:

```
coverage run --source='dplace_app' manage.py test
coverage report
```

- Destroy database, upgrade and reload data:

```
#!/bin/bash
dropdb dplace 
createdb dplace
psql -d dplace -c "CREATE EXTENSION postgis;"
psql -d dplace -c "CREATE EXTENSION postgis_topology;"
pip install --upgrade -r requirements.txt
python manage.py migrate
./load_all_datasets.sh
```

Update Releasing.md to include information about how to reload the database
Update Releasing.md to include information about how to reload the database