Django on localhost CORS error on setup process

Feature(s) impacted

The “Add new data source” process for Django

Observed behavior

Once the Package installed, app added to settings.py and FOREST dict added, forestadmin try to call the /forest endpoint but get CORS error

Expected behavior

Failure Logs

Context


  • Project name: Platform Usage
  • Team name: Operations
  • Environment name: Django
  • Agent type & version: django-forestadmin==1.2.2
  • Recent changes made on your end if any: …

Hi @ThibautLucas ,

Did you add the init_forest() in your wsgi.py (or asgi.py) file, as explained in the onboarding process ?

Thank’s

Yep :slight_smile: on wsgi.py file not the asgi.py one, should I ?

Depends if you deploy Django with the Asgi mode or with the Wsgi mode ?
Could you copy/paste your settings file and your wsgi file without your credentials please.