Help, Support and Suggestions

Super Long Error Message
CateranLlama at 10:19AM, July 17, 2011
(online)
posts: 37
joined: 1-2-2008
Found when trying to upload a sample page to play with the system.
KeyError at /comics/add_page/41334/
u'JPG'



Request Method:
POST


Request URL:
http://drunkduck.com/comics/add_page/41334/


Django Version:
1.3


Exception Type:
KeyError


Exception Value:

u'JPG'



Exception Location:
/usr/lib/python2.6/dist-packages/PIL/Image.py in save, line 1429


Python Executable:
/home/duck/public/drunkduck/


Python Version:
2.6.5


Python Path:

['/home/duck/public/drunkduck',
‘.’,
‘',
’/usr/local/lib/python2.6/dist-packages/pip-0.8.3-py2.6.egg',
‘/usr/lib/python2.6’,
‘/usr/lib/python2.6/plat-linux2’,
‘/usr/lib/python2.6/lib-tk’,
‘/usr/lib/python2.6/lib-old’,
‘/usr/lib/python2.6/lib-dynload’,
‘/usr/lib/python2.6/dist-packages’,
‘/usr/lib/python2.6/dist-packages/PIL’,
‘/usr/lib/pymodules/python2.6’,
‘/usr/local/lib/python2.6/dist-packages’,
‘/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg-info’,
‘/home/duck/public/drunkduck’]



Server time:
Sun, 17 Jul 2011 10:15:36 -0700





Traceback Switch to copy-and-paste view


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


for middleware_method in self._view_middleware:


response = middleware_method(request, callback, callback_args, callback_kwargs)


if response:


break


if response is None:


try:



response = callback(request, *callback_args, **callback_kwargs)



except Exception, e:


# If the view raised an exception, run it through exception


# middleware, and if the exception middleware returns a


# response, use that. Otherwise, reraise the exception.


for middleware_method in self._exception_middleware:


response = middleware_method(request, e)


▶ Local vars



VariableValue




exceptions





e

KeyError(u'JPG',)



callback_args

()



receivers





middleware_method

>



self





settings





request

,
POST:,
COOKIES:{'__switchTo5x': ‘8’,
‘__unam’: ‘58c3a7c-131064e830e-413f0440-107’,
‘__utma’: ‘157871727.1614537907.1308287085.1310873838.1310922208.119’,
‘__utmb’: ‘157871727.14.10.1310922208’,
‘__utmc’: ‘157871727’,
‘__utmz’: ‘157871727.1310922208.119.18.utmcsr=freewebs.com|utmccn=(referral)|utmcmd=referral|utmcct=/minalunga/Frame_main.htm’,
‘csrftoken’: ‘24232b72485febb5d10ed871bb0a41f8’,
‘sessionid’: ‘b20d785a4a85623301c4478b27293db1’,
‘ttime’: ‘1310738633’},
META:{'CONTENT_LENGTH': ‘10525’,
‘CONTENT_TYPE’: ‘multipart/form-data; boundary=—————————18060217183753’,
‘CSRF_COOKIE’: ‘24232b72485febb5d10ed871bb0a41f8’,
‘DOCUMENT_ROOT’: ‘/usr/local/nginx/html’,
‘HTTP_ACCEPT’: ‘text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8’,
‘HTTP_ACCEPT_CHARSET’: ‘ISO-8859-1,utf-8;q=0.7,*;q=0.7’,
‘HTTP_ACCEPT_ENCODING’: ‘gzip,deflate’,
‘HTTP_ACCEPT_LANGUAGE’: ‘en-us,en;q=0.5’,
‘HTTP_CONNECTION’: ‘keep-alive’,
‘HTTP_CONTENT_LENGTH’: ‘10525’,
‘HTTP_CONTENT_TYPE’: ‘multipart/form-data; boundary=—————————18060217183753’,
‘HTTP_COOKIE’: ‘__utma=157871727.1614537907.1308287085.1310873838.1310922208.119; __utmz=157871727.1310922208.119.18.utmcsr=freewebs.com|utmccn=(referral)|utmcmd=referral|utmcct=/minalunga/Frame_main.htm; ttime=1310738633; __switchTo5x=8; __unam=58c3a7c-131064e830e-413f0440-107; csrftoken=24232b72485febb5d10ed871bb0a41f8; sessionid=b20d785a4a85623301c4478b27293db1; __utmb=157871727.14.10.1310922208; __utmc=157871727’,
‘HTTP_HOST’: ‘drunkduck.com’,
‘HTTP_KEEP_ALIVE’: ‘115’,
‘HTTP_REFERER’: 'http://drunkduck.com/comics/add_page/41334/',
‘HTTP_USER_AGENT’: ‘Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18’,
‘PATH_INFO’: u'/comics/add_page/41334/',
‘QUERY_STRING’: ‘',
’REMOTE_ADDR': ‘4.153.14.124’,
‘REMOTE_PORT’: ‘55980’,
‘REQUEST_METHOD’: ‘POST’,
‘REQUEST_URI’: ‘/comics/add_page/41334/’,
‘SCRIPT_NAME’: u'',
‘SERVER_NAME’: ‘www.drunkduck.com’,
‘SERVER_PORT’: ‘80’,
‘SERVER_PROTOCOL’: ‘HTTP/1.1’,
‘uwsgi.version’: ‘0.9.7’,
‘wsgi.errors’: ,
‘wsgi.file_wrapper’: ,
‘wsgi.input’: ,
‘wsgi.multiprocess’: True,
‘wsgi.multithread’: False,
‘wsgi.run_once’: False,
‘wsgi.url_scheme’: ‘http’,
‘wsgi.version’: (1, 0)}>



callback





resolver





urlresolvers





callback_kwargs

{'id': u'41334'}



response

None



urlconf

'urls'





/usr/local/lib/python2.6/dist-packages/django/contrib/auth/decorators.py in _wrapped_view


that takes the user object and returns True if the user passes.


“”“


def decorator(view_func):


@wraps(view_func, assigned=available_attrs(view_func))


def _wrapped_view(request, *args, **kwargs):


if test_func(request.user):



return view_func(request, *args, **kwargs)



path = request.build_absolute_uri()


# If the login url is the same scheme and net location then just


# use the path as the ”next" url.


login_scheme, login_netloc = urlparse.urlparse(login_url or


settings.LOGIN_URL)


current_scheme, current_netloc = urlparse.urlparse(path)


▶ Local vars



VariableValue




test_func

at 0xa34525c>



login_url

None



args

()



request

,
POST:,
COOKIES:{'__switchTo5x': ‘8’,
‘__unam’: ‘58c3a7c-131064e830e-413f0440-107’,
‘__utma’: ‘157871727.1614537907.1308287085.1310873838.1310922208.119’,
‘__utmb’: ‘157871727.14.10.1310922208’,
‘__utmc’: ‘157871727’,
‘__utmz’: ‘157871727.1310922208.119.18.utmcsr=freewebs.com|utmccn=(referral)|utmcmd=referral|utmcct=/minalunga/Frame_main.htm’,
‘csrftoken’: ‘24232b72485febb5d10ed871bb0a41f8’,
‘sessionid’: ‘b20d785a4a85623301c4478b27293db1’,
‘ttime’: ‘1310738633’},
META:{'CONTENT_LENGTH': ‘10525’,
‘CONTENT_TYPE’: ‘multipart/form-data; boundary=—————————18060217183753’,
‘CSRF_COOKIE’: ‘24232b72485febb5d10ed871bb0a41f8’,
‘DOCUMENT_ROOT’: ‘/usr/local/nginx/html’,
‘HTTP_ACCEPT’: ‘text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8’,
‘HTTP_ACCEPT_CHARSET’: ‘ISO-8859-1,utf-8;q=0.7,*;q=0.7’,
‘HTTP_ACCEPT_ENCODING’: ‘gzip,deflate’,
‘HTTP_ACCEPT_LANGUAGE’: ‘en-us,en;q=0.5’,
‘HTTP_CONNECTION’: ‘keep-alive’,
‘HTTP_CONTENT_LENGTH’: ‘10525’,
‘HTTP_CONTENT_TYPE’: ‘multipart/form-data; boundary=—————————18060217183753’,
‘HTTP_COOKIE’: ‘__utma=157871727.1614537907.1308287085.1310873838.1310922208.119; __utmz=157871727.1310922208.119.18.utmcsr=freewebs.com|utmccn=(referral)|utmcmd=referral|utmcct=/minalunga/Frame_main.htm; ttime=1310738633; __switchTo5x=8; __unam=58c3a7c-131064e830e-413f0440-107; csrftoken=24232b72485febb5d10ed871bb0a41f8; sessionid=b20d785a4a85623301c4478b27293db1; __utmb=157871727.14.10.1310922208; __utmc=157871727’,
‘HTTP_HOST’: ‘drunkduck.com’,
‘HTTP_KEEP_ALIVE’: ‘115’,
‘HTTP_REFERER’: 'http://drunkduck.com/comics/add_page/41334/',
‘HTTP_USER_AGENT’: ‘Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18’,
‘PATH_INFO’: u'/comics/add_page/41334/',
‘QUERY_STRING’: ‘',
’REMOTE_ADDR': ‘4.153.14.124’,
‘REMOTE_PORT’: ‘55980’,
‘REQUEST_METHOD’: ‘POST’,
‘REQUEST_URI’: ‘/comics/add_page/41334/’,
‘SCRIPT_NAME’: u'',
‘SERVER_NAME’: ‘www.drunkduck.com’,
‘SERVER_PORT’: ‘80’,
‘SERVER_PROTOCOL’: ‘HTTP/1.1’,
‘uwsgi.version’: ‘0.9.7’,
‘wsgi.errors’: ,
‘wsgi.file_wrapper’: ,
‘wsgi.input’: ,
‘wsgi.multiprocess’: True,
‘wsgi.multithread’: False,
‘wsgi.run_once’: False,
‘wsgi.url_scheme’: ‘http’,
‘wsgi.version’: (1, 0)}>



kwargs

{'id': u'41334'}



redirect_field_name

'next'



view_func







/home/duck/public/drunkduck/comics/views.py in add_page


# for form in formset:


comic_page = form.save(commit=False)


comic_page.comic = comic


order = comic.pages.aggregate(Max('order_id')).get('order_id__max')


if not order:


order = 0


comic_page.order_id = order + 1



comic_page.save()



if request.POST.get('another', False):


form = PageForm()


else:


path = “/comics/pages/%s/” % str(comic.id)


return HttpResponseRedirect(path)


# formset = PageFormSet()


▶ Local vars



VariableValue




comic_page





form





request

,
POST:,
COOKIES:{'__switchTo5x': ‘8’,
‘__unam’: ‘58c3a7c-131064e830e-413f0440-107’,
‘__utma’: ‘157871727.1614537907.1308287085.1310873838.1310922208.119’,
‘__utmb’: ‘157871727.14.10.1310922208’,
‘__utmc’: ‘157871727’,
‘__utmz’: ‘157871727.1310922208.119.18.utmcsr=freewebs.com|utmccn=(referral)|utmcmd=referral|utmcct=/minalunga/Frame_main.htm’,
‘csrftoken’: ‘24232b72485febb5d10ed871bb0a41f8’,
‘sessionid’: ‘b20d785a4a85623301c4478b27293db1’,
‘ttime’: ‘1310738633’},
META:{'CONTENT_LENGTH': ‘10525’,
‘CONTENT_TYPE’: ‘multipart/form-data; boundary=—————————18060217183753’,
‘CSRF_COOKIE’: ‘24232b72485febb5d10ed871bb0a41f8’,
‘DOCUMENT_ROOT’: ‘/usr/local/nginx/html’,
‘HTTP_ACCEPT’: ‘text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8’,
‘HTTP_ACCEPT_CHARSET’: ‘ISO-8859-1,utf-8;q=0.7,*;q=0.7’,
‘HTTP_ACCEPT_ENCODING’: ‘gzip,deflate’,
‘HTTP_ACCEPT_LANGUAGE’: ‘en-us,en;q=0.5’,
‘HTTP_CONNECTION’: ‘keep-alive’,
‘HTTP_CONTENT_LENGTH’: ‘10525’,
‘HTTP_CONTENT_TYPE’: ‘multipart/form-data; boundary=—————————18060217183753’,
‘HTTP_COOKIE’: ‘__utma=157871727.1614537907.1308287085.1310873838.1310922208.119; __utmz=157871727.1310922208.119.18.utmcsr=freewebs.com|utmccn=(referral)|utmcmd=referral|utmcct=/minalunga/Frame_main.htm; ttime=1310738633; __switchTo5x=8; __unam=58c3a7c-131064e830e-413f0440-107; csrftoken=24232b72485febb5d10ed871bb0a41f8; sessionid=b20d785a4a85623301c4478b27293db1; __utmb=157871727.14.10.1310922208; __utmc=157871727’,
‘HTTP_HOST’: ‘drunkduck.com’,
‘HTTP_KEEP_ALIVE’: ‘115’,
‘HTTP_REFERER’: 'http://drunkduck.com/comics/add_page/41334/',
‘HTTP_USER_AGENT’: ‘Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18’,
‘PATH_INFO’: u'/comics/add_page/41334/',
‘QUERY_STRING’: ‘',
’REMOTE_ADDR': ‘4.153.14.124’,
‘REMOTE_PORT’: ‘55980’,
‘REQUEST_METHOD’: ‘POST’,
‘REQUEST_URI’: ‘/comics/add_page/41334/’,
‘SCRIPT_NAME’: u'',
‘SERVER_NAME’: ‘www.drunkduck.com’,
‘SERVER_PORT’: ‘80’,
‘SERVER_PROTOCOL’: ‘HTTP/1.1’,
‘uwsgi.version’: ‘0.9.7’,
‘wsgi.errors’: ,
‘wsgi.file_wrapper’: ,
‘wsgi.input’: ,
‘wsgi.multiprocess’: True,
‘wsgi.multithread’: False,
‘wsgi.run_once’: False,
‘wsgi.url_scheme’: ‘http’,
‘wsgi.version’: (1, 0)}>



order

0



comic





id

u'41334'





/home/duck/public/drunkduck/comics/models.py in save


comments = models.ManyToManyField(Comment, null=True, blank=True)


old_page_id = models.IntegerField(null=True, blank=True)


comic_name = models.CharField(max_length=255, null=True)


file_ext = models.CharField(max_length=5, null=True)


def save(self, *args, **kwargs):



super(ComicPage, self).save(*args, **kwargs)



if self.post_date


self.comic.save()


self.alert_users()


class Meta:


▶ Local vars



VariableValue




self





args

()



kwargs

{}





/usr/local/lib/python2.6/dist-packages/django/db/models/base.py in save


The ‘force_insert’ and ‘force_update’ parameters can be used to insist


that the “save” must be an SQL insert or update (or equivalent for


non-SQL backends), respectively. Normally, they should not be set.


“”“


if force_insert and force_update:


raise ValueError(”Cannot force both insert and updating in model saving.“)



self.save_base(using=using, force_insert=force_insert, force_update=force_update)



save.alters_data = True


def save_base(self, raw=False, cls=None, origin=None, force_insert=False,


force_update=False, using=None):


”“”


▶ Local vars



VariableValue




using

None



self





force_update

False



force_insert

False





/usr/local/lib/python2.6/dist-packages/django/db/models/base.py in save_base


meta = cls._meta


if not meta.proxy:


origin = cls


else:


meta = cls._meta


if origin and not meta.auto_created:



signals.pre_save.send(sender=origin, instance=self, raw=raw, using=using)



# If we are in a raw save, save the object exactly as presented.


# That means that we don't try to be smart about saving attributes


# that might have come from the parent class - we just save the


# attributes we have been given to the class we have been given.


# We also go through this process to defer the save of proxy objects


▶ Local vars



VariableValue




origin





force_insert

False



self





force_update

False



raw

False



connection





meta





using

'default'



cls







/usr/local/lib/python2.6/dist-packages/django/dispatch/dispatcher.py in send


Returns a list of tuple pairs .


“”"


responses =


if not self.receivers:


return responses


for receiver in self._live_receivers(_make_id(sender)):



response = receiver(signal=self, sender=sender, **named)



responses.append((receiver, response))


return responses


def send_robust(self, sender, **named):


“”"


Send signal from sender to all connected receivers catching errors.


▶ Local vars



VariableValue




self





named

{'instance': , ‘raw’: False, ‘using’: ‘default’}



sender





responses





receiver







/home/duck/public/drunkduck/comics/models.py in page_cropper


return


im, resized = rescale(im, 960)


io = StringIO()


filename = kwargs.content.name.split('/')


ext = filename.split('.')


if ext == ‘jpg’:


ext = ‘jpeg’



im.save(io, format=ext.upper())



file = InMemoryUploadedFile(io, None, filename, ‘image/’ + ext, io.len, None)


kwargs.content = file


def header_cropper(sender, **kwargs):


try:


▶ Local vars



VariableValue




sender





resized

False



filename

u'100_1628.JPG'



ext

u'JPG'



im





io





kwargs

{'instance': ,
‘raw’: False,
‘signal’: ,
‘using’: ‘default’}





/usr/lib/python2.6/dist-packages/PIL/Image.py in save


except KeyError:


raise KeyError(ext) # unknown extension


try:


save_handler = SAVE


except KeyError:


init()



save_handler = SAVE # unknown format



if isStringType(fp):


import __builtin__


fp = __builtin__.open(fp, “wb”)


close = 1


else:


▶ Local vars



VariableValue




fp





format

u'JPG'



self





filename

''



ext

''



params

{}









Environment:

Request Method: POST
Request URL: http://drunkduck.com/comics/add_page/41334/
Django Version: 1.3
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.sites’,
‘django.contrib.admin’,
‘django.contrib.humanize’,
‘django.contrib.webdesign’,
‘tinymce’,
‘smileys’,
‘oembed’,
‘pagination’,
‘tagging’,
‘users’,
‘uservideos’,
‘trophies’,
‘videos’,
‘news’,
‘messages’,
‘podcasts’,
‘corp’,
‘tutorials’,
‘forums’,
‘comics’,
‘search’,
‘comments’,
‘ratings’,
‘duckmarks’,
‘tweets’,
‘requests’,
‘layouts’,
‘analytics’,
‘imagelocker’,
‘subpages’,
‘south’]
Installed Middleware:
('django.middleware.common.CommonMiddleware',
‘django.contrib.sessions.middleware.SessionMiddleware’,
‘django.middleware.csrf.CsrfViewMiddleware’,
‘django.middleware.csrf.CsrfResponseMiddleware’,
‘django.contrib.auth.middleware.AuthenticationMiddleware’,
‘django.contrib.messages.middleware.MessageMiddleware’,
‘pagination.middleware.PaginationMiddleware’)

Traceback:
File “/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py” in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File “/usr/local/lib/python2.6/dist-packages/django/contrib/auth/decorators.py” in _wrapped_view
23. return view_func(request, *args, **kwargs)
File “/home/duck/public/drunkduck/comics/views.py” in add_page
188. comic_page.save()
File “/home/duck/public/drunkduck/comics/models.py” in save
327. super(ComicPage, self).save(*args, **kwargs)
File “/usr/local/lib/python2.6/dist-packages/django/db/models/base.py” in save
460. self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File “/usr/local/lib/python2.6/dist-packages/django/db/models/base.py” in save_base
484. signals.pre_save.send(sender=origin, instance=self, raw=raw, using=using)
File “/usr/local/lib/python2.6/dist-packages/django/dispatch/dispatcher.py” in send
172. response = receiver(signal=self, sender=sender, **named)
File “/home/duck/public/drunkduck/comics/models.py” in page_cropper
151. im.save(io, format=ext.upper())
File “/usr/lib/python2.6/dist-packages/PIL/Image.py” in save
1429. save_handler = SAVE # unknown format
Exception Type: KeyError at /comics/add_page/41334/
Exception Value: u'JPG'




Request information
GET
No GET data
POST



VariableValue




comment

u'checking to see if this will let me edit layout'



post_date_year

u'2011'



title

u'test'



post_date_month

u'7'



post_date_day

u'16'



another

u'save pages and add more'



csrfmiddlewaretoken

u'24232b72485febb5d10ed871bb0a41f8'




FILES



VariableValue




content






COOKIES



VariableValue




__utmz

'157871727.1310922208.119.18.utmcsr=freewebs.com|utmccn=(referral)|utmcmd=referral|utmcct=/minalunga/Frame_main.htm'



__switchTo5x

'8'



__unam

'58c3a7c-131064e830e-413f0440-107'



sessionid

'b20d785a4a85623301c4478b27293db1'



csrftoken

'24232b72485febb5d10ed871bb0a41f8'



__utma

'157871727.1614537907.1308287085.1310873838.1310922208.119'



ttime

'1310738633'



__utmc

'157871727'



__utmb

'157871727.14.10.1310922208'




META



VariableValue




wsgi.multiprocess

True



HTTP_REFERER

'http://drunkduck.com/comics/add_page/41334/'



SCRIPT_NAME

u''



REQUEST_METHOD

'POST'



HTTP_KEEP_ALIVE

'115'



SERVER_PROTOCOL

'HTTP/1.1'



QUERY_STRING

''



CONTENT_LENGTH

'10525'



HTTP_ACCEPT_CHARSET

'ISO-8859-1,utf-8;q=0.7,*;q=0.7'



HTTP_USER_AGENT

'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18'



HTTP_CONNECTION

'keep-alive'



HTTP_COOKIE

'__utma=157871727.1614537907.1308287085.1310873838.1310922208.119; __utmz=157871727.1310922208.119.18.utmcsr=freewebs.com|utmccn=(referral)|utmcmd=referral|utmcct=/minalunga/Frame_main.htm; ttime=1310738633; __switchTo5x=8; __unam=58c3a7c-131064e830e-413f0440-107; csrftoken=24232b72485febb5d10ed871bb0a41f8; sessionid=b20d785a4a85623301c4478b27293db1; __utmb=157871727.14.10.1310922208; __utmc=157871727'



SERVER_NAME

'www.drunkduck.com'



REMOTE_ADDR

'4.153.14.124'



wsgi.url_scheme

'http'



SERVER_PORT

'80'



DOCUMENT_ROOT

'/usr/local/nginx/html'



HTTP_CONTENT_LENGTH

'10525'



wsgi.input





HTTP_HOST

'drunkduck.com'



wsgi.multithread

False



HTTP_CONTENT_TYPE

'multipart/form-data; boundary=—————————18060217183753'



REQUEST_URI

'/comics/add_page/41334/'



HTTP_ACCEPT

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



wsgi.version

(1, 0)



wsgi.run_once

False



wsgi.errors





REMOTE_PORT

'55980'



HTTP_ACCEPT_LANGUAGE

'en-us,en;q=0.5'



uwsgi.version

'0.9.7'



CONTENT_TYPE

'multipart/form-data; boundary=—————————18060217183753'



wsgi.file_wrapper

''



CSRF_COOKIE

'24232b72485febb5d10ed871bb0a41f8'



HTTP_ACCEPT_ENCODING

'gzip,deflate'



PATH_INFO

u'/comics/add_page/41334/'




Settings
Using settings module settings



SettingValue




USE_L10N

False



USE_THOUSAND_SEPARATOR

False



LANGUAGE_CODE

'en-us'



ROOT_URLCONF

'urls'



MANAGERS

()



DEFAULT_CHARSET

'utf-8'



STATIC_ROOT

''



TEST_DATABASE_CHARSET

None



MESSAGE_STORAGE

'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'



DATABASE_HOST

''



IGNORABLE_404_STARTS

('/cgi-bin/', ‘/_vti_bin’, ‘/_vti_inf’)



SEND_BROKEN_LINK_EMAILS

False



URL_VALIDATOR_USER_AGENT

'Django/1.3 (http://www.djangoproject.com)'



STATICFILES_FINDERS

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



SESSION_COOKIE_DOMAIN

None



SESSION_COOKIE_NAME

'sessionid'



AWS_STORAGE_BUCKET_NAME

'media.drunkduck.com'



ADMIN_FOR

()



TIME_INPUT_FORMATS

('%H:%M:%S', ‘%H:%M’)



DATABASES

{'default': {'ENGINE': ‘django.db.backends.postgresql_psycopg2’,
‘HOST’: ‘192.168.167.22’,
‘NAME’: ‘drunkduck’,
‘OPTIONS’: {},
‘PASSWORD’: ‘********************’,
‘PORT’: ‘5432’,
‘TEST_CHARSET’: None,
‘TEST_COLLATION’: None,
‘TEST_MIRROR’: None,
‘TEST_NAME’: None,
‘TIME_ZONE’: ‘America/Los_Angeles’,
‘USER’: ‘drunkduck’}}



ACCESS_SECRET

'********************'



TEST_DATABASE_NAME

None



FILE_UPLOAD_PERMISSIONS

None



AWS_SECRET_ACCESS_KEY

'********************'



FILE_UPLOAD_HANDLERS

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



DEFAULT_CONTENT_TYPE

'text/html'



APPEND_SLASH

True



FIRST_DAY_OF_WEEK

0



DATABASE_ROUTERS





YEAR_MONTH_FORMAT

'F Y'



STATICFILES_STORAGE

'django.contrib.staticfiles.storage.StaticFilesStorage'



CACHES

{'default': {'BACKEND': ‘django.core.cache.backends.locmem.LocMemCache’,
‘LOCATION’: ‘'}}



SERVER_EMAIL

’root@localhost'



SESSION_COOKIE_PATH

'/'



IGNORABLE_404_ENDS

('mail.pl', ‘mailform.pl’, ‘mail.cgi’, ‘mailform.cgi’, ‘favicon.ico’, ‘.php’)



MIDDLEWARE_CLASSES

('django.middleware.common.CommonMiddleware',
‘django.contrib.sessions.middleware.SessionMiddleware’,
‘django.middleware.csrf.CsrfViewMiddleware’,
‘django.middleware.csrf.CsrfResponseMiddleware’,
‘django.contrib.auth.middleware.AuthenticationMiddleware’,
‘django.contrib.messages.middleware.MessageMiddleware’,
‘pagination.middleware.PaginationMiddleware’)



USE_I18N

False



THOUSAND_SEPARATOR

','



SECRET_KEY

'********************'



LANGUAGE_COOKIE_NAME

'django_language'



FILE_UPLOAD_TEMP_DIR

None



COMIC_URL

'http://media.drunkduck.com/'



TRANSACTIONS_MANAGED

False



LOGGING_CONFIG

'django.utils.log.dictConfig'



TEMPLATE_LOADERS

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



TEMPLATE_DEBUG

True



CSRF_COOKIE_NAME

'csrftoken'



TEST_DATABASE_COLLATION

None



FORCE_SCRIPT_NAME

None



CACHE_BACKEND

'locmem://'



SESSION_COOKIE_SECURE

False



TINYMCE_SPELLCHECKER

True



CSRF_COOKIE_DOMAIN

None



FILE_CHARSET

'utf-8'



DEBUG

True



SESSION_FILE_PATH

None



AWS_ACCESS_KEY_ID

'AKIAJ5RENZ2C35363IHQ'



DEFAULT_FILE_STORAGE

'storages.backends.s3.S3Storage'



INSTALLED_APPS

['django.contrib.auth',
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.sites’,
‘django.contrib.admin’,
‘django.contrib.humanize’,
‘django.contrib.webdesign’,
‘tinymce’,
‘smileys’,
‘oembed’,
‘pagination’,
‘tagging’,
‘users’,
‘uservideos’,
‘trophies’,
‘videos’,
‘news’,
‘messages’,
‘podcasts’,
‘corp’,
‘tutorials’,
‘forums’,
‘comics’,
‘search’,
‘comments’,
‘ratings’,
‘duckmarks’,
‘tweets’,
‘requests’,
‘layouts’,
‘analytics’,
‘imagelocker’,
‘subpages’,
‘south’]



LANGUAGES

(('ar', ‘Arabic’),
('az', ‘Azerbaijani’),
('bg', ‘Bulgarian’),
('bn', ‘Bengali’),
('bs', ‘Bosnian’),
('ca', ‘Catalan’),
('cs', ‘Czech’),
('cy', ‘Welsh’),
('da', ‘Danish’),
('de', ‘German’),
('el', ‘Greek’),
('en', ‘English’),
('en-gb', ‘British English’),
('es', ‘Spanish’),
('es-ar', ‘Argentinian Spanish’),
('es-mx', ‘Mexican Spanish’),
('es-ni', ‘Nicaraguan 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’),
('id', ‘Indonesian’),
('is', ‘Icelandic’),
('it', ‘Italian’),
('ja', ‘Japanese’),
('ka', ‘Georgian’),
('km', ‘Khmer’),
('kn', ‘Kannada’),
('ko', ‘Korean’),
('lt', ‘Lithuanian’),
('lv', ‘Latvian’),
('mk', ‘Macedonian’),
('ml', ‘Malayalam’),
('mn', ‘Mongolian’),
('nl', ‘Dutch’),
('no', ‘Norwegian’),
('nb', ‘Norwegian Bokmal’),
('nn', ‘Norwegian Nynorsk’),
('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’),
('ta', ‘Tamil’),
('te', ‘Telugu’),
('th', ‘Thai’),
('tr', ‘Turkish’),
('uk', ‘Ukrainian’),
('ur', ‘Urdu’),
('vi', ‘Vietnamese’),
('zh-cn', ‘Simplified Chinese’),
('zh-tw', ‘Traditional Chinese’))



DATABASE_ENGINE

''



DATABASE_NAME

''



COMMENTS_FIRST_FEW

0



PREPEND_WWW

False



PASSWORD_RESET_TIMEOUT_DAYS

'********************'



SESSION_COOKIE_HTTPONLY

False



DATABASE_PORT

''



DEBUG_PROPAGATE_EXCEPTIONS

False



MONTH_DAY_FORMAT

'F j'



LOGIN_URL

'/login/'



SESSION_EXPIRE_AT_BROWSER_CLOSE

False



ACCESS_TOKEN

'207726284-uFI8u4nTqBOW4wCsP9Ns3w64JGZwjosab2pdZ3P4'



TIME_FORMAT

'P'



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’)



AUTHENTICATION_BACKENDS

('django.contrib.auth.backends.ModelBackend',)



EMAIL_HOST_PASSWORD

'********************'



AUTH_PROFILE_MODULE

'users.Profile'



CACHE_MIDDLEWARE_ALIAS

'default'



SESSION_SAVE_EVERY_REQUEST

False



ADMIN_MEDIA_PREFIX

'/media/admin/'



NUMBER_GROUPING

0



SESSION_ENGINE

'django.contrib.sessions.backends.db'



AWS_CALLING_FORMAT

2



CSRF_FAILURE_VIEW

'django.views.csrf.csrf_failure'



COMMENTS_SKETCHY_USERS_GROUP

None



LOGIN_REDIRECT_URL

'/accounts/profile/'



LOGGING

{'disable_existing_loggers': False,
‘handlers’: {'mail_admins': {'class': ‘django.utils.log.AdminEmailHandler’,
‘level’: ‘ERROR’}},
‘loggers’: {'django.request': {'handlers': ,
‘level’: ‘ERROR’,
‘propagate’: True}},
‘version’: 1}



CACHE_MIDDLEWARE_KEY_PREFIX

''



LOCALE_PATHS

()



TEMPLATE_STRING_IF_INVALID

''



COMMENTS_ALLOW_PROFANITIES

False



LOGOUT_URL

'/accounts/logout/'



EMAIL_USE_TLS

False



TEMPLATE_DIRS

('/home/duck/public/drunkduck/templates',)



FIXTURE_DIRS

()



EMAIL_HOST

'smtp.emailsrvr.com'



DATE_FORMAT

'N j, Y'



MEDIA_ROOT

'/home/duck/public/drunkduck/media/'



ADMINS

()



FORMAT_MODULE_PATH

None



DEFAULT_FROM_EMAIL

'webmaster@localhost'



STATICFILES_DIRS

()



MEDIA_URL

'/media/'



DATETIME_FORMAT

'N j, Y, P'



EMAIL_SUBJECT_PREFIX

' ‘



SITE_ID

1



DISALLOWED_USER_AGENTS

()



ALLOWED_INCLUDE_ROOTS

()



CONSUMER_SECRET

’********************'



STATIC_DOC_ROOT

'/home/duck/public/drunkduck/media/'



DECIMAL_SEPARATOR

'.'



PROJECT_DIR

'/home/duck/public/drunkduck'



DATABASE_USER

''



AWS_SECRET_KEY

'********************'



TEST_RUNNER

'django.test.simple.DjangoTestSuiteRunner'



SHORT_DATE_FORMAT

'm/d/Y'



TIME_ZONE

'America/Los_Angeles'



AWS_ROOT

'users/'



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.media’)



AWS_S3URL

'http://media.drunkduck.com/'



SESSION_COOKIE_AGE

1209600



SETTINGS_MODULE

'settings'



USE_ETAGS

False



LANGUAGES_BIDI

('he', ‘ar’, ‘fa’)



DEFAULT_INDEX_TABLESPACE

''



INTERNAL_IPS

()



STATIC_URL

None



EMAIL_PORT

'25'



CONSUMER_KEY

'z8o36ZRk6KBJTsrPRiLA'



SHORT_DATETIME_FORMAT

'm/d/Y P'



TAGGING_AUTOCOMPLETE_JS_BASE_URL

'/media/js'



AWS_ACCESS_KEY

'AKIAJ5RENZ2C35363IHQ'



TINYMCE_DEFAULT_CONFIG

{'plugins': ‘bbcode’,
‘remove_linebreaks’: False,
‘theme’: ‘advanced’,
‘theme_advanced_buttons1’: ‘bold,italic,underline,strikethrough,blockquote,link,unlink,bullist,numlist,image,forecolor,fontsizeselect,code’,
‘theme_advanced_buttons2’: ‘',
’theme_advanced_buttons3': ‘',
’theme_advanced_buttons4': ‘',
’theme_advanced_disable': ‘',
’theme_advanced_toolbar_align': ‘left’,
‘theme_advanced_toolbar_location’: ‘top’}



ABSOLUTE_URL_OVERRIDES

{}



DATABASE_OPTIONS

{}



CACHE_MIDDLEWARE_SECONDS

600



BANNED_IPS

()



DATETIME_INPUT_FORMATS









('%Y-%m-%d %H:%M:%S',
‘%Y-%m-%d %H:%M’,
‘%Y-%m-%d’,
‘%m/%d/%Y %H:%M:%S’,
‘%m/%d/%Y %H:%M’,
‘%m/%d/%Y’,
‘%m/%d/%y %H:%M:%S’,
‘%m/%d/%y %H:%M’,
‘%m/%d/%y’)





DATABASE_PASSWORD

'********************'



COMMENTS_MODERATORS_GROUP

None



PROFANITIES_LIST

'********************'



EMAIL_HOST_USER

'support@drunkduck.com'



COMMENTS_BANNED_USERS_GROUP

None






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.


Scorpion451 at 1:43PM, July 17, 2011
(online)
posts: 51
joined: 11-19-2010
I'm getting a similar super-long error.
Mine comes up when I try to use my domain name to forward to my comic on firefox (using 5.0).
I am forwarding from www.greeningwars.com to http://www.drunkduck.com/The_Greening_Wars/
Works fine on IE, but when I use it on firefox, I get the following:
(I would also like to point out that the request URL does not match the forwarding URL, not sure if that's supposed to happen or not…)

Page not found (404)



Request Method:
GET


Request URL:
http://www.drunkduck.com/comics/T/The_Greening_Wars/







Using the URLconf defined in urls,
Django tried these URL patterns, in this order:




^$





^login/$





^logout/$





^ads/728x90/$





^ajax/side-panel/comics-list/$





^ajax/side-panel/favorites-list/$





^ajax/ten-list/(?P.*)/$





^errors/age/$





^errors/nopages/$





^privacy/$





^about/$





^terms/$





^etiquette/$





^copyright/$





^help/$





^admin/





^user/video/





^user/





^video/





^news/





^quack/





^quackcast/





^tutorial/





^forum/





^comics/


^create/$





^comics/


^check-title/$





^comics/


^add_page/(?P.*)/$





^comics/


^edit_page/(?P.*)/$





^comics/


^edit/(?P.*)/$





^comics/


^pages/(?P.*)/$





^comics/


^credits/(?P.*)/$





^comics/


^assistants/drop/(?P.*)/$





^comics/


^assistants/(?P.*)/$





^comics/


^links/(?P.*)/$





^comics/


^featured/$





^comics/


^add/recommend/(?P.*)/$





^comics/


^remove/recommend/(?P.*)/$





^comics/


^add/favorite/(?P.*)/$





^comics/


^remove/favorite/(?P.*)/$





^comics/


^email-alerts/(?P.*)/$





^comics/


^delete/(?P.*)/$





^search/





^comments/





^duckmarks/





^ratings/





^requests/





^analytics/





^imagelocker/





^layout/





^subpages/





^(?P+)/rss/$





^(?P+)/(?P
\d+)/$





^(?P+)/(?P+)/$





^(?P+)/$





^tinymce/





^media/(?P
.*)$




The current URL, comics/T/The_Greening_Wars/, didn't match any of these.




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 404 page.

Updates every Tuesday!

Visit my deviantArt page to see some of my artwork and what I'm up to when I'm playing the not-working-on-my-webcomic game

Forgot Password
©2011 WOWIO, Inc. All Rights Reserved