saasitive / django-react-boilerplate

DIY Django + React Boilerplate for starting your SaaS
https://saasitive.com
MIT License
596 stars 89 forks source link

Lesson 3, missing instruction to amend apps.py inside accounts folder at "./manage.py migrate" #12

Open luke7ucas opened 3 years ago

luke7ucas commented 3 years ago

The command returned the following error:

django.core.exceptions.ImproperlyConfigured: Cannot import 'accounts'. Check that 'apps.accounts.apps.AccountsConfig.name' is correct.

It can be resolved by going to: backend/server/server/apps/accounts/apps.py

and changing from

from django.apps import AppConfig ` class AccountsConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'accounts'`

to:

from django.apps import AppConfig ` class AccountsConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'apps.accounts'`

pplonski commented 3 years ago

@luke7ucas thank you for reporting the issue. I will fix this when back to course.