fresh installation of django-oscar

171 views
Skip to first unread message

Michel Sardon

unread,
Feb 19, 2015, 11:40:05 AM2/19/15
to django...@googlegroups.com
so basically, after install, settings, following the doc, I launch the project :
python manage.py runserver

With my web browser, i try to get : http://127.0.0.1:8000/dashboard/


that display :A server error occurred. Please contact the administrator.

In my console I have this Traceback
Traceback (most recent call last):
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/django/apps/registry.py", line 148, in get_app_config
 
return self.app_configs[app_label]
KeyError: 'offer'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 
File "/opt/python34/lib/python3.4/wsgiref/handlers.py", line 137, in run
 
self.result = application(self.environ, self.start_response)
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/django/contrib/staticfiles/handlers.py", line 64, in __call__
 
return self.application(environ, start_response)
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/django/core/handlers/wsgi.py", line 168, in __call__
 
self.load_middleware()
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/django/core/handlers/base.py", line 44, in load_middleware
 mw_class
= import_string(middleware_path)
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/django/utils/module_loading.py", line 26, in import_string
 
module = import_module(module_path)
 
File "/opt/python34/lib/python3.4/importlib/__init__.py", line 109, in import_module
 
return _bootstrap._gcd_import(name[level:], package, level)
 
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
 
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
 
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
 
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
 
File "<frozen importlib._bootstrap>", line 1129, in _exec
 
File "<frozen importlib._bootstrap>", line 1471, in exec_module
 
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/oscar/apps/basket/middleware.py", line 8, in <module>
 
Applicator = get_class('offer.utils', 'Applicator')
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/oscar/core/loading.py", line 67, in get_class
 
return get_classes(module_label, [classname])[0]
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/oscar/core/loading.py", line 124, in get_classes
 oscar_module
= _import_module(oscar_module_label, classnames)
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/oscar/core/loading.py", line 159, in _import_module
 
return __import__(module_label, fromlist=classnames)
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/oscar/apps/offer/utils.py", line 10, in <module>
 
ConditionalOffer = get_model('offer', 'ConditionalOffer')
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/oscar/core/loading.py", line 321, in get_model
 
return apps.get_model(app_label, model_name)
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/django/apps/registry.py", line 202, in get_model
 
return self.get_app_config(app_label).get_model(model_name.lower())
 
File "/home/stephane/src/py34oscar/lib/python3.4/site-packages/django/apps/registry.py", line 150, in get_app_config
 
raise LookupError("No installed app with label '%s'." % app_label)
LookupError: No installed app with label 'offer'.
[19/Feb/2015 17:37:12] "GET /dashboard/ HTTP/1.1" 500 59


Michel Sardon

unread,
Feb 19, 2015, 11:44:30 AM2/19/15
to django...@googlegroups.com
can't see how to edit my previous post ?

I am running Python 3.4.2, with the last things on pypi:

$
pip freeze
Babel==1.3
Django==1.7.4
Pillow==2.4.0
Unidecode==0.04.17
django
-appconf==1.0.1
django
-compressor==1.4
django
-extra-views==0.6.4
django
-haystack==2.3.1
django
-oscar==1.0.1
django
-tables2==0.15.0
django
-treebeard==2.0
factory
-boy==2.4.1
mock
==1.0.1
phonenumbers
==6.3.0
purl
==1.0.3
pycountry
==1.10
pytz
==2014.10
six
==1.9.0
sorl
-thumbnail==11.12.1b


Reply all
Reply to author
Forward
Message has been deleted
0 new messages