codeforamerica / councilmatic

A subscription service for city council legislative information, started in Philadelphia.
http://councilmatic.org
58 stars 22 forks source link

Creating an account generates an error #18

Closed boutell closed 12 years ago

boutell commented 12 years ago

My wife got a 404 earlier trying to create an account. I got the following error when I reached the end of the process:

NoReverseMatch at /register/

Reverse for 'registration_complete' with arguments '()' and keyword arguments '{}' not found.

Request Method: POST Request URL: http://www.councilmatic.org/register/ Django Version: 1.4 Exception Type: NoReverseMatch Exception Value:

Reverse for 'registration_complete' with arguments '()' and keyword arguments '{}' not found.

Exception Location: /home/dotcloud/env/lib/python2.6/site-packages/django/core/urlresolvers.py in _reverse_with_prefix, line 396 Python Executable: /home/dotcloud/git-8f33fb0/ Python Version: 2.6.5 Python Path:

['/home/dotcloud/current', '.', '', '/home/dotcloud/env/lib/python2.6/site-packages/pip-1.0.1-py2.6.egg', '/home/dotcloud/env/src/django-registration', '/home/dotcloud/env/src/beautifulsoup', '/home/dotcloud/env/src/django-recaptcha', '/home/dotcloud/env/lib/python2.6', '/home/dotcloud/env/lib/python2.6/plat-linux2', '/home/dotcloud/env/lib/python2.6/lib-tk', '/home/dotcloud/env/lib/python2.6/lib-old', '/home/dotcloud/env/lib/python2.6/lib-dynload', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib64/python2.6/lib-tk', '/home/dotcloud/env/lib/python2.6/site-packages', '/usr/local/lib/python2.6/dist-packages/virtualenv-1.6.1-py2.6.egg', '/usr/local/lib/python2.6/site-packages', '/usr/local/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/pymodules/python2.6', '/home/dotcloud/current/councilmatic']

Server time: Mon, 16 Jul 2012 20:58:37 -0500 Traceback Switch to copy-and-paste view

/home/dotcloud/env/lib/python2.6/site-packages/django/core/handlers/base.py in get_response

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

    ...
▶ Local vars
/home/dotcloud/env/src/django-registration/registration/views.py in register

                    return redirect(to, *args, **kwargs)

    ...
▶ Local vars
/home/dotcloud/env/lib/python2.6/site-packages/django/shortcuts/__init__.py in redirect

            return redirect_class(urlresolvers.reverse(to, args=args, kwargs=kwargs))

    ...
▶ Local vars
/home/dotcloud/env/lib/python2.6/site-packages/django/core/urlresolvers.py in reverse

        return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))

    ...
▶ Local vars
/home/dotcloud/env/lib/python2.6/site-packages/django/core/urlresolvers.py in _reverse_with_prefix

                    "arguments '%s' not found." % (lookup_view_s, args, kwargs))

    ...
▶ Local vars

Request information GET

No GET data POST Variable Value username

u'boutell'

password1

u'dogfish1024'

password2

u'dogfish1024'

recaptcha_response_field

u'Council rpirien'

recaptcha_challenge_field

u'03AHJ_VutOzYJypH-GeZvO8TaHFE_LVIO65l4dM2qFsMkuB895IwxGM3OzvzqGDSCyIg7n5Sq2py93FIk3sLRzO-rS1EjBRQArZBhiIIh1gkBKYcZpgmbjKrtnGGfh3ntWyh8PTW6UIN9WI2JOkKMHpI4eTuTcJ8c0wQ'

csrfmiddlewaretoken

u'dx83oIZK1fW5V43ygO1mLrzlb5mm8RYm'

email

u'tommybgoode@gmail.com'

FILES

No FILES data COOKIES Variable Value __utmz

'186975290.1342455195.1.1.utmcsr=technicallyphilly.com|utmccn=(referral)|utmcmd=referral|utmcct=/2012/07/16/councilmatic-18-months-in-the-making-use-this-web-app-to-track-city-council-legislation'

__unam

'ef29eea-13890916244-6be71a07-3'

csrftoken

'dx83oIZK1fW5V43ygO1mLrzlb5mm8RYm'

__utma

'186975290.454183550.1342455195.1342455195.1342490258.2'

__utmb

'186975290.3.10.1342490258'

__utmc

'186975290'

META Variable Value wsgi.multiprocess

True

HTTP_REFERER

'http://www.councilmatic.org/register/'

UWSGI_SCRIPT

'wsgi'

uwsgi.version

'0.9.6.5'

SCRIPT_NAME

u''

HTTP_X_FORWARDED_PORT

'80'

PATH_INFO

u'/register/'

SERVER_PROTOCOL

'HTTP/1.0'

QUERY_STRING

''

HTTP_X_REAL_IP

'::ffff:68.81.107.211'

CONTENT_LENGTH

'375'

HTTP_USER_AGENT

'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20100101 Firefox/13.0.1'

HTTP_CONNECTION

'close'

HTTP_COOKIE

'csrftoken=dx83oIZK1fW5V43ygO1mLrzlb5mm8RYm; utma=186975290.454183550.1342455195.1342455195.1342490258.2; utmc=186975290; utmz=186975290.1342455195.1.1.utmcsr=technicallyphilly.com|utmccn=(referral)|utmcmd=referral|utmcct=/2012/07/16/councilmatic-18-months-in-the-making-use-this-web-app-to-track-city-council-legislation; unam=ef29eea-13890916244-6be71a07-3; __utmb=186975290.3.10.1342490258'

SERVER_NAME

'councilmatic-default-www-0'

REMOTE_PORT

'57073'

HTTP_X_FORWARDED_PROTOCOL

'http'

wsgi.url_scheme

'http'

SERVER_PORT

'80'

DOCUMENT_ROOT

'/home/dotcloud/current'

HTTP_CONTENT_LENGTH

'375'

HTTP_X_FORWARDED_PROTO

'http'

wsgi.input

<open file 'wsgi_input', mode 'r' at 0xc7a300>

HTTP_HOST

'www.councilmatic.org'

wsgi.multithread

False

HTTP_CONTENT_TYPE

'application/x-www-form-urlencoded'

REQUEST_URI

'/register/'

HTTP_ACCEPT

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

wsgi.version

(1, 0)

HTTP_X_FORWARDED_FOR

'::ffff:68.81.107.211'

wsgi.errors

<open file 'wsgi_input', mode 'w' at 0xc7a390>

REMOTE_ADDR

'10.13.66.82'

HTTP_ACCEPT_LANGUAGE

'en-us,en;q=0.5'

wsgi.run_once

False

REQUEST_METHOD

'POST'

CONTENT_TYPE

'application/x-www-form-urlencoded'

wsgi.file_wrapper

''

CSRF_COOKIE

'dx83oIZK1fW5V43ygO1mLrzlb5mm8RYm'

HTTP_ACCEPT_ENCODING

'gzip, deflate'

Settings Using settings module councilmatic.settings Setting Value MONTH_DAY_FORMAT

'F j'

USE_L10N

False

USE_THOUSAND_SEPARATOR

False

CSRF_COOKIE_SECURE

False

LANGUAGE_CODE

'en-us'

ROOT_URLCONF

'urls'

MANAGERS

()

ACCOUNT_ACTIVATION_DAYS

7

STATIC_ROOT

'/home/dotcloud/current/councilmatic/../static'

DB_USER

u'root'

GOOGLE_ANALYTICS_ACCOUNT

'UA-17831608-6'

RECAPTCHA_PRIVATE_KEY

u'****'

EMAIL_SUBJECT_PREFIX

'[Django] '

SEND_BROKEN_LINK_EMAILS

False

URL_VALIDATOR_USER_AGENT

'Django/1.4 (https://www.djangoproject.com)'

STATICFILES_FINDERS

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

SESSION_COOKIE_DOMAIN

None

SESSION_COOKIE_NAME

'sessionid'

DB_NAME

'councilmatic'

ADMIN_FOR

()

TIME_INPUT_FORMATS

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

DATABASES

{'default': {'ENGINE': 'django.contrib.gis.db.backends.postgis', 'HOST': u'councilmatic-YGFXOXWC.dotcloud.com', 'NAME': 'councilmatic', 'OPTIONS': {}, 'PASSWORD': u'****', 'PORT': u'27330', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'America/Chicago', 'USER': u'root'}}

RECAPTCHA_PUBLIC_KEY

u'****'

FILE_UPLOAD_PERMISSIONS

None

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

[]

MY_REUSABLE_APPS

('model_blocks', 'mustachejs')

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

'/'

USE_X_FORWARDED_HOST

False

DB_PORT

u'27330'

MIDDLEWARE_CLASSES

('django.middleware.common.CommonMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.csrf.CsrfViewMiddleware')

COMMUNITY_APPS

('registration', 'captcha', 'south', 'haystack', 'uni_form', 'django_nose', 'debug_toolbar', 'social_auth', 'ebdata', 'compressor', 'djangorestframework')

THOUSAND_SEPARATOR

','

SECRET_KEY

u'****'

LANGUAGE_COOKIE_NAME

'django_language'

FILE_UPLOAD_TEMP_DIR

None

TRANSACTIONS_MANAGED

False

LOGGING_CONFIG

'django.utils.log.dictConfig'

SIGNING_BACKEND

'django.core.signing.TimestampSigner'

TEMPLATE_LOADERS

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

WSGI_APPLICATION

None

TEMPLATE_DEBUG

True

X_FRAME_OPTIONS

'SAMEORIGIN'

AUTHENTICATION_BACKENDS

('social_auth.backends.twitter.TwitterBackend', 'social_auth.backends.facebook.FacebookBackend', 'social_auth.backends.google.GoogleBackend', 'social_auth.backends.contrib.linkedin.LinkedinBackend', 'social_auth.backends.OpenIDBackend', 'django.contrib.auth.backends.ModelBackend')

HAYSTACK_CONNECTIONS

{'default': {'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', 'PATH': '/home/dotcloud/whoosh_index'}}

FORCE_SCRIPT_NAME

None

CACHE_BACKEND

'locmem://'

DEFAULT_CHARSET

'utf-8'

SESSION_COOKIE_SECURE

False

CSRF_COOKIE_DOMAIN

None

FILE_CHARSET

'utf-8'

DEBUG

True

SESSION_FILE_PATH

None

DEFAULT_FILE_STORAGE

'django.core.files.storage.FileSystemStorage'

INSTALLED_APPS

('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.comments', 'django.contrib.gis', 'registration', 'captcha', 'south', 'haystack', 'uni_form', 'django_nose', 'debug_toolbar', 'social_auth', 'ebdata', 'compressor', 'djangorestframework', 'model_blocks', 'mustachejs', 'cm', 'cm_api', 'phillyleg', 'subscriptions', 'bookmarks', 'activity_log', 'opinions', 'main', 'utils')

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'), ('eo', 'Esperanto'), ('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'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('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'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))

COMMENTS_ALLOW_PROFANITIES

False

PROJECT_APPS

('cm', 'cm_api', 'phillyleg', 'subscriptions', 'bookmarks', 'activity_log', 'opinions', 'main', 'utils')

PREPEND_WWW

False

SECURE_PROXY_SSL_HEADER

None

SESSION_COOKIE_HTTPONLY

True

FACEBOOK_APP_ID

'177047239036217'

DEBUG_PROPAGATE_EXCEPTIONS

False

LINKEDIN_CONSUMER_KEY

u'****'

LOGIN_URL

'/login/'

SESSION_EXPIRE_AT_BROWSER_CLOSE

False

SOUTH_TESTS_MIGRATE

False

LINKEDIN_CONSUMER_SECRET

u'****'

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

LOGIN_ERROR_URL

'/login/error'

CSRF_COOKIE_NAME

'csrftoken'

EMAIL_HOST_PASSWORD

u'****'

PASSWORD_RESET_TIMEOUT_DAYS

u'****'

TWITTER_CONSUMER_KEY

u'****'

CACHE_MIDDLEWARE_ALIAS

'default'

SESSION_SAVE_EVERY_REQUEST

False

NUMBER_GROUPING

0

TWITTER_CONSUMER_SECRET

u'****'

SESSION_ENGINE

'django.contrib.sessions.backends.db'

CSRF_FAILURE_VIEW

'django.views.csrf.csrf_failure'

CSRF_COOKIE_PATH

'/'

GOOGLE_CONSUMER_SECRET

u'****'

LOGIN_REDIRECT_URL

'/'

LOGFILE_PATH

'/home/dotcloud/logs/councilmatic.log'

LOGGING

{'disable_existing_loggers': True, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'formatters': {'simple': {'format': '%(levelname)s %(message)s'}, 'verbose': {'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'verbose', 'level': 'INFO'}, 'logfile': {'class': 'logging.handlers.RotatingFileHandler', 'filename': '/home/dotcloud/logs/councilmatic.log', 'formatter': 'verbose', 'level': 'DEBUG'}, 'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'include_html': True, 'level': 'ERROR'}, 'null': {'class': 'django.utils.log.NullHandler', 'level': 'DEBUG'}}, 'loggers': {'councilmatic': {'handlers': ['console', 'logfile', 'mail_admins'], 'level': 'DEBUG'}, 'django': {'handlers': ['null'], 'level': 'INFO', 'propagate': True}, 'django.request': {'handlers': ['logfile', 'mail_admins'], 'level': 'WARNING', 'propagate': False}, 'phillyleg.management': {'handlers': ['console', 'logfile', 'mail_admins'], 'level': 'DEBUG'}}, 'version': 1}

COMPRESS_PRECOMPILERS

(('text/coffeescript', 'coffee --compile --stdio'), ('text/less', 'lessc {infile} {outfile}'), ('text/x-sass', 'sass {infile} {outfile}'), ('text/x-scss', 'sass --scss {infile} {outfile}'))

IGNORABLE_404_URLS

()

DB_PASSWORD

u'****'

LOCALE_PATHS

()

TEMPLATE_STRING_IF_INVALID

''

MESSAGE_STORAGE

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

GOOGLE_CONSUMER_KEY

u'****'

LOGOUT_URL

'/accounts/logout/'

EMAIL_USE_TLS

False

FIXTURE_DIRS

()

EMAIL_HOST

'localhost'

DATE_FORMAT

'N j, Y'

FACEBOOK_API_SECRET

u'****'

MEDIA_ROOT

''

DEFAULT_EXCEPTION_REPORTER_FILTER

'django.views.debug.SafeExceptionReporterFilter'

ADMINS

()

FORMAT_MODULE_PATH

None

DEFAULT_FROM_EMAIL

'webmaster@localhost'

STATICFILES_DIRS

('/home/dotcloud/current/councilmatic/static',)

MEDIA_URL

''

DATETIME_FORMAT

'N j, Y, P'

TEMPLATE_DIRS

('/home/dotcloud/current/councilmatic/phillyleg', '/home/dotcloud/current/councilmatic/templates')

DB_ENGINE

'postgis'

SITE_ID

1

DISALLOWED_USER_AGENTS

()

ALLOWED_INCLUDE_ROOTS

()

USE_I18N

True

WHOOSH_PATH

'/home/dotcloud/whoosh_index'

DECIMAL_SEPARATOR

'.'

SHORT_DATE_FORMAT

'm/d/Y'

TEST_RUNNER

'django_nose.NoseTestSuiteRunner'

CACHE_MIDDLEWARE_KEY_PREFIX

u'****'

TIME_ZONE

'America/Chicago'

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.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.request', 'utils.context_processors.settings.GOOGLE_ANALYTICS_ACCOUNT')

SESSION_COOKIE_AGE

1209600

SETTINGS_MODULE

'councilmatic.settings'

USE_ETAGS

False

LANGUAGES_BIDI

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

DEFAULT_INDEX_TABLESPACE

''

INTERNAL_IPS

('127.0.0.1',)

STATIC_URL

'/static/'

EMAIL_PORT

25

USE_TZ

False

SHORT_DATETIME_FORMAT

'm/d/Y P'

PASSWORD_HASHERS

u'****'

HAYSTACK_ITERATOR_LOAD_PER_QUERY

800

ABSOLUTE_URL_OVERRIDES

{}

CACHE_MIDDLEWARE_SECONDS

600

DEBUG_TOOLBAR_CONFIG

{'INTERCEPT_REDIRECTS': False}

DB_HOST

u'councilmatic-YGFXOXWC.dotcloud.com'

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

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.

mjumbewu commented 12 years ago

Thanks again! Wish more people would file bugs when things go wrong; this would have been taken care of earlier.

boutell commented 12 years ago

I hear you, but I should point out that when my wife first found the issue, she had little chance of finding this github page, and when I pointed it out to her, she couldn't figure out how to open an issue, etc. The "about" page has a lot of links and people - it's very diffuse and it's not clear what one should do.

I think the site would benefit greatly from an easy to find "Contact Us" button leading to a simple form to send an email to someone who's currently actively involved with the project. Maybe that's just a volunteer who opens github issues, or maybe it just goes to you... whatever works!