cedric rademan
cedric rademan

Reputation: 43

Trouble installing django_shop_discounts

I am following the Getting Started Guide from readthedocs.org here for setting up django_shop_discounts

I aim to add coupon codes to an existing django shop

But when I do runserver I get the following error ImportError: No module named polymorphic_model

I have installed Polymorhpic but still get the same error.

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sites',
    'debug_toolbar',
    'pipeline',
    'grappelli',
    'django.contrib.admin',
    'django.contrib.admindocs',
    'south',
    'extras',
    'photos',
    'payments',
    'accounts',
    'shop',
    'discount.default_discounts',
    'cart',
    'couriers',
)

This is where my "discount" folder is along with other apps This is where my "discount" folder is along with other apps

This is what is inside my "discount" folder This is what is inside my "discount" folder

Upvotes: 0

Views: 175

Answers (1)

SpeedyH30
SpeedyH30

Reputation: 89

It is likely there are errors in your Python models. or you are missing the trailing , after your

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'myapp',
 )

But to make sure can you put the models up in your question and the installed apps so we can check for you.

Upvotes: 0

Related Questions