This is a django web app to find registered PSV saccos on relevant routes and their charges
None
- Python
- Django
- Postgresql
https://github.com/JamesMutahi/Routers.git
git init
git remote add origin <your-repository-url>
python -m virtualenv venv
source venv/bin/activate
Download osgeo installer on link below:
https://trac.osgeo.org/osgeo4w/
This installs libraries that enable django map rendering
Make sure to install spatial database
On your database query console
CREATE EXTENSION pg_trgm;
CREATE EXTENSION postgis;
Create a .env
file and paste the following filling where appropriate:
SECRET_KEY='<SECRET_KEY>'
DEBUG=True
MODE='dev'
DB_NAME='<DB_NAME>'
DB_USER='<DB_USER>'
DB_PASSWORD='<DB_PASSWORD>'
DB_HOST='127.0.0.1'
DB_PORT='<DB_PORT>'
Install dependencies that will create an environment for the app to run
pip install -r requirements.txt
python manage.py check
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
Open localhost:8000
These constitute setup for production mode.
Change .env
configuration file to have
MODE='prod'
DEBUG=False