Opened 10 years ago

Closed 10 years ago

#1775 closed defect (fixed)

Admin page error

Reported by: stanep@… Owned by: adrian
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


-- Django version 0.95 on WinXP

Traceback (most recent call last):

File "C:\Python23\lib\site-packages\django\core\servers\", line 272, in run

self.result = application(self.environ, self.start_response)

File "C:\Python23\lib\site-packages\django\core\servers\", line 615, in call

return self.application(environ, start_response)

File "C:\Python23\lib\site-packages\django\core\handlers\", line 145, in call

response = self.get_response(request.path, request)

File "C:\Python23\lib\site-packages\django\core\handlers\", line 100, in get_response

return self.get_technical_error_response(request)

File "C:\Python23\lib\site-packages\django\core\handlers\", line 133, in get_technical_error_response

return debug.technical_500_response(request, *sys.exc_info())

File "C:\Python23\lib\site-packages\django\views\", line 103, in technical_500_response


TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

Change History (3)

comment:1 Changed 10 years ago by ubernostrum

  • priority changed from high to normal

Without more information about what you were trying to do, what your model setup is, what your settings are, etc., it's impossible to tell if this is a configuration error or an actual bug. Your best bet is to post details to the Django users mailing list ( or in the Django IRC channel (#django on and ask for help tracing the source of the problem.

comment:2 Changed 10 years ago by stanep@…

just download django on WinXP

Im trying to go through tutorial

on tutorial2 when you trying to open http://localhost:8000/admin
I got this error

in the file
File "C:\Python23\lib\site-packages\django\views\", line 99

variable "pre_context_lineno" becomes None

and this code just fails

'pre_context_lineno': pre_context_lineno + 1,

comment:3 Changed 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

This was fixed a couple of days ago.

Note: See TracTickets for help on using tickets.
Back to Top