tangentlabs/django-oscar — pull request #1126 by maikhoepfel (2014-01-15 17:36:20+00:00)
Title: IOError at /dashboard/catalogue/products/create

Django oscar 0.6 installed via pip

The error indicated below occurs when a variant product is created (pointing to a parent product) with product category selected and at least one image selected.

The bug does not occur when no category is selected. Also if no image is selected and a product category is selected, a correct warning is given that no category should be selected for creating variant product.

IOError at /dashboard/catalogue/products/create/1/

[Errno 2] No such file or directory: u'/home/administrator/git/winkel/media/P1040923.JPG'

Request Method:	POST
Request URL:	http://local.winkel.com/dashboard/catalogue/products/create/1/
Django Version:	1.6.1
Exception Type:	IOError
Exception Value:

[Errno 2] No such file or directory: u'/home/administrator/git/winkel/media/P1040923.JPG'

Exception Location:	/usr/local/lib/python2.7/dist-packages/django/core/files/storage.py in _open, line 160
Python Executable:	/usr/bin/python
Python Version:	2.7.3
Python Path:

['/home/administrator/git/winkel',
'/usr/local/lib/python2.7/dist-packages/Unidecode-0.04.14-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/django_compressor-1.3-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/Babel-1.3-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/python_memcached-1.52-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/sorl_thumbnail-11.12-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/django_treebeard-2.0b2-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/django_haystack-2.1.0-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/django_extra_views-0.6.3-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/South-0.8.4-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/django_appconf-0.6-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7',
'/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
'/usr/lib/python2.7/dist-packages/ubuntuone-client',
'/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
'/usr/lib/python2.7/dist-packages/ubuntuone-couch',
'/usr/lib/python2.7/dist-packages/ubuntuone-installer',
'/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
'/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode',
'/home/administrator/git/myclub']

Server time:	zat, 11 Jan 2014 11:15:27 +0100
Error during template rendering

In template /usr/local/lib/python2.7/dist-packages/oscar/templates/oscar/partials/image_input_widget.html, error at line 6
2
1	{% load i18n %}
2	{% load thumbnail %}
3
4

5	{% if image_url %}
6	{% thumbnail image_url "200x200" upscale=False as thumb %}
7
8	{% endthumbnail %}
9	{% else %}
10
13	{% trans "Upload Image" %}
14	{% endif %}
15

16
Traceback Switch to copy-and-paste view

/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response

response = response.render()

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/response.py in render

self.content = self.rendered_content

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/response.py in rendered_content

content = template.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

return self._render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in _render

return self.nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py in render

return compiled_parent._render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in _render

return self.nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py in render

return compiled_parent._render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in _render

return self.nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py in render

return compiled_parent._render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in _render

return self.nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py in render

result = block.nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py in render

result = block.nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py in render

result = block.nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py in render

result = block.nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py in render

result = block.nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in render

nodelist.append(node.render(context))

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py in render

return self.render_template(self.template, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py in render_template

output = template.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

return self._render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in _render

return self.nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in render

nodelist.append(node.render(context))

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in render

return nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render

output = force_text(output)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/utils/encoding.py in force_text

s = s.__unicode__()

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/forms/forms.py in __str__

return self.as_widget()

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/forms/forms.py in as_widget

return widget.render(name, self.value(), attrs=attrs)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/oscar/forms/widgets.py in render

'image_id': "%s-image" % final_attrs['id'],

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/loader.py in render_to_string

return t.render(Context(dictionary))

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

return self._render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in _render

return self.nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in render

return nodelist.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/base.py in render

bit = self.render_node(node, context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/template/debug.py in render_node

return node.render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/sorl_thumbnail-11.12-py2.7.egg/sorl/thumbnail/templatetags/thumbnail.py in render

return self._render(context)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/sorl_thumbnail-11.12-py2.7.egg/sorl/thumbnail/templatetags/thumbnail.py in _render

file_, geometry, **options

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/sorl_thumbnail-11.12-py2.7.egg/sorl/thumbnail/base.py in get_thumbnail

source_image = default.engine.get_image(source)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/sorl_thumbnail-11.12-py2.7.egg/sorl/thumbnail/engines/pil_engine.py in get_image

buf = StringIO(source.read())

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/sorl_thumbnail-11.12-py2.7.egg/sorl/thumbnail/images.py in read

return self.storage.open(self.name).read()

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/core/files/storage.py in open

return self._open(name, mode)

...
▶ Local vars
/usr/local/lib/python2.7/dist-packages/django/core/files/storage.py in _open

return File(open(self.path(name), mode))

...
▶ Local vars

Request information
GET

No GET data
POST
Variable	Value
primary_recommendations-0-ranking

u'0'

images-MAX_NUM_FORMS

u'1000'

primary_recommendations-MAX_NUM_FORMS

u'1000'

stockrecords-0-num_in_stock

u''

images-1-product

u''

primary_recommendations-1-recommendation

u''

primary_recommendations-4-id

u''

primary_recommendations-2-recommendation

u''

stockrecords-INITIAL_FORMS

u'0'

stockrecords-0-price_currency

u'GBP'

stockrecords-MAX_NUM_FORMS

u'1000'

images-0-caption

u''

images-1-id

u''

primary_recommendations-2-ranking

u'0'

title

u'p5'

primary_recommendations-2-primary

u''

primary_recommendations-4-recommendation

u''

stockrecords-0-partner_sku

u''

productcategory_set-TOTAL_FORMS

u'1'

stockrecords-0-price_retail

u''

primary_recommendations-0-recommendation

u''

primary_recommendations-4-ranking

u'0'

images-INITIAL_FORMS

u'0'

action

u'save'

csrfmiddlewaretoken

u'fHt87WX53h7YjoszpFT0c4jfZdjlRoC1'

primary_recommendations-TOTAL_FORMS

u'5'

primary_recommendations-3-recommendation

u''

stockrecords-TOTAL_FORMS

u'1'

related_products

u''

images-TOTAL_FORMS

u'2'

productcategory_set-0-id

u''

primary_recommendations-0-primary

u''

description

u''

parent

u'2'

stockrecords-0-low_stock_threshold

u''

stockrecords-0-partner

u''

primary_recommendations-1-id

u''

primary_recommendations-0-id

u''

productcategory_set-0-product

u''

stockrecords-0-id

u''

stockrecords-0-price_excl_tax

u''

productcategory_set-MAX_NUM_FORMS

u'1000'

primary_recommendations-3-ranking

u'0'

primary_recommendations-INITIAL_FORMS

u'0'

primary_recommendations-3-primary

u''

primary_recommendations-2-id

u''

images-1-original

u''

primary_recommendations-3-id

u''

images-0-product

u''

images-1-caption

u''

productcategory_set-0-category

u'1'

stockrecords-0-cost_price

u''

upc

u'p5'

productcategory_set-INITIAL_FORMS

u'0'

primary_recommendations-1-primary

u''

images-0-id

u''

primary_recommendations-4-primary

u''

is_discountable

u'on'

primary_recommendations-1-ranking

u'0'

FILES
Variable	Value
images-0-original

COOKIES
Variable	Value
csrftoken

'fHt87WX53h7YjoszpFT0c4jfZdjlRoC1'

sessionid

'9hxudt89loz6a5txv8z4nzt2kp4e2g6r'

META
Variable	Value
mod_wsgi.listener_port

'80'

HTTP_COOKIE

'csrftoken=fHt87WX53h7YjoszpFT0c4jfZdjlRoC1; sessionid=9hxudt89loz6a5txv8z4nzt2kp4e2g6r'

mod_wsgi.listener_host

''

SERVER_SOFTWARE

'Apache/2.2.22 (Ubuntu)'

SCRIPT_NAME

u''

mod_wsgi.handler_script

''

SERVER_SIGNATURE

'

Apache/2.2.22 (Ubuntu) Server at local.winkel.com Port 80

\n'

REQUEST_METHOD

'POST'

PATH_INFO

u'/dashboard/catalogue/products/create/1/'

SERVER_PROTOCOL

'HTTP/1.1'

QUERY_STRING

''

CONTENT_LENGTH

'3565074'

HTTP_USER_AGENT

'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0'

HTTP_CONNECTION

'keep-alive'

HTTP_REFERER

'http://local.winkel.com/dashboard/catalogue/products/create/1/'

SERVER_NAME

'local.winkel.com'

REMOTE_ADDR

'127.0.0.1'

mod_wsgi.request_handler

'wsgi-script'

wsgi.url_scheme

'http'

PATH_TRANSLATED

'/home/administrator/git/winkel/confs/apache/winkel.wsgi/dashboard/catalogue/products/create/1/'

SERVER_PORT

'80'

wsgi.multiprocess

False

mod_wsgi.input_chunked

'0'

SERVER_ADDR

'127.0.0.1'

DOCUMENT_ROOT

'/etc/apache2/htdocs'

mod_wsgi.process_group

''

SCRIPT_FILENAME

'/home/administrator/git/winkel/confs/apache/winkel.wsgi'

SERVER_ADMIN

'[no address given]'

wsgi.input

HTTP_HOST

'local.winkel.com'

wsgi.multithread

True

mod_wsgi.callable_object

'application'

REQUEST_URI

'/dashboard/catalogue/products/create/1/'

HTTP_ACCEPT

'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'

wsgi.version

(1, 1)

GATEWAY_INTERFACE

'CGI/1.1'

wsgi.run_once

False

wsgi.errors

REMOTE_PORT

'33267'

HTTP_ACCEPT_LANGUAGE

'en-US,en;q=0.5'

mod_wsgi.version

(3, 3)

CSRF_COOKIE_USED

True

CONTENT_TYPE

'multipart/form-data; boundary=---------------------------1515179496944263259418908600'

mod_wsgi.application_group

'local.winkel.com|'

mod_wsgi.script_reloading

'1'

wsgi.file_wrapper

''

CSRF_COOKIE

u'fHt87WX53h7YjoszpFT0c4jfZdjlRoC1'

HTTP_ACCEPT_ENCODING

'gzip, deflate'

Settings
Using settings module winkel.settings
Setting	Value
COMPRESS_URL

'/static/'

OSCAR_RECENTLY_VIEWED_PRODUCTS

20

COMPRESS_OUTPUT_DIR

'CACHE'

OSCAR_PARTNER_WRAPPERS

{}

COMPRESS_TEMPLATE_FILTER_CONTEXT

{'STATIC_URL': '/static/'}

USE_L10N

True

COMPRESS_DATA_URI_MAX_SIZE

1024

OSCAR_MODERATE_REVIEWS

False

CSRF_COOKIE_SECURE

False

LANGUAGE_CODE

'nl'

OSCAR_RECENTLY_VIEWED_COOKIE_NAME

'oscar_history'

MANAGERS

()

COMPRESS_CSS_HASHING_METHOD

'mtime'

TABBED_BLOCK

'TabbedBlock'

DEFAULT_CHARSET

'utf-8'

IGNORABLE_404_URLS

()

OSCAR_DASHBOARD_NAVIGATION

[{'icon': 'icon-th-list',
'label': ,
'url_name': 'dashboard:index'},
{'children': [{'label': ,
'url_name': 'dashboard:catalogue-product-list'},
{'label': ,
'url_name': 'dashboard:catalogue-category-list'},
{'label': ,
'url_name': 'dashboard:range-list'},
{'label': ,
'url_name': 'dashboard:stock-alert-list'}],
'icon': 'icon-sitemap',
'label': },
{'children': [{'label': ,
'url_name': 'dashboard:order-list'},
{'label': ,
'url_name': 'dashboard:order-stats'},
{'label': ,
'url_name': 'dashboard:partner-list'}],
'icon': 'icon-shopping-cart',
'label': },
{'children': [{'label': ,
'url_name': 'dashboard:users-index'},
{'label': ,
'url_name': 'dashboard:user-alert-list'}],
'icon': 'icon-group',
'label': },
{'children': [{'label': ,
'url_name': 'dashboard:offer-list'},
{'label': ,
'url_name': 'dashboard:voucher-list'}],
'icon': 'icon-bullhorn',
'label': },
{'children': [{'label': ,
'url_name': 'dashboard:promotion-list'},
{'label': ,
'url_name': 'dashboard:promotion-list-by-page'},
{'label': ,
'url_name': 'dashboard:page-list'},
{'label': ,
'url_name': 'dashboard:comms-list'},
{'label': ,
'url_name': 'dashboard:reviews-list'}],
'icon': 'icon-folder-close',
'label': },
{'icon': 'icon-bar-chart',
'label': ,
'url_name': 'dashboard:reports-index'}]

SESSION_SERIALIZER

'django.contrib.sessions.serializers.JSONSerializer'

STATIC_ROOT

''

OSCAR_IMAGE_FOLDER

'images/products/%Y/%m/'

COMPRESS_CLOSURE_COMPILER_ARGUMENTS

''

OSCAR_PROMOTION_FOLDER

'images/promotions/'

OSCAR_OFFER_BLACKLIST_PRODUCT

None

COMPRESS_OFFLINE_MANIFEST

'manifest.json'

OSCAR_DEFAULT_CURRENCY

'GBP'

OSCAR_SHOP_TAGLINE

''

ALLOWED_HOSTS

['local.winkel.com']

MESSAGE_STORAGE

'django.contrib.messages.storage.fallback.FallbackStorage'

OSCAR_RECENTLY_VIEWED_COOKIE_LIFETIME

604800

OSCAR_ACCOUNTS_REDIRECT_URL

'customer:profile-view'

EMAIL_SUBJECT_PREFIX

'[Django] '

SEND_BROKEN_LINK_EMAILS

False

STATICFILES_FINDERS

('django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder')

SESSION_CACHE_ALIAS

'default'

COMPRESS_CSSTIDY_ARGUMENTS

'--template=highest'

SESSION_COOKIE_DOMAIN

None

SESSION_COOKIE_NAME

'sessionid'

OSCAR_SEARCH_FACETS

{'fields': {'category': {'field': 'category',
'name': },
'product_class': {'field': 'product_class',
'name': }},
'queries': {'price_range': {'field': 'price',
'name': ,
'queries': [(,
'[0 TO 20]'),
(,
'[20 TO 40]'),
(,
'[40 TO 60]'),
(,
'[60 TO *]')]}}}

ADMIN_FOR

()

TIME_INPUT_FORMATS

('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')

OSCAR_UPLOAD_ROOT

'/tmp'

DATABASES

{'default': {'ATOMIC_REQUESTS': False,
'AUTOCOMMIT': True,
'CONN_MAX_AGE': 0,
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'HOST': '',
'NAME': 'winkel',
'OPTIONS': {},
'PASSWORD': u'********************',
'PORT': '',
'TEST_CHARSET': None,
'TEST_COLLATION': None,
'TEST_MIRROR': None,
'TEST_NAME': None,
'TIME_ZONE': 'UTC',
'USER': 'administrator'}}

COMPRESS_YUI_BINARY

'java -jar yuicompressor.jar'

FILE_UPLOAD_PERMISSIONS

None

FILE_UPLOAD_HANDLERS

('django.core.files.uploadhandler.MemoryFileUploadHandler',
'django.core.files.uploadhandler.TemporaryFileUploadHandler')

OSCAR_ALLOW_ANON_CHECKOUT

False

DEFAULT_CONTENT_TYPE

'text/html'

COMPRESS_CSS_COMPRESSOR

'compressor.css.CssCompressor'

APPEND_SLASH

True

FIRST_DAY_OF_WEEK

0

DATABASE_ROUTERS

[]

OSCAR_SHOP_NAME

'Oscar'

YEAR_MONTH_FORMAT

'F Y'

COMPRESS_OFFLINE_TIMEOUT

31536000

STATICFILES_STORAGE

'django.contrib.staticfiles.storage.StaticFilesStorage'

CACHES

{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}

SERVER_EMAIL

'root@localhost'

SESSION_COOKIE_PATH

'/'

COMPRESS_PARSER

'compressor.parser.AutoSelectParser'

COMPRESS_OFFLINE_CONTEXT

{'STATIC_URL': '/static/'}

ROOT_URLCONF

'winkel.urls'

THUMBNAIL_DEBUG

True

COMPRESS_CACHE_BACKEND

'default'

OSCAR_HIDDEN_FEATURES

[]

MIDDLEWARE_CLASSES

('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'oscar.apps.basket.middleware.BasketMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')

USE_I18N

True

THOUSAND_SEPARATOR

','

SECRET_KEY

u'********************'

LANGUAGE_COOKIE_NAME

'django_language'

DEFAULT_INDEX_TABLESPACE

''

OSCAR_ALLOW_ANON_REVIEWS

True

TRANSACTIONS_MANAGED

False

LOGGING_CONFIG

'django.utils.log.dictConfig'

SIGNING_BACKEND

'django.core.signing.TimestampSigner'

MYROOT

Path('/home/administrator/git/winkel/')

TEMPLATE_LOADERS

('django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader')

WSGI_APPLICATION

'winkel.wsgi.application'

TEMPLATE_DEBUG

True

X_FRAME_OPTIONS

'SAMEORIGIN'

CSRF_COOKIE_NAME

'csrftoken'

HAYSTACK_CONNECTIONS

{'default': {'ENGINE': 'haystack.backends.simple_backend.SimpleEngine'}}

FORCE_SCRIPT_NAME

None

OSCAR_MAIN_TEMPLATE_DIR

'/usr/local/lib/python2.7/dist-packages/oscar/templates/oscar'

COMPRESS_CSSTIDY_BINARY

'csstidy'

USE_X_FORWARDED_HOST

False

SESSION_COOKIE_SECURE

False

COMPRESS_DEBUG_TOGGLE

'None'

COMPRESS_VERBOSE

False

CSRF_COOKIE_DOMAIN

None

OSCAR_BASKET_COOKIE_OPEN

'oscar_open_basket'

SINGLE_PRODUCT

'SingleProduct'

FILE_CHARSET

'utf-8'

DEBUG

True

SESSION_FILE_PATH

None

COMPRESS_JS_FILTERS

['compressor.filters.jsmin.JSMinFilter']

DEFAULT_FILE_STORAGE

'django.core.files.storage.FileSystemStorage'

INSTALLED_APPS

['apps.first',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.flatpages',
'django.contrib.admin',
'login',
'tinymce',
'taggit',
'south',
'compressor',
'oscar',
'oscar.apps.analytics',
'oscar.apps.checkout',
'oscar.apps.address',
'oscar.apps.shipping',
'oscar.apps.catalogue',
'oscar.apps.catalogue.reviews',
'oscar.apps.partner',
'oscar.apps.basket',
'oscar.apps.payment',
'oscar.apps.offer',
'oscar.apps.order',
'oscar.apps.customer',
'oscar.apps.promotions',
'oscar.apps.search',
'oscar.apps.voucher',
'oscar.apps.wishlists',
'oscar.apps.dashboard',
'oscar.apps.dashboard.reports',
'oscar.apps.dashboard.users',
'oscar.apps.dashboard.orders',
'oscar.apps.dashboard.promotions',
'oscar.apps.dashboard.catalogue',
'oscar.apps.dashboard.offers',
'oscar.apps.dashboard.partners',
'oscar.apps.dashboard.pages',
'oscar.apps.dashboard.ranges',
'oscar.apps.dashboard.reviews',
'oscar.apps.dashboard.vouchers',
'oscar.apps.dashboard.communications',
'haystack',
'treebeard',
'sorl.thumbnail']

LANGUAGES_BIDI

('he', 'ar', 'fa', 'ur')

COMMENTS_ALLOW_PROFANITIES

False

COMPRESS_YUI_CSS_ARGUMENTS

''

STATICFILES_DIRS

(Path('/home/administrator/git/winkel/static'),
Path('/home/administrator/git/winkel/media'))

OSCAR_CURRENCY_LOCALE

'en_GB'

PREPEND_WWW

False

SECURE_PROXY_SSL_HEADER

None

SESSION_COOKIE_HTTPONLY

True

DEBUG_PROPAGATE_EXCEPTIONS

False

MYCLUBMEDIA

'/media/'

OSCAR_FROM_EMAIL

'oscar@example.com'

MONTH_DAY_FORMAT

'F j'

LOGIN_URL

'/accounts/login/'

SESSION_EXPIRE_AT_BROWSER_CLOSE

False

TIME_FORMAT

'P'

COMPRESS_STORAGE

'compressor.storage.CompressorFileStorage'

AUTH_USER_MODEL

'auth.User'

DATE_INPUT_FORMATS

('%Y-%m-%d',
'%m/%d/%Y',
'%m/%d/%y',
'%b %d %Y',
'%b %d, %Y',
'%d %b %Y',
'%d %b, %Y',
'%B %d %Y',
'%B %d, %Y',
'%d %B %Y',
'%d %B, %Y')

COMPRESS_CSS_FILTERS

['compressor.filters.css_default.CssAbsoluteFilter']

AUTHENTICATION_BACKENDS

('oscar.apps.customer.auth_backends.Emailbackend',
'django.contrib.auth.backends.ModelBackend')

EMAIL_HOST_PASSWORD

u'********************'

COMPRESS_REBUILD_TIMEOUT

2592000

PASSWORD_RESET_TIMEOUT_DAYS

u'********************'

CACHE_MIDDLEWARE_ALIAS

'default'

SESSION_SAVE_EVERY_REQUEST

False

NUMBER_GROUPING

0

SESSION_ENGINE

'django.contrib.sessions.backends.db'

CSRF_FAILURE_VIEW

'django.views.csrf.csrf_failure'

CSRF_COOKIE_PATH

'/'

COMPRESS_CACHE_KEY_FUNCTION

u'********************'

LOGIN_REDIRECT_URL

'/accounts/profile/'

DECIMAL_SEPARATOR

'.'

COMPRESS_PRECOMPILERS

()

COMPRESS_MTIME_DELAY

10

SITE_ID

1

OSCAR_PROMOTION_POSITIONS

(('page', 'Page'),
('right', 'Right-hand sidebar'),
('left', 'Left-hand sidebar'))

LOCALE_PATHS

()

TEMPLATE_STRING_IF_INVALID

''

COUNTDOWN

'Countdown'

LOGOUT_URL

'/accounts/logout/'

EMAIL_USE_TLS

False

TEMPLATE_DIRS

(Path('/home/administrator/git/winkel/template/'),
'/usr/local/lib/python2.7/dist-packages/oscar/templates/oscar')

FIXTURE_DIRS

()

EMAIL_HOST

'localhost'

DATE_FORMAT

'N j, Y'

OSCAR_EAGER_ALERTS

True

MEDIA_ROOT

Path('/home/administrator/git/winkel/media//')

OSCAR_BASKET_COOKIE_SAVED

'oscar_saved_basket'

LIST

'List'

DEFAULT_EXCEPTION_REPORTER_FILTER

'django.views.debug.SafeExceptionReporterFilter'

ADMINS

()

FORMAT_MODULE_PATH

None

DEFAULT_FROM_EMAIL

'webmaster@localhost'

COMPRESS_ROOT

'/'

OSCAR_PRODUCTS_PER_PAGE

20

MEDIA_URL

'/media/'

DATETIME_FORMAT

'N j, Y, P'

COMPRESS_YUI_JS_ARGUMENTS

''

COMPRESS_JS_COMPRESSOR

'compressor.js.JsCompressor'

DISALLOWED_USER_AGENTS

()

ALLOWED_INCLUDE_ROOTS

()

OSCAR_PROMOTION_MERCHANDISING_BLOCK_TYPES

(('Countdown', 'Vertical list'),
('List', 'Horizontal list'),
('TabbedBlock', 'Tabbed block'),
('SingleProduct', 'Single product'))

USE_THOUSAND_SEPARATOR

False

COMPRESS_MINT_DELAY

30

LOGGING

{'disable_existing_loggers': True,
'formatters': {'standard': {'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s'}},
'handlers': {'default': {'backupCount': 5,
'class': 'logging.handlers.RotatingFileHandler',
'filename': '/home/administrator/git/winkel/logs/mylog.log',
'formatter': 'standard',
'level': 'DEBUG',
'maxBytes': 104857600},
'request_handler': {'backupCount': 5,
'class': 'logging.handlers.RotatingFileHandler',
'filename': '/home/administrator/git/winkel/logs/django_request.log',
'formatter': 'standard',
'level': 'DEBUG',
'maxBytes': 5242880}},
'loggers': {'': {'handlers': ['default'],
'level': 'DEBUG',
'propagate': True},
'django.request': {'handlers': ['request_handler'],
'level': 'DEBUG',
'propagate': False}},
'version': 1}

OSCAR_SETTINGS

{'OSCAR_ACCOUNTS_REDIRECT_URL': 'customer:profile-view',
'OSCAR_ALLOW_ANON_CHECKOUT': False,
'OSCAR_ALLOW_ANON_REVIEWS': True,
'OSCAR_BASKET_COOKIE_LIFETIME': 604800,
'OSCAR_BASKET_COOKIE_OPEN': 'oscar_open_basket',
'OSCAR_BASKET_COOKIE_SAVED': 'oscar_saved_basket',
'OSCAR_COOKIES_DELETE_ON_LOGOUT': ['oscar_recently_viewed_products'],
'OSCAR_CURRENCY_LOCALE': 'en_GB',
'OSCAR_DASHBOARD_NAVIGATION': [{'icon': 'icon-th-list',
'label': ,
'url_name': 'dashboard:index'},
{'children': [{'label': ,
'url_name': 'dashboard:catalogue-product-list'},
{'label': ,
'url_name': 'dashboard:catalogue-category-list'},
{'label': ,
'url_name': 'dashboard:range-list'},
{'label': ,
'url_name': 'dashboard:stock-alert-list'}],
'icon': 'icon-sitemap',
'label': },
{'children': [{'label': ,
'url_name': 'dashboard:order-list'},
{'label': ,
'url_name': 'dashboard:order-stats'},
{'label': ,
'url_name': 'dashboard:partner-list'}],
'icon': 'icon-shopping-cart',
'label': },
{'children': [{'label': ,
'url_name': 'dashboard:users-index'},
{'label': ,
'url_name': 'dashboard:user-alert-list'}],
'icon': 'icon-group',
'label': },
{'children': [{'label': ,
'url_name': 'dashboard:offer-list'},
{'label': ,
'url_name': 'dashboard:voucher-list'}],
'icon': 'icon-bullhorn',
'label': },
{'children': [{'label': ,
'url_name': 'dashboard:promotion-list'},
{'label': ,
'url_name': 'dashboard:promotion-list-by-page'},
{'label': ,
'url_name': 'dashboard:page-list'},
{'label': ,
'url_name': 'dashboard:comms-list'},
{'label': ,
'url_name': 'dashboard:reviews-list'}],
'icon': 'icon-folder-close',
'label': },
{'icon': 'icon-bar-chart',
'label': ,
'url_name': 'dashboard:reports-index'}],
'OSCAR_DEFAULT_CURRENCY': 'GBP',
'OSCAR_EAGER_ALERTS': True,
'OSCAR_FROM_EMAIL': 'oscar@example.com',
'OSCAR_HIDDEN_FEATURES': [],
'OSCAR_IMAGE_FOLDER': 'images/products/%Y/%m/',
'OSCAR_MAX_BASKET_QUANTITY_THRESHOLD': 10000,
'OSCAR_MISSING_IMAGE_URL': 'image_not_found.jpg',
'OSCAR_MODERATE_REVIEWS': False,
'OSCAR_OFFER_BLACKLIST_PRODUCT': None,
'OSCAR_PARTNER_WRAPPERS': {},
'OSCAR_PRODUCTS_PER_PAGE': 20,
'OSCAR_PROMOTION_FOLDER': 'images/promotions/',
'OSCAR_PROMOTION_MERCHANDISING_BLOCK_TYPES': (('Countdown', 'Vertical list'),
('List', 'Horizontal list'),
('TabbedBlock',
'Tabbed block'),
('SingleProduct',
'Single product')),
'OSCAR_PROMOTION_POSITIONS': (('page', 'Page'),
('right', 'Right-hand sidebar'),
('left', 'Left-hand sidebar')),
'OSCAR_RECENTLY_VIEWED_COOKIE_LIFETIME': 604800,
'OSCAR_RECENTLY_VIEWED_COOKIE_NAME': 'oscar_history',
'OSCAR_RECENTLY_VIEWED_PRODUCTS': 20,
'OSCAR_REQUIRED_ADDRESS_FIELDS': ('first_name',
'last_name',
'line1',
'line4',
'postcode',
'country'),
'OSCAR_SEARCH_FACETS': {'fields': {'category': {'field': 'category',
'name': },
'product_class': {'field': 'product_class',
'name': }},
'queries': {'price_range': {'field': 'price',
'name': ,
'queries': [(,
'[0 TO 20]'),
(,
'[20 TO 40]'),
(,
'[40 TO 60]'),
(,
'[60 TO *]')]}}},
'OSCAR_SEND_REGISTRATION_EMAIL': True,
'OSCAR_SHOP_NAME': 'Oscar',
'OSCAR_SHOP_TAGLINE': '',
'OSCAR_UPLOAD_ROOT': '/tmp'}

SHORT_DATE_FORMAT

'm/d/Y'

OSCAR_MAX_BASKET_QUANTITY_THRESHOLD

10000

TEST_RUNNER

'django.test.runner.DiscoverRunner'

COMPRESS_ENABLED

False

CACHE_MIDDLEWARE_KEY_PREFIX

u'********************'

COMPRESS_OFFLINE

False

TIME_ZONE

'Europe/Brussels'

FILE_UPLOAD_MAX_MEMORY_SIZE

2621440

EMAIL_BACKEND

'django.core.mail.backends.smtp.EmailBackend'

DEFAULT_TABLESPACE

''

TEMPLATE_CONTEXT_PROCESSORS

('django.contrib.auth.context_processors.auth',
'django.core.context_processors.request',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.static',
'django.core.context_processors.tz',
'django.contrib.messages.context_processors.messages',
'oscar.apps.search.context_processors.search_form',
'oscar.apps.promotions.context_processors.promotions',
'oscar.apps.checkout.context_processors.checkout',
'oscar.apps.customer.notifications.context_processors.notifications',
'oscar.core.context_processors.metadata')

OSCAR_SEND_REGISTRATION_EMAIL

True

SESSION_COOKIE_AGE

1209600

SETTINGS_MODULE

'winkel.settings'

USE_ETAGS

False

LANGUAGES

(('af', 'Afrikaans'),
('ar', 'Arabic'),
('az', 'Azerbaijani'),
('bg', 'Bulgarian'),
('be', 'Belarusian'),
('bn', 'Bengali'),
('br', 'Breton'),
('bs', 'Bosnian'),
('ca', 'Catalan'),
('cs', 'Czech'),
('cy', 'Welsh'),
('da', 'Danish'),
('de', 'German'),
('el', 'Greek'),
('en', 'English'),
('en-gb', 'British English'),
('eo', 'Esperanto'),
('es', 'Spanish'),
('es-ar', 'Argentinian Spanish'),
('es-mx', 'Mexican Spanish'),
('es-ni', 'Nicaraguan Spanish'),
('es-ve', 'Venezuelan Spanish'),
('et', 'Estonian'),
('eu', 'Basque'),
('fa', 'Persian'),
('fi', 'Finnish'),
('fr', 'French'),
('fy-nl', 'Frisian'),
('ga', 'Irish'),
('gl', 'Galician'),
('he', 'Hebrew'),
('hi', 'Hindi'),
('hr', 'Croatian'),
('hu', 'Hungarian'),
('ia', 'Interlingua'),
('id', 'Indonesian'),
('is', 'Icelandic'),
('it', 'Italian'),
('ja', 'Japanese'),
('ka', 'Georgian'),
('kk', 'Kazakh'),
('km', 'Khmer'),
('kn', 'Kannada'),
('ko', 'Korean'),
('lb', 'Luxembourgish'),
('lt', 'Lithuanian'),
('lv', 'Latvian'),
('mk', 'Macedonian'),
('ml', 'Malayalam'),
('mn', 'Mongolian'),
('my', 'Burmese'),
('nb', 'Norwegian Bokmal'),
('ne', 'Nepali'),
('nl', 'Dutch'),
('nn', 'Norwegian Nynorsk'),
('os', 'Ossetic'),
('pa', 'Punjabi'),
('pl', 'Polish'),
('pt', 'Portuguese'),
('pt-br', 'Brazilian Portuguese'),
('ro', 'Romanian'),
('ru', 'Russian'),
('sk', 'Slovak'),
('sl', 'Slovenian'),
('sq', 'Albanian'),
('sr', 'Serbian'),
('sr-latn', 'Serbian Latin'),
('sv', 'Swedish'),
('sw', 'Swahili'),
('ta', 'Tamil'),
('te', 'Telugu'),
('th', 'Thai'),
('tr', 'Turkish'),
('tt', 'Tatar'),
('udm', 'Udmurt'),
('uk', 'Ukrainian'),
('ur', 'Urdu'),
('vi', 'Vietnamese'),
('zh-cn', 'Simplified Chinese'),
('zh-tw', 'Traditional Chinese'))

COMPRESS_CLOSURE_COMPILER_BINARY

'java -jar compiler.jar'

FILE_UPLOAD_TEMP_DIR

None

INTERNAL_IPS

()

STATIC_URL

'/static/'

EMAIL_PORT

1025

USE_TZ

True

SHORT_DATETIME_FORMAT

'm/d/Y P'

PASSWORD_HASHERS

u'********************'

ABSOLUTE_URL_OVERRIDES

{}

OSCAR_MISSING_IMAGE_URL

'image_not_found.jpg'

OSCAR_COOKIES_DELETE_ON_LOGOUT

['oscar_recently_viewed_products']

CACHE_MIDDLEWARE_SECONDS

600

CSRF_COOKIE_HTTPONLY

False

DATETIME_INPUT_FORMATS

('%Y-%m-%d %H:%M:%S',
'%Y-%m-%d %H:%M:%S.%f',
'%Y-%m-%d %H:%M',
'%Y-%m-%d',
'%m/%d/%Y %H:%M:%S',
'%m/%d/%Y %H:%M:%S.%f',
'%m/%d/%Y %H:%M',
'%m/%d/%Y',
'%m/%d/%y %H:%M:%S',
'%m/%d/%y %H:%M:%S.%f',
'%m/%d/%y %H:%M',
'%m/%d/%y')

OSCAR_REQUIRED_ADDRESS_FIELDS

('first_name', 'last_name', 'line1', 'line4', 'postcode', 'country')

OSCAR_BASKET_COOKIE_LIFETIME

604800

EMAIL_HOST_USER

''

PROFANITIES_LIST

u'********************'

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.