#18827 closed Bug (fixed)
Exclude __pycache__ from module detection
| Reported by: | Aymeric Augustin | Owned by: | nobody |
|---|---|---|---|
| Component: | Python 3 | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | bhuztez@… | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
If you make a typo in the database backend you get this error message on Python 3:
Try using django.db.backends.XXX, where XXX is one of:
'__pycache__', 'dummy', 'mysql', 'oracle', 'postgresql_psycopg2', 'sqlite3'
At least __pycache__ should be filtered out. Maybe dummy too.
It would be nice to check if this pattern occurs in other places in Django.
(One more reason not to attempt listing modules in a package...)
Attachments (1)
Change History (5)
by , 13 years ago
| Attachment: | 18827-1.diff added |
|---|
comment:1 by , 13 years ago
| Has patch: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:3 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Fixed in 2100da9dcdba7a8bc18f6180fd7e61640319b48a.
Note:
See TracTickets
for help on using tickets.
Use pkgutil to list packages