Locations require a spatial database and some geospatial libraries Note: SpatiaLite extension for SQLite is recommended for local development
See the docs
This is used for automatically detecting the user's location based on their ip address
See the docs
It recommends installing libmaxminddb C library for faster speed
python3 -m venv env
source env/bin/activate
pip3 install -r requirements.txt
docker run -p 6379:6379 -d redis:2.8
python3 manage.py runserver 0:8000
A project includes many apps. Our website is a project with apps running in it.
Create new app
python3 manage.py startapp APP_NAME
View database
python3 manage.py makemigrations webapp
python3 manage.py sqlmigrate webapp 0001
Migrate new tables
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py migrate --run-syncdb
Populate db with initial data
python3 manage.py loaddata webapp/fixtures/currency-fixture.json