- Linux compatible environment
- Python 3.4+ (3.6 recommended)
- PostgreSQL database server (9.x+)
make initialize-postgres
make
make migrate
In case of troubles with virtualenv please try to create environment manually:
virtualenv -p python3 env
and run make again.
All local settings can be placed in fxplanet/settings_local.py.
Settings defined in this file will override base settings
(fxplanet/settings.py).
make runserver
or
./manage runserver
Open browser with http://127.0.0.1:8000/
To change a port call:
make runserver PORT=8001
or
./manage runserver 8001
Use manage to call Django's management commands. This is a wrapper
which automatically activates Python's virtual environment.
Examples:
- Run Django shell
./manage shell
- Execute migrations
./manage migrate
- Ensure media files are in fxplanet/media
- Ensure database dump is in top level directory as fxplanet.sql.gz
- docker-compose up