Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#114 closed defect (fixed)

DeprecationWarning when creating a new project (see patch)

Reported by: sdelatorre@… 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: UI/UX:


I decided to start over with the newewst build and received the following when creating a new project:

C:\www\webroot> startproject myproject

C:\Python24\lib\ 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)

whrandom.patch (1.2 KB) - added by anonymous 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by anonymous

Attachment: whrandom.patch added

comment:1 Changed 11 years ago by Matt Croydon

I'm going to defer to Adrian on this one, but it looks like a simple s/whrandom/random/ in and 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.

comment:2 Changed 11 years ago by Matt Croydon

Summary: DeprecationWarning when creating a new projectDeprecationWarning when creating a new project (see patch)

Working my way back through the tutorial, it hasn't appeared to break anything so far.

comment:3 Changed 11 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

Thanks! Fixed in [262].

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