Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luke7ucas opened this issue May 5, 2021 · 1 comment

Comments

@luke7ucas
Copy link

luke7ucas commented May 5, 2021

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
Copy link
Contributor

pplonski commented May 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants