Troubleshooting Django integration

If you are having trouble connecting Django to JetAdmin, you will need to check a few things:

  • Make sure there are no network restrictions.

  • Check whether your Jet Bridge is the latest version.

  • Check your CORS policies in Django.

If your network with Django is okay, and you are using the latest Jet Bridge version but still getting errors like this:

That means that you need to check your CORS policies in Django.

By default, there is a parameter in Jet Bridge for Django that contains CORS in called "JET_CORS_HEADERS".

It is enabled by default and filled automatically, but if your Django already has an app called โ€œcorsheadersโ€ then it turns off. You can configure your CORS settings in the "corsheaders" app instead.

Alternatively, you can try to force "JET_CORS_HEADERS" to be set to True, but it can lead to strange effects, so we would advise trying it only as a last resort.

Last updated