Skip to content

Instantly share code, notes, and snippets.

@readevalprint
Created May 11, 2013 05:05
Show Gist options
  • Select an option

  • Save readevalprint/5558966 to your computer and use it in GitHub Desktop.

Select an option

Save readevalprint/5558966 to your computer and use it in GitHub Desktop.
Environment:
Request Method: POST
Request URL: http://www.thefingo.com/payment/success
Django Version: 1.4.1
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'django.contrib.admin',
'django.contrib.admindocs',
'south',
'haystack',
'fingowebapp',
'raven.contrib.django.raven_compat',
'mathfilters',
'pipeline',
'longerusername',
'paypal.standard.ipn')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/var/www/html/thefingo/fingo_env/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
89. response = middleware_method(request)
File "/var/www/html/thefingo/fingo_env/lib/python2.7/site-packages/django/middleware/common.py" in process_request
77. "settings.") % (new_url[0], new_url[1]))
Exception Type: RuntimeError at /payment/success
Exception Value: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to www.thefingo.com/payment/success/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment