Opened 19 years ago

Closed 19 years ago

Last modified 18 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: 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)

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

Download all attachments as: .zip

Change History (4)

by anonymous, 19 years ago

Attachment: whrandom.patch added

comment:1 by Matt Croydon, 19 years ago

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.

comment:2 by Matt Croydon, 19 years ago

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 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

Thanks! Fixed in [262].

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