Skip to content

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

Description

@lukaszlekowski

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions