Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TypeError at /
- argument of type 'type' is not iterable
- Request Method: GET
- Request URL: http://sda.sorrowind.net/tracker/
- Django Version: 1.4.3
- Exception Type: TypeError
- Exception Value:
- argument of type 'type' is not iterable
- Exception Location: /usr/local/lib/python2.7/dist-packages/django/template/context.py in get, line 71
- Python Executable: /usr/bin/python
- Python Version: 2.7.3
- Python Path:
- ['/usr/local/lib/python2.7/dist-packages/pytz-2012h-py2.7.egg',
- '/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',
- '/usr/lib/python2.7/dist-packages',
- '/home/tracker/donations',
- '/home/magneticleft/virtualenv/lib/python2.7/site-packages']
- Server time: Mon, 31 Dec 2012 10:28:11 -0600
- Error during template rendering
- In template /home/tracker/donations/tracker/templates/tracker/username.html, error at line 26
- argument of type 'type' is not iterable
- 16 <span class="error">{{ usernameform.username.errors|join:", " }}</span>
- 17 {% endif %}
- 18 {% if usernameform.next.errors %}
- 19 <span class="error">{{ usernameform.next.errors|join:", " }}</span>
- 20 {% endif %}
- 21 </p>
- 22 {% endif %}
- 23 <p><br /></p>
- 24 <div class="footer">
- 25 <form name="fopenid" action="{% url 'tracker.views.setusername' %}" method="post" width="20%">
- 26 {% csrf_token %}
- 27 <fieldset>
- 28 <label for="id_username">{% trans "Username" %}:</label>
- 29 {{ usernameform.username }}
- 30 <input name="bsignin" type="submit" value="{% trans 'Submit' %}" />
- 31 {% if next %}
- 32 <input type="hidden" name="next" value="{{ next }}" />
- 33 {% endif %}
- 34 </fieldset>
- 35 </form>
- 36 </div>
- Traceback Switch to copy-and-paste view
- /usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response
- response = callback(request, *callback_args, **callback_kwargs)
- ...
- ▶ Local vars
- /home/tracker/donations/tracker/views.py in index
- return tracker_response(request, 'tracker/index.html', { 'agg' : agg, 'count' : count, 'event': event })
- ...
- ▶ Local vars
- /home/tracker/donations/tracker/views.py in tracker_response
- return render(request, 'tracker/username.html', dictionary=dict)
- ...
- ▶ Local vars
- /usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py in render
- return HttpResponse(loader.render_to_string(*args, **kwargs),
- ...
- ▶ Local vars
- /usr/local/lib/python2.7/dist-packages/django/template/loader.py in render_to_string
- return t.render(context_instance)
- ...
- ▶ 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
- 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
- csrf_token = context.get('csrf_token', None)
- ...
- ▶ Local vars
- /usr/local/lib/python2.7/dist-packages/django/template/context.py in get
- if key in d:
- ...
- ▶ Local vars
- Request information
- GET
- No GET data
- POST
- No POST data
- FILES
- No FILES data
- COOKIES
- Variable Value
- csrftoken
- 'qyUjWLHLA5Z8WQnCRyoF3HGfDViMQ7rJ'
- sessionid
- '65f535fe3cafd0510cbe3efadbbf23a1'
- META
- Variable Value
- mod_wsgi.listener_port
- '80'
- HTTP_COOKIE
- 'csrftoken=qyUjWLHLA5Z8WQnCRyoF3HGfDViMQ7rJ; sessionid=65f535fe3cafd0510cbe3efadbbf23a1'
- mod_wsgi.listener_host
- ''
- SERVER_SOFTWARE
- 'Apache/2.2.22 (Ubuntu)'
- SCRIPT_NAME
- u'/tracker'
- mod_wsgi.handler_script
- ''
- SERVER_SIGNATURE
- '<address>Apache/2.2.22 (Ubuntu) Server at sda.sorrowind.net Port 80</address>\n'
- REQUEST_METHOD
- 'GET'
- PATH_INFO
- u'/'
- SERVER_PROTOCOL
- 'HTTP/1.1'
- QUERY_STRING
- ''
- HTTP_USER_AGENT
- 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0'
- HTTP_CONNECTION
- 'keep-alive'
- HTTP_REFERER
- 'http://forum.speeddemosarchive.com/post/marathon_donation_app__call_for_testers_48.html'
- SERVER_NAME
- 'sda.sorrowind.net'
- REMOTE_ADDR
- '173.27.217.2'
- mod_wsgi.request_handler
- 'wsgi-script'
- wsgi.url_scheme
- 'http'
- mod_wsgi.callable_object
- 'application'
- SERVER_PORT
- '80'
- wsgi.multiprocess
- True
- mod_wsgi.input_chunked
- '0'
- SERVER_ADDR
- '208.82.98.159'
- DOCUMENT_ROOT
- '/var/www'
- mod_wsgi.process_group
- 'sda.sorrowind.net'
- SCRIPT_FILENAME
- '/home/tracker/donations/wsgi.py'
- SERVER_ADMIN
- 'webmaster@localhost'
- wsgi.input
- <mod_wsgi.Input object at 0x7f60b53e1db0>
- HTTP_HOST
- 'sda.sorrowind.net'
- wsgi.multithread
- True
- REQUEST_URI
- '/tracker'
- 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
- <mod_wsgi.Log object at 0x7f60b53e1e70>
- REMOTE_PORT
- '52080'
- HTTP_ACCEPT_LANGUAGE
- 'en-US,en;q=0.5'
- mod_wsgi.version
- (3, 3)
- mod_wsgi.application_group
- 'sda.sorrowind.net|/tracker'
- mod_wsgi.script_reloading
- '1'
- wsgi.file_wrapper
- 'Invalid Variable: %s'
- CSRF_COOKIE
- 'qyUjWLHLA5Z8WQnCRyoF3HGfDViMQ7rJ'
- HTTP_ACCEPT_ENCODING
- 'gzip, deflate'
- Settings
- Using settings module settings
- Setting Value
- USE_L10N
- True
- USE_THOUSAND_SEPARATOR
- False
- CSRF_COOKIE_SECURE
- False
- LANGUAGE_CODE
- 'en-us'
- ROOT_URLCONF
- 'urls'
- MANAGERS
- ()
- DEFAULT_CHARSET
- 'utf-8'
- STATIC_ROOT
- '/var/www/static/'
- MESSAGE_STORAGE
- 'django.contrib.messages.storage.fallback.FallbackStorage'
- EMAIL_SUBJECT_PREFIX
- '[Django] '
- SEND_BROKEN_LINK_EMAILS
- False
- URL_VALIDATOR_USER_AGENT
- 'Django/1.4.3 (https://www.djangoproject.com)'
- STATICFILES_FINDERS
- ('django.contrib.staticfiles.finders.FileSystemFinder',
- 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
- GDOC_PASSWORD
- u'********************'
- SESSION_COOKIE_DOMAIN
- None
- SESSION_COOKIE_NAME
- 'sessionid'
- ADMIN_FOR
- ()
- TIME_INPUT_FORMATS
- ('%H:%M:%S', '%H:%M')
- DATABASES
- {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2',
- 'HOST': 'localhost',
- 'NAME': 'donations',
- 'OPTIONS': {},
- 'PASSWORD': u'********************',
- 'PORT': '5432',
- 'TEST_CHARSET': None,
- 'TEST_COLLATION': None,
- 'TEST_MIRROR': None,
- 'TEST_NAME': None,
- 'TIME_ZONE': 'UTC',
- 'USER': 'sda'}}
- 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
- []
- 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
- '/'
- OPENID_STRICT_USERNAMES
- False
- USE_X_FORWARDED_HOST
- False
- 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')
- USE_I18N
- True
- THOUSAND_SEPARATOR
- ','
- SECRET_KEY
- u'********************'
- LANGUAGE_COOKIE_NAME
- 'django_language'
- DEFAULT_INDEX_TABLESPACE
- ''
- TRANSACTIONS_MANAGED
- False
- LOGGING_CONFIG
- 'django.utils.log.dictConfig'
- TEMPLATE_LOADERS
- ('django.template.loaders.filesystem.Loader',
- 'django.template.loaders.app_directories.Loader')
- WSGI_APPLICATION
- 'wsgi.application'
- TEMPLATE_DEBUG
- True
- X_FRAME_OPTIONS
- 'SAMEORIGIN'
- AUTHENTICATION_BACKENDS
- ('django_openid_auth.auth.OpenIDBackend',
- 'django.contrib.auth.backends.ModelBackend')
- FORCE_SCRIPT_NAME
- None
- CACHE_BACKEND
- 'locmem://'
- SIGNING_BACKEND
- 'django.core.signing.TimestampSigner'
- 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.messages',
- 'django.contrib.staticfiles',
- 'tracker',
- 'django_openid_auth',
- 'django.contrib.admin')
- LANGUAGES
- (('de', 'German'),
- ('en', 'English'),
- ('ja', 'Japanese'),
- ('nl', 'Dutch'),
- ('pl', 'Polish'))
- COMMENTS_ALLOW_PROFANITIES
- False
- STATICFILES_DIRS
- ()
- PREPEND_WWW
- False
- SECURE_PROXY_SSL_HEADER
- None
- AUTH_PROFILE_MODULE
- 'tracker.UserProfile'
- SESSION_COOKIE_HTTPONLY
- True
- DEBUG_PROPAGATE_EXCEPTIONS
- False
- OPENID_UPDATE_DETAILS_FROM_SREG
- True
- OPENID_SSO_SERVER_URL
- 'https://www.google.com/accounts/o8/id'
- MONTH_DAY_FORMAT
- 'F j'
- LOGIN_URL
- '/openid/login/'
- SESSION_EXPIRE_AT_BROWSER_CLOSE
- False
- 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')
- CSRF_COOKIE_NAME
- 'csrftoken'
- EMAIL_HOST_PASSWORD
- u'********************'
- 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
- '/'
- LOGIN_REDIRECT_URL
- '/tracker/'
- LOGGING
- {'disable_existing_loggers': False,
- 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}},
- 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler',
- 'filters': ['require_debug_false'],
- 'level': 'ERROR'}},
- 'loggers': {'django.request': {'handlers': ['mail_admins'],
- 'level': 'ERROR',
- 'propagate': True}},
- 'version': 1}
- IGNORABLE_404_URLS
- ()
- LOCALE_PATHS
- ()
- TEMPLATE_STRING_IF_INVALID
- 'Invalid Variable: %s'
- LOGOUT_URL
- '/accounts/logout/'
- EMAIL_USE_TLS
- False
- FIXTURE_DIRS
- ()
- EMAIL_HOST
- 'localhost'
- DATE_FORMAT
- 'N j, Y'
- GDOC_USERNAME
- MEDIA_ROOT
- ''
- DEFAULT_EXCEPTION_REPORTER_FILTER
- 'django.views.debug.SafeExceptionReporterFilter'
- ADMINS
- ()
- FORMAT_MODULE_PATH
- None
- DEFAULT_FROM_EMAIL
- 'webmaster@localhost'
- MEDIA_URL
- ''
- DATETIME_FORMAT
- 'N j, Y, P'
- TEMPLATE_DIRS
- ()
- CHIPIN_LOGIN
- SITE_ID
- 1
- DISALLOWED_USER_AGENTS
- ()
- ALLOWED_INCLUDE_ROOTS
- ()
- DECIMAL_SEPARATOR
- '.'
- SHORT_DATE_FORMAT
- 'm/d/Y'
- TEST_RUNNER
- 'django.test.simple.DjangoTestSuiteRunner'
- CACHE_MIDDLEWARE_KEY_PREFIX
- u'********************'
- OPENID_CREATE_USERS
- True
- 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.core.context_processors.request',
- 'django.contrib.messages.context_processors.messages')
- SESSION_COOKIE_AGE
- 1209600
- SETTINGS_MODULE
- 'settings'
- USE_ETAGS
- False
- LANGUAGES_BIDI
- ('he', 'ar', 'fa')
- FILE_UPLOAD_TEMP_DIR
- None
- INTERNAL_IPS
- ()
- STATIC_URL
- '/static/'
- EMAIL_PORT
- 25
- USE_TZ
- True
- SHORT_DATETIME_FORMAT
- 'm/d/Y P'
- CHIPIN_PASSWORD
- u'********************'
- PASSWORD_HASHERS
- u'********************'
- ABSOLUTE_URL_OVERRIDES
- {}
- CACHE_MIDDLEWARE_SECONDS
- 600
- 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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement