Answer the question
In order to leave comments, you need to log in
How to change app name in Django?
I'm trying to change the name of the Comment application in django, but I'm getting an error
ModuleNotFoundError: No module named 'comment'
Cannot import 'comment'. Check that 'apps.comment.apps.CommentConfig.name' is correct.
project
apps
comment
...
project
settings.py
static
templates
INSTALLED_APPS = [
'apps.comment.apps.CommentConfig',
...
]
from django.apps import AppConfig
class CommentConfig(AppConfig):
name = 'comment'
verbose_name = 'Комментарии'
default_app_config = 'apps.comment.apps.CommentConfig'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question