Skip to content

sarahwanyeki/Django-Web-Development

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Django-Web-Development

Solution: RuntimeError: for those using Django4.0 I am studying the book 'Web Development with Django'. I am in Chapter 4 and encountered a problem RuntimeError: 'reviews.apps' declares more than one default AppConfig: 'AdminConfig', 'ReviewsAdminConfig'

Here is the Solution.

admin.py from django.contrib import admin

reviews/apps.py from django.apps import AppConfig class ReviewsConfig(AppConfig): name = "reviews"

reviews/admin.py from django.contrib import admin

settings.py INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles',

'reviews',

]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published