Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#114 closed defect (fixed)

DeprecationWarning when creating a new project (see patch)

Reported by: sdelatorre@… Owned by: adrian
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 9 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by anonymous

comment:1 Changed 9 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 9 years ago by Matt Croydon

  • Summary changed from DeprecationWarning when creating a new project to DeprecationWarning 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 9 years ago by adrian

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

Thanks! Fixed in [262].

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.