Opened 17 years ago
Closed 11 years ago
#7857 closed New feature (wontfix)
manage.py shell, dbshell funtionality
| Reported by: | Sanha | Owned by: | Mark Barrett | 
|---|---|---|---|
| Component: | Core (Management commands) | Version: | dev | 
| Severity: | Normal | Keywords: | manage.py, testserver, shell, dbshell | 
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
manage.py testserver is good funtion to test and develop application.
it recreate database 'test_' + database name.
when using testserver manage.py shell or manage.py dbshell connect original database.
I think that some option is useful to connect 'test_' + database at this time.
But, I can't find option like that.
Attachments (2)
Change History (16)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
| milestone: | → post-1.0 | 
|---|---|
| Triage Stage: | Unreviewed → Design decision needed | 
comment:3 by , 17 years ago
| Component: | Tools → django-admin.py | 
|---|
comment:6 by , 15 years ago
| Triage Stage: | Design decision needed → Accepted | 
|---|
Seems like a reasonable idea.
comment:7 by , 15 years ago
Separate commands, or "--test" parameter to existing commands? Perhaps the separate "test*" commands are less error-prone.
comment:8 by , 15 years ago
| Severity: | → Normal | 
|---|---|
| Type: | → New feature | 
comment:9 by , 14 years ago
| Easy pickings: | unset | 
|---|---|
| Owner: | changed from to | 
| Status: | new → assigned | 
| UI/UX: | unset | 
by , 14 years ago
| Attachment: | testshell.patch added | 
|---|
New command which creates test database instead of real database when running interactive shell
by , 14 years ago
| Attachment: | testshell.diff added | 
|---|
comment:10 by , 14 years ago
| Has patch: | set | 
|---|
comment:12 by , 13 years ago
It is useful to explore fixtures in the interactive shell, otherwise you are reduced to printf-style debugging in the test case.  
comment:14 by , 11 years ago
| Resolution: | → wontfix | 
|---|---|
| Status: | assigned → closed | 
I agree with Aymeric (aaugustin), that this doesn't seem very necessary. Please use the snippet if you need it.
for example these is useful to test.