- Clone project
git clone [email protected]:django/example.git
cd example
- Setup virtualenv
/bin/bash ./shell.sh setupenv
- Run server
/bin/bash ./shell.sh runserver
- That's it. Your server URL will be at YOUR-DEV-DOMAIN.butterfly.com.au:8000
- Some settings value can be change by creating .env file in your project root. Example. You may want to change BASE_URL and DATABASE_URL when settings up your local.
- run
python manage.py init
will create a superuser with[email protected] / But3as2flying
if no superuser exist
- DATABASE_URL
- BASE_URL
- DEBUG: default is False
- ADMINS: admin's email, separate by comma
- SECRET_KEY: longrandom string
- AWS_STORAGE_BUCKET_NAME
- AWS_S3_REGION_NAME: default is ap-southeast-2
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
See docs/ for more