django-react icon indicating copy to clipboard operation
django-react copied to clipboard

Errors in settings.py

Open ksusonic opened this issue 4 years ago • 2 comments
trafficstars

Hi! While I'm doing python manage.py migrate I get this:

SystemCheckError: System check identified some issues:

ERRORS:
?: (corsheaders.E013) Origin 'localhost:3000' in CORS_ORIGIN_WHITELIST is missing scheme or netloc
        HINT: Add a scheme (e.g. https://) or netloc (e.g. example.com).

WARNINGS:
customers.Customer: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
        HINT: Configure the DEFAULT_AUTO_FIELD setting or the CustomersConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.

ksusonic avatar Nov 04 '21 22:11 ksusonic

To Fix this error change 'localhost:3000', of settengs.py to http://'localhost:3000',

Forchapeatl avatar Dec 27 '21 10:12 Forchapeatl

Here is PR to fix this problem: https://github.com/techiediaries/django-react/pull/23

ksusonic avatar Dec 27 '21 12:12 ksusonic