Skip to content

rawcdv/tCash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Locations (lat/long)

Locations require a spatial database and some geospatial libraries Note: SpatiaLite extension for SQLite is recommended for local development

See the docs

GeoLocation

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

Create virtualenv and install dependencies

python3 -m venv env
source env/bin/activate

pip3 install -r requirements.txt

Run servers

docker run -p 6379:6379 -d redis:2.8
python3 manage.py runserver 0:8000

Dev process

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published