Проверить настройки SHOP_PRODUCT_MODEL. products.models" не определен в «Product» class. Где мог ошибиться?

405ece58138d4dd59e359423a9b46553.jpg

в settings.ry

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.comments',
'sorl.thumbnail',
'tagging',
'emailusernames',
'south',
'shop',
'products',
'orders',
'profiles',
'hvad',
'pages',
'ckeditor',
'pymorphy',
'news',
'captcha',
'subscribe',
'pytils',
'articles',

SHOP_PRODUCT_MODEL = 'products.models.Product'
SHOP_ORDER_MODEL = 'orders.models.ShopOrder'
SHOP_ORDERITEM_MODEL = 'orders.models.OrderItems'
SHOP_ADDRESS_MODEL = 'profiles.models.Profile'

В traceback :
Environment:

Request Method: GET
Request URL: vernissage365.com

Django Version: 1.5.1
Python Version: 2.7.11
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.comments',
'sorl.thumbnail',
'tagging',
'emailusernames',
'shop',
'products',
'orders',
'profiles',
'hvad',
'pages',
'ckeditor',
'pymorphy',
'news',
'captcha',
'subscribe',
'pytils',
'articles')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'artgallery.languageMiddleware.Language',
'django.contrib.sessions.middleware.SessionMiddleware',
'artgallery.languageMiddleware.Currency',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/home/zadum/webapps/artgal/env/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
103. resolver_match = resolver.resolve(request.path_info)
File "/home/zadum/webapps/artgal/env/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
319. for pattern in self.url_patterns:
File "/home/zadum/webapps/artgal/env/lib/python2.7/site-packages/django/core/urlresolvers.py" in url_patterns
347. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/home/zadum/webapps/artgal/env/lib/python2.7/site-packages/django/core/urlresolvers.py" in urlconf_module
342. self._urlconf_module = import_module(self.urlconf_name)
File "/home/zadum/webapps/artgal/env/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
35. __import__(name)
File "/home/zadum/webapps/artgal/artgallery/artgallery/urls.py" in
1. from artgallery.views import FrontView, RegistrationView, ActivationView, ProfileUpdate, ChangePasswordView, FavoriteView, LogoutView, AddPictureView, CreatePainter, UpdatePainter, MyPicturesView, EditPictureView, MyPaintersView, EditPainterView, ConfirmView, CommentsView, SwitchLanguage, SwitchCurrency, SearchView, SearchFull, CompleteView, ClearBirthDate, all_email, SiteMap, SitemapXML
File "/home/zadum/webapps/artgal/artgallery/artgallery/views.py" in
18. from artgallery.forms import RegisterForm, PersonalData, ChangePassword, CreateProductCollector, CreateProductPainter, CreatePainterForm, UpdatePainterForm, UpdateProductCollector, UpdateProductPainter, EditPainterForm
File "/home/zadum/webapps/artgal/artgallery/artgallery/forms.py" in
8. from products.models import Product
File "/home/zadum/webapps/artgal/artgallery/products/models.py" in
8. from shop.models.defaults.bases import BaseProduct
File "/home/zadum/webapps/artgal/env/lib/python2.7/site-packages/shop/models/__init__.py" in
4. from ordermodel import * # NOQA
File "/home/zadum/webapps/artgal/env/lib/python2.7/site-packages/shop/models/ordermodel.py" in
7. from shop.models.productmodel import Product
File "/home/zadum/webapps/artgal/env/lib/python2.7/site-packages/shop/models/productmodel.py" in
15. Product = load_class(PRODUCT_MODEL, 'SHOP_PRODUCT_MODEL')
File "/home/zadum/webapps/artgal/env/lib/python2.7/site-packages/shop/util/loader.py" in load_class
57. raise exceptions.ImproperlyConfigured(txt)

Exception Type: ImproperlyConfigured at /
Exception Value: Backend module "products.models" does not define a "Product" class. Check your SHOP_PRODUCT_MODEL setting

python2.7 manage.py check
/home/zadum/lib/python2.7/django/contrib/comments/__init__.py:13: RemovedInDjang o18Warning: django.contrib.comments is deprecated and will be removed before Dja ngo 1.8.
warnings.warn("django.contrib.comments is deprecated and will be removed befor e Django 1.8.", RemovedInDjango18Warning)

/home/zadum/webapps/artgal/artgallery/emailusernames/forms.py:99: RemovedInDjang o18Warning: Creating a ModelForm without either the 'fields' attribute or the 'e xclude' attribute is deprecated - form EmailUserChangeForm needs updating
class EmailUserChangeForm(UserChangeForm):

/home/zadum/webapps/artgal/artgallery/products/models.py:23: RemovedInDjango18Wa rning: `Moderate.get_query_set` method should be renamed `get_queryset`.
class Moderate(PolymorphicManager):

/home/zadum/lib/python2.7/shop/models_bases/managers.py:93: RemovedInDjango18War ning: commit_on_success is deprecated in favor of atomic.
@transaction.commit_on_success

/home/zadum/webapps/artgal/artgallery/profiles/models.py:153: RemovedInDjango18W arning: commit_on_success is deprecated in favor of atomic.
create_inactive_user = transaction.commit_on_success(create_inactive_user)

/home/zadum/lib/python2.7/django/forms/widgets.py:143: RemovedInDjango18Warning: `ProductAdmin.queryset` method should be renamed `get_queryset`.
.__new__(mcs, name, bases, attrs))

System check identified some issues:

WARNINGS:
?: (1_6.W001) Some project unittests may not execute as expected.
HINT: Django 1.6 introduced a new default test runner. It looks like thi s project was generated using Django 1.5 or earlier. You should ensure your test s are all running & behaving as expected. See https://docs.djangoproject.com/en/ dev/releases/1.6/#new-test-runner for more information.
products.Color.border: (1_6.W002) BooleanField does not have a default value.
HINT: Django 1.6 changed the default value of BooleanField from False to None. See https://docs.djangoproject.com/en/1.6/ref/models/f... for more information.

Помогите разобраться с этой ошибкой , с питоном работаю в первый раз.

Заранее спасибо!
  • Вопрос задан
  • 336 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы