Error creating database migrations when launching Django app

I am attempting to launch a personal django app, following this guide by @wsvincent , and bumping into the following error:

Creating database migrations
Error failed running /.../.venv/bin/python makemigrations: exit status 1

It happens right after the app is created, with an Admin URL and host name provided.

Might anyone know what could be going wrong?

I just updated that post. I think the issue is related to CSRF_TRUSTED_ORIGINS. It should include the https:// so in the initial stage, before you have a dedicated FLY url,:

CSRF_TRUSTED_ORIGINS = [“https://*”]

1 Like

Works like a charm! Thanks Will.

1 Like

I was stuck with that for a while
Thanks Will again… )

1 Like