- Create virtualenv
virtualenv -p python3 env
. (https://virtualenv.pypa.io/en/stable/userguide/#usage) - Activate virtualenv.
source env/bin/activate
orenv\Scripts\Activate.bat
. - Install dependencies.
pip install -r requirements.txt -U
- Go to src/config/settings and duplicate local.default.py to local.py and change contents.
- Execute migrations. (in src folder:
./manage.py migrate
). - Create cache table. (in src folder:
./manage.py createcachetable
). - (Optional) Generate sample_data. (in src folder:
./manage.py sample_data
).
- Make sure your virtualenv is active.
source env/bin/activate
orenv\Scripts\Activate.bat
. - Make sure you migrate all pending migrations (after pull). From src folder:
./manage.py migrate
. - Start development server. From src folder:
./manage.py runserver_plus 127.0.0.1:8000
. - Login with admin account (if sample data: admin/Welkom01).