Opened 6 years ago
Last modified 6 years ago
#31010 closed New feature
Add subdomains of localhost to ALLOWED_HOSTS in DEBUG mode — at Initial Version
| Reported by: | thenewguy | Owned by: | nobody |
|---|---|---|---|
| Component: | HTTP handling | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
It would minimize configuration for new projects if ALLOWED_HOSTS += .localhost when DEBUG=True
Chrome resolves *.localhost to localhost without modifying any host files or DNS
Referencing the project this way makes it easy to test subdomains -> static.localhost, uploads.localhost, www.localhost, etc
Note:
See TracTickets
for help on using tickets.