#114 closed defect (fixed)
DeprecationWarning when creating a new project (see patch)
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I decided to start over with the newewst build and received the following when creating a new project:
C:\www\webroot>django-admin.py startproject myproject
C:\Python24\lib\whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module DeprecationWarning)
This didn't happen the first couple of times, so I'm guessing that it has to do with the build. I'm running WinXP & Py 2.4.1.
Attachments (1)
Change History (4)
by , 19 years ago
Attachment: | whrandom.patch added |
---|
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Summary: | DeprecationWarning when creating a new project → DeprecationWarning when creating a new project (see patch) |
---|
Working my way back through the tutorial, it hasn't appeared to break anything so far.
Note:
See TracTickets
for help on using tickets.
I'm going to defer to Adrian on this one, but it looks like a simple s/whrandom/random/ in auth.py and management.py did the trick, but I haven't done much testing beyond making sure that django-admin startproject works just fine. This is a prime example of where having a testing framework in place would be best. I would feel a lot better about this patch if I knew that it didn't break the test suite.