https://github.com/jmcomets/pdc8-api
https://github.com/jmcomets/pdc8-api
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jmcomets/pdc8-api
- Owner: jmcomets
- Created: 2015-01-06T15:05:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T17:35:29.000Z (about 5 years ago)
- Last Synced: 2024-12-31T07:37:43.052Z (over 1 year ago)
- Language: Python
- Homepage: https://rencontres-arbres.herokuapp.com/
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
API catalog of the trees in Tête d'Or (Lyon)
============================================
# Commands
There is a `manage.py` script for development purposes only, the
`distmanage.py` script will use Heroku credentials (assuming the config
environment vars are set in your and therefore will **operate on the production
database**.
Both scripts work the same way. Run them without arguments and you will get the
full list of commands available.
## Importing trees into the database
./manage.py import-trees
This import command reads a `arbres.csv` csv export (at the root of the
project) and updates the database.
## Importing trees coordinates into the database
./manage.py import-gps
This import command reads a `gps.csv` csv export (at the root of the
project) and updates the database.
## Running the local development webserver
./manage.py runserver
# Dependencies
- Python 3 (untested on Python 2)
- Django 1.7+
- Django REST Framework 3+
If you have [pip](https://pip.pypa.io/) installed, use `pip install -r requirements.txt` to install directly the dependencies
# Deployment
Check out the [Heroku guide for deploying Heroku apps](https://devcenter.heroku.com/articles/getting-started-with-django).