1 | TypeError at http://student.femheimur.com/
|
---|
2 | 'NoneType' object is not iterable
|
---|
3 | Request Method: GET
|
---|
4 | Request URL: http://student.femheimur.comhttp://student.femheimur.com/
|
---|
5 | Exception Type: TypeError
|
---|
6 | Exception Value: 'NoneType' object is not iterable
|
---|
7 | Exception Location: /home/olafurac/django/django/core/handlers/base.py in get_response, line 73
|
---|
8 | Python Executable: /home/olafurac/python/bin/python
|
---|
9 | Python Version: 2.5.2
|
---|
10 | Python Path: ['/home/olafurac/public_html/student/cgi-bin', '/home/olafurac/python/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg', '/home/olafurac/python/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-linux-x86_64.egg', '/home/olafurac/python/lib/python2.5/site-packages/flup-0.5-py2.5.egg', '/home/olafurac/python/lib/python25.zip', '/home/olafurac/python/lib/python2.5', '/home/olafurac/python/lib/python2.5/plat-linux2', '/home/olafurac/python/lib/python2.5/lib-tk', '/home/olafurac/python/lib/python2.5/lib-dynload', '/home/olafurac/python/lib/python2.5/site-packages', '/home/olafurac/python/lib/python2.5/site-packages/PIL', '/home/olafurac/python', '/home/olafurac/django', '/home/olafurac/django_projects', '/home/olafurac/django_projects']
|
---|
11 | Traceback Switch to copy-and-paste view
|
---|
12 |
|
---|
13 | * /home/olafurac/django/django/core/handlers/base.py in get_response
|
---|
14 | 66. return response
|
---|
15 | 67. # Get urlconf from request object, if available. Otherwise use default.
|
---|
16 | 68. urlconf = getattr(request, "urlconf", settings.ROOT_URLCONF)
|
---|
17 | 69. resolver = urlresolvers.RegexURLResolver(r'^/', urlconf)
|
---|
18 | 70. try:
|
---|
19 | 73. callback, callback_args, callback_kwargs = resolver.resolve(request.path) ...
|
---|
20 | 74. # Apply view middleware
|
---|
21 | 75. for middleware_method in self._view_middleware:
|
---|
22 | 76. response = middleware_method(request, callback, callback_args, callback_kwargs)
|
---|
23 | 77. if response:
|
---|
24 | 78. return response
|
---|
25 | ▶ Local vars
|
---|
26 | Variable Value
|
---|
27 | debug
|
---|
28 | <module 'django.views.debug' from '/home/olafurac/django/django/views/debug.pyc'>
|
---|
29 | exc_info
|
---|
30 | (<type 'exceptions.TypeError'>, TypeError("'NoneType' object is not iterable",), <traceback object at 0x2b27e0a122d8>)
|
---|
31 | exceptions
|
---|
32 | <module 'django.core.exceptions' from '/home/olafurac/django/django/core/exceptions.pyc'>
|
---|
33 | mail_admins
|
---|
34 | <function mail_admins at 0x2b27dfd10a28>
|
---|
35 | middleware_method
|
---|
36 | <bound method AuthenticationMiddleware.process_request of <django.contrib.auth.middleware.AuthenticationMiddleware object at 0x2b27dfd19ad0>>
|
---|
37 | receivers
|
---|
38 | [(<function _rollback_on_exception at 0x2b27e01e3a28>, None)]
|
---|
39 | request
|
---|
40 | <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '11989027.929012120.1201548646.1203597362.1203726539.30', '__utmz': '11989027.1202231950.5.2.utmccn=(referral)|utmcsr=alheimur.femheimur.com|utmcct=/|utmcmd=referral'}, META:{'DJANGO_SETTINGS_MODULE': 'myproject.settings', 'DOCUMENT_ROOT': '/home/olafurac/public_html/student', 'GATEWAY_INTERFACE': 'CGI/1.1', '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_COOKIE': '__utmz=11989027.1202231950.5.2.utmccn=(referral)|utmcsr=alheimur.femheimur.com|utmcct=/|utmcmd=referral; __utma=11989027.929012120.1201548646.1203597362.1203726539.30', 'HTTP_HOST': 'student.femheimur.com', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b3) Gecko/2008021416 Firefox/3.0b3', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'QUERY_STRING': '', 'REMOTE_ADDR': '130.208.188.58', 'REMOTE_PORT': '49206', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/cgi-bin/dj', 'SCRIPT_FILENAME': '/home/olafurac/public_html/student/cgi-bin/dj', 'SCRIPT_NAME': '/cgi-bin/dj', 'SERVER_ADDR': '74.220.202.17', 'SERVER_ADMIN': 'webmaster@student.femheimur.com', 'SERVER_NAME': 'student.femheimur.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at student.femheimur.com Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x2b27de878210>, 'wsgi.input': <open file '<stdin>', mode 'r' at 0x2b27de878120>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': True, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
|
---|
41 | resolver
|
---|
42 | <RegexURLResolver myproject.urls ^/>
|
---|
43 | response
|
---|
44 | None
|
---|
45 | self
|
---|
46 | <django.core.handlers.wsgi.WSGIHandler object at 0x2b27df26b3d0>
|
---|
47 | settings
|
---|
48 | <django.conf.LazySettings object at 0x2b27df89ecd0>
|
---|
49 | urlconf
|
---|
50 | 'myproject.urls'
|
---|
51 | urlresolvers
|
---|
52 | <module 'django.core.urlresolvers' from '/home/olafurac/django/django/core/urlresolvers.pyc'>
|
---|
53 |
|
---|
54 | Environment: Request Method: GET Request URL: http://student.femheimur.comhttp://student.femheimur.com/ Django Version: 0.97-pre-SVN-7176 Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware') Traceback: File "/home/olafurac/django/django/core/handlers/base.py" in get_response 73. callback, callback_args, callback_kwargs = resolver.resolve(request.path) Exception Type: TypeError at http://student.femheimur.com/ Exception Value: 'NoneType' object is not iterable
|
---|
55 |
|
---|
56 | Request information
|
---|
57 | GET
|
---|
58 |
|
---|
59 | No GET data
|
---|
60 | POST
|
---|
61 |
|
---|
62 | No POST data
|
---|
63 | COOKIES
|
---|
64 | Variable Value
|
---|
65 | __utma
|
---|
66 | '11989027.929012120.1201548646.1203597362.1203726539.30'
|
---|
67 | __utmz
|
---|
68 | '11989027.1202231950.5.2.utmccn=(referral)|utmcsr=alheimur.femheimur.com|utmcct=/|utmcmd=referral'
|
---|
69 | META
|
---|
70 | Variable Value
|
---|
71 | DJANGO_SETTINGS_MODULE
|
---|
72 | 'myproject.settings'
|
---|
73 | DOCUMENT_ROOT
|
---|
74 | '/home/olafurac/public_html/student'
|
---|
75 | GATEWAY_INTERFACE
|
---|
76 | 'CGI/1.1'
|
---|
77 | HTTP_ACCEPT
|
---|
78 | 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
|
---|
79 | HTTP_ACCEPT_CHARSET
|
---|
80 | 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
|
---|
81 | HTTP_ACCEPT_ENCODING
|
---|
82 | 'gzip,deflate'
|
---|
83 | HTTP_ACCEPT_LANGUAGE
|
---|
84 | 'en-us,en;q=0.5'
|
---|
85 | HTTP_CONNECTION
|
---|
86 | 'keep-alive'
|
---|
87 | HTTP_COOKIE
|
---|
88 | '__utmz=11989027.1202231950.5.2.utmccn=(referral)|utmcsr=alheimur.femheimur.com|utmcct=/|utmcmd=referral; __utma=11989027.929012120.1201548646.1203597362.1203726539.30'
|
---|
89 | HTTP_HOST
|
---|
90 | 'student.femheimur.com'
|
---|
91 | HTTP_KEEP_ALIVE
|
---|
92 | '300'
|
---|
93 | HTTP_USER_AGENT
|
---|
94 | 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b3) Gecko/2008021416 Firefox/3.0b3'
|
---|
95 | PATH
|
---|
96 | '/usr/local/bin:/usr/bin:/bin'
|
---|
97 | QUERY_STRING
|
---|
98 | ''
|
---|
99 | REMOTE_ADDR
|
---|
100 | '130.208.188.58'
|
---|
101 | REMOTE_PORT
|
---|
102 | '49206'
|
---|
103 | REQUEST_METHOD
|
---|
104 | 'GET'
|
---|
105 | REQUEST_URI
|
---|
106 | '/cgi-bin/dj'
|
---|
107 | SCRIPT_FILENAME
|
---|
108 | '/home/olafurac/public_html/student/cgi-bin/dj'
|
---|
109 | SCRIPT_NAME
|
---|
110 | '/cgi-bin/dj'
|
---|
111 | SERVER_ADDR
|
---|
112 | '74.220.202.17'
|
---|
113 | SERVER_ADMIN
|
---|
114 | 'webmaster@student.femheimur.com'
|
---|
115 | SERVER_NAME
|
---|
116 | 'student.femheimur.com'
|
---|
117 | SERVER_PORT
|
---|
118 | '80'
|
---|
119 | SERVER_PROTOCOL
|
---|
120 | 'HTTP/1.1'
|
---|
121 | SERVER_SIGNATURE
|
---|
122 | '<address>Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at student.femheimur.com Port 80</address>\n'
|
---|
123 | SERVER_SOFTWARE
|
---|
124 | 'Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635'
|
---|
125 | wsgi.errors
|
---|
126 | <open file '<stderr>', mode 'w' at 0x2b27de878210>
|
---|
127 | wsgi.input
|
---|
128 | <open file '<stdin>', mode 'r' at 0x2b27de878120>
|
---|
129 | wsgi.multiprocess
|
---|
130 | True
|
---|
131 | wsgi.multithread
|
---|
132 | False
|
---|
133 | wsgi.run_once
|
---|
134 | True
|
---|
135 | wsgi.url_scheme
|
---|
136 | 'http'
|
---|
137 | wsgi.version
|
---|
138 | (1, 0)
|
---|
139 | Settings
|
---|
140 | Using settings module myproject.settings
|
---|
141 | Setting Value
|
---|
142 | ABSOLUTE_URL_OVERRIDES
|
---|
143 | {}
|
---|
144 | ADMINS
|
---|
145 | ()
|
---|
146 | ADMIN_FOR
|
---|
147 | ()
|
---|
148 | ADMIN_MEDIA_PREFIX
|
---|
149 | '/media/'
|
---|
150 | ALLOWED_INCLUDE_ROOTS
|
---|
151 | ()
|
---|
152 | APPEND_SLASH
|
---|
153 | True
|
---|
154 | AUTHENTICATION_BACKENDS
|
---|
155 | ('django.contrib.auth.backends.ModelBackend',)
|
---|
156 | BANNED_IPS
|
---|
157 | ()
|
---|
158 | CACHE_BACKEND
|
---|
159 | 'locmem://'
|
---|
160 | CACHE_MIDDLEWARE_KEY_PREFIX
|
---|
161 | ''
|
---|
162 | CACHE_MIDDLEWARE_SECONDS
|
---|
163 | 600
|
---|
164 | COMMENTS_ALLOW_PROFANITIES
|
---|
165 | False
|
---|
166 | COMMENTS_BANNED_USERS_GROUP
|
---|
167 | None
|
---|
168 | COMMENTS_FIRST_FEW
|
---|
169 | 0
|
---|
170 | COMMENTS_MODERATORS_GROUP
|
---|
171 | None
|
---|
172 | COMMENTS_SKETCHY_USERS_GROUP
|
---|
173 | None
|
---|
174 | DATABASE_ENGINE
|
---|
175 | 'mysql'
|
---|
176 | DATABASE_HOST
|
---|
177 | ''
|
---|
178 | DATABASE_NAME
|
---|
179 | 'olafurac_movable'
|
---|
180 | DATABASE_OPTIONS
|
---|
181 | {}
|
---|
182 | DATABASE_PASSWORD
|
---|
183 | '********************'
|
---|
184 | DATABASE_PORT
|
---|
185 | ''
|
---|
186 | DATABASE_USER
|
---|
187 | 'olafurac_movable'
|
---|
188 | DATETIME_FORMAT
|
---|
189 | 'N j, Y, P'
|
---|
190 | DATE_FORMAT
|
---|
191 | 'N j, Y'
|
---|
192 | DEBUG
|
---|
193 | True
|
---|
194 | DEFAULT_CHARSET
|
---|
195 | 'utf-8'
|
---|
196 | DEFAULT_CONTENT_TYPE
|
---|
197 | 'text/html'
|
---|
198 | DEFAULT_FROM_EMAIL
|
---|
199 | 'webmaster@localhost'
|
---|
200 | DEFAULT_INDEX_TABLESPACE
|
---|
201 | ''
|
---|
202 | DEFAULT_TABLESPACE
|
---|
203 | ''
|
---|
204 | DISALLOWED_USER_AGENTS
|
---|
205 | ()
|
---|
206 | EMAIL_HOST
|
---|
207 | 'localhost'
|
---|
208 | EMAIL_HOST_PASSWORD
|
---|
209 | '********************'
|
---|
210 | EMAIL_HOST_USER
|
---|
211 | ''
|
---|
212 | EMAIL_PORT
|
---|
213 | 25
|
---|
214 | EMAIL_SUBJECT_PREFIX
|
---|
215 | '[Django] '
|
---|
216 | EMAIL_USE_TLS
|
---|
217 | False
|
---|
218 | FILE_CHARSET
|
---|
219 | 'utf-8'
|
---|
220 | FIXTURE_DIRS
|
---|
221 | ()
|
---|
222 | IGNORABLE_404_ENDS
|
---|
223 | ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
|
---|
224 | IGNORABLE_404_STARTS
|
---|
225 | ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
|
---|
226 | INSTALLED_APPS
|
---|
227 | ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites']
|
---|
228 | INTERNAL_IPS
|
---|
229 | ()
|
---|
230 | JING_PATH
|
---|
231 | '/usr/bin/jing'
|
---|
232 | LANGUAGES
|
---|
233 | (('ar', 'Arabic'), ('bn', 'Bengali'), ('bg', 'Bulgarian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('es-ar', 'Argentinean Spanish'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('ga', 'Irish'), ('gl', 'Galician'), ('hu', 'Hungarian'), ('he', 'Hebrew'), ('hr', 'Croatian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('ko', 'Korean'), ('km', 'Khmer'), ('kn', 'Kannada'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('pl', 'Polish'), ('pt', 'Portugese'), ('pt-br', 'Brazilian'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sr', 'Serbian'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))
|
---|
234 | LANGUAGES_BIDI
|
---|
235 | ('he', 'ar', 'fa')
|
---|
236 | LANGUAGE_CODE
|
---|
237 | 'en-us'
|
---|
238 | LOCALE_PATHS
|
---|
239 | ()
|
---|
240 | LOGIN_REDIRECT_URL
|
---|
241 | '/accounts/profile/'
|
---|
242 | LOGIN_URL
|
---|
243 | '/accounts/login/'
|
---|
244 | LOGOUT_URL
|
---|
245 | '/accounts/logout/'
|
---|
246 | LOG_FILE
|
---|
247 | '/home/olafurac/log.log'
|
---|
248 | MANAGERS
|
---|
249 | ()
|
---|
250 | MEDIA_ROOT
|
---|
251 | ''
|
---|
252 | MEDIA_URL
|
---|
253 | ''
|
---|
254 | MIDDLEWARE_CLASSES
|
---|
255 | ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware')
|
---|
256 | MONTH_DAY_FORMAT
|
---|
257 | 'F j'
|
---|
258 | PREPEND_WWW
|
---|
259 | False
|
---|
260 | PROFANITIES_LIST
|
---|
261 | '********************'
|
---|
262 | ROOT_URLCONF
|
---|
263 | 'myproject.urls'
|
---|
264 | SECRET_KEY
|
---|
265 | '********************'
|
---|
266 | SEND_BROKEN_LINK_EMAILS
|
---|
267 | False
|
---|
268 | SERVER_EMAIL
|
---|
269 | 'root@localhost'
|
---|
270 | SESSION_COOKIE_AGE
|
---|
271 | 1209600
|
---|
272 | SESSION_COOKIE_DOMAIN
|
---|
273 | None
|
---|
274 | SESSION_COOKIE_NAME
|
---|
275 | 'sessionid'
|
---|
276 | SESSION_COOKIE_PATH
|
---|
277 | '/'
|
---|
278 | SESSION_COOKIE_SECURE
|
---|
279 | False
|
---|
280 | SESSION_ENGINE
|
---|
281 | 'django.contrib.sessions.backends.db'
|
---|
282 | SESSION_EXPIRE_AT_BROWSER_CLOSE
|
---|
283 | False
|
---|
284 | SESSION_FILE_PATH
|
---|
285 | '/tmp/'
|
---|
286 | SESSION_SAVE_EVERY_REQUEST
|
---|
287 | False
|
---|
288 | SETTINGS_MODULE
|
---|
289 | 'myproject.settings'
|
---|
290 | SITE_ID
|
---|
291 | 1
|
---|
292 | TEMPLATE_CONTEXT_PROCESSORS
|
---|
293 | ('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media')
|
---|
294 | TEMPLATE_DEBUG
|
---|
295 | True
|
---|
296 | TEMPLATE_DIRS
|
---|
297 | ()
|
---|
298 | TEMPLATE_LOADERS
|
---|
299 | ('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source')
|
---|
300 | TEMPLATE_STRING_IF_INVALID
|
---|
301 | ''
|
---|
302 | TEST_DATABASE_CHARSET
|
---|
303 | None
|
---|
304 | TEST_DATABASE_COLLATION
|
---|
305 | None
|
---|
306 | TEST_DATABASE_NAME
|
---|
307 | None
|
---|
308 | TEST_RUNNER
|
---|
309 | 'django.test.simple.run_tests'
|
---|
310 | TIME_FORMAT
|
---|
311 | 'P'
|
---|
312 | TIME_ZONE
|
---|
313 | 'America/Chicago'
|
---|
314 | TRANSACTIONS_MANAGED
|
---|
315 | False
|
---|
316 | URL_VALIDATOR_USER_AGENT
|
---|
317 | u'Django/0.97-pre-SVN-7176 (http://www.djangoproject.com)'
|
---|
318 | USE_ETAGS
|
---|
319 | False
|
---|
320 | USE_I18N
|
---|
321 | True
|
---|
322 | YEAR_MONTH_FORMAT
|
---|
323 | 'F Y'
|
---|
324 |
|
---|
325 | 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.
|
---|
326 |
|
---|