LookupError: No installed app with label 'reviews'.
See original GitHub issueAfter installing django, when i try to create a new project,the error is coming,
Unhandled exception in thread started by <function wrapper at 0x10910faa0>
Traceback (most recent call last):
File "/Users/voonik/python_env/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "/Users/voonik/python_env/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 116, in inner_run
self.check(display_num_errors=True)
File "/Users/voonik/python_env/lib/python2.7/site-packages/django/core/management/base.py", line 426, in check
include_deployment_checks=include_deployment_checks,
File "/Users/voonik/python_env/lib/python2.7/site-packages/django/core/checks/registry.py", line 75, in run_checks
new_errors = check(app_configs=app_configs)
File "/Users/voonik/python_env/lib/python2.7/site-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/Users/voonik/python_env/lib/python2.7/site-packages/django/core/checks/urls.py", line 23, in check_resolver
for pattern in resolver.url_patterns:
File "/Users/voonik/python_env/lib/python2.7/site-packages/django/utils/functional.py", line 33, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/Users/voonik/python_env/lib/python2.7/site-packages/django/core/urlresolvers.py", line 417, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/Users/voonik/python_env/lib/python2.7/site-packages/django/utils/functional.py", line 33, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/Users/voonik/python_env/lib/python2.7/site-packages/django/core/urlresolvers.py", line 410, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/Users/voonik/python_env/django-oscar/teeshop/teeshop/urls.py", line 19, in <module>
from oscar.app import application
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/app.py", line 13, in <module>
class Shop(Application):
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/app.py", line 16, in Shop
catalogue_app = get_class('catalogue.app', 'application')
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/core/loading.py", line 29, in get_class
return get_classes(module_label, [classname], module_prefix)[0]
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/core/loading.py", line 86, in get_classes
oscar_module = _import_module(oscar_module_label, classnames)
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/core/loading.py", line 121, in _import_module
return __import__(module_label, fromlist=classnames)
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/apps/catalogue/app.py", line 3, in <module>
from oscar.apps.catalogue.reviews.app import application as reviews_app
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/apps/catalogue/reviews/app.py", line 8, in <module>
class ProductReviewsApplication(Application):
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/apps/catalogue/reviews/app.py", line 12, in ProductReviewsApplication
detail_view = get_class('catalogue.reviews.views', 'ProductReviewDetail')
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/core/loading.py", line 29, in get_class
return get_classes(module_label, [classname], module_prefix)[0]
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/core/loading.py", line 86, in get_classes
oscar_module = _import_module(oscar_module_label, classnames)
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/core/loading.py", line 121, in _import_module
return __import__(module_label, fromlist=classnames)
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/apps/catalogue/reviews/views.py", line 13, in <module>
['ProductReviewForm', 'VoteForm', 'SortReviewsForm'])
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/core/loading.py", line 86, in get_classes
oscar_module = _import_module(oscar_module_label, classnames)
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/core/loading.py", line 121, in _import_module
return __import__(module_label, fromlist=classnames)
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/apps/catalogue/reviews/forms.py", line 6, in <module>
Vote = get_model('reviews', 'vote')
File "/Users/voonik/python_env/lib/python2.7/site-packages/oscar/core/loading.py", line 235, in get_model
return apps.get_model(app_label, model_name)
File "/Users/voonik/python_env/lib/python2.7/site-packages/django/apps/registry.py", line 197, in get_model
return self.get_app_config(app_label).get_model(model_name.lower())
File "/Users/voonik/python_env/lib/python2.7/site-packages/django/apps/registry.py", line 155, in get_app_config
raise LookupError(message)
LookupError: No installed app with label 'reviews'.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
"No installed app with label 'admin'" running Django migration ...
LookupError : No installed app with label 'admin'. Using a debugger, I got that the 'admin' is not installed: ipdb> apps.get_apps() [] ipdb>...
Read more >LookupError: No installed app with label 'admin' · Issue #805
Hi, I want to use djagno-reversion without django.contrib.admin app (using with DRF wihtout admin), but raise LookupError: No installed app ...
Read more >How to Solve Error Message No installed app with label 'app ...
Solution · Just access the file with the name of 'settings.py' exist in the project folder. · Open the 'settings.py' file. · Edit...
Read more >Django migration error: No installed app with label 'myapp'
The tutorial you mentioned has some errors in it. First, the venv activate command is wrong, instead of source /denvx/bin/activate it should be...
Read more >LookupError: No installed app with label 'admin'.
I am new to django and am trying out the tutorial. Get the following error: Create a virtual environment using anaconda; Activate the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This happened to me when I didn’t add core apps to the
INSTALLED_APPS
.Should be:
Just solved the same issue after noticing another missing configuration: from oscar import OSCAR_MAIN_TEMPLATE_DIR TEMPLATES = [ { DIRS’: [ os.path.join(BASE_DIR, ‘templates’), OSCAR_MAIN_TEMPLATE_DIR ],