rdmullins / rm-ereader-backend

0 stars 0 forks source link

Django Template

Setup

After creating your project, some additional configuration is required to allow the project to run in Gitpod.

  1. Install the django-cors-headers package and follow the Setup instructions in the README.

  2. Add the following to the project's settings.py:

    CSRF_TRUSTED_ORIGINS = ['https://*.gitpod.io']
    CORS_ALLOWED_ORIGIN_REGEXES = [
        r"^https://.*\.gitpod\.io$",
    ]