poetry run python manage.py runserver
poetry run python manage.py tailwind start
poetry install
poetry run python manage.py makemigrations
poetry run python manage.py migrate
poetry run python manage.py add_users
Mac, Linux:
poetry run python manage.py loaddata data/activity/master-data/*.jsonpoetry run python manage.py loaddata data/activity/test-data/*.jsonpoetry run python manage.py loaddata data/food/*.jsonpoetry run python manage.py loaddata data/blog/*.jsonpoetry run python manage.py loaddata data/masterdata/*.jsonpoetry run python manage.py loaddata data/group/*.json
all together in one shell script sh setup.sh ``
Windows:
poetry run python manage.py add_fixtures data\activity\master-data\Run Serverpoetry run python manage.py runserver
If statics are not already in static folder run this:
poetry run python manage.py collectstatic
in folder /config you need to put the .env file. Next to the file settings.py
the file need to look like the example.env file in that folder
export USE_CLOUD_SQL_AUTH_PROXY=true
./cloud-sql-proxy inspi-441320:europe-west3:inspi-prod
export USE_CLOUD_SQL_AUTH_PROXY=true
poetry run python manage.py migrate
gcloud app deploy
poetry export --without-hashes --format=requirements.txt > requirements.txt
poetry run djlint . --reformat
poetry run djlint . --lint