Opened 17 years ago
Closed 17 years ago
#5598 closed (fixed)
Django contrib sessions module missing imports (os, time), causes error on new session
Description ¶
As of r6333, there are missing imports in django/contrib/sessions/models.py:
Line 1 currently is:
import base64, md5, random, sys, datetime
should be:
import base64, md5, random, sys, datetime, os, time
Looks like it used to be like that and just got lost.
When using a new project, it gives this error:
NameError: global name 'os' is not defined
Change History (3)
by , 17 years ago
Attachment: | session_import_r6423.patch added |
---|
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
It looks like Jacob accidentally excised two imports that are used later in the module in changeset [6333]. The patch fixes it.
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch against r6423 to fix session import.