Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#11024 closed (duplicate)

Django should work without configuring DJANGO_SETTINGS_MODULE

Reported by: Eric Holscher Owned by: Eric Holscher
Component: Testing framework Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Allowing people to simply cd into django/tests and execute and have it work out of the box makes a lot of sense. It will allow tests to be run easier.

Change History (4)

comment:1 Changed 9 years ago by Eric Holscher

Note that I mean that database options should be able to be defined on the command line, or default to Sqlite. Brian Rosner wrote some code for normal Django apps that accomplishes this:

Something along those lines would make it really easy to get up and running, and people who wanted to test against another DB could define it on the command line, or add a settings file.

comment:2 Changed 9 years ago by Alex Gaynor

Defaulting to SQLite only really makes sense once we require 2.5, since that's the first version where we can assume SQLite.

comment:3 Changed 9 years ago by dc

Resolution: duplicate
Status: newclosed

Duplicate of #6298

comment:4 Changed 7 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

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