Django's default site needs to be properly configured and returned
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Capomastro |
Fix Committed
|
High
|
Caio Begotti |
Bug Description
Checking projects/
196 """
197 Get the base URL for the site.
198 """
199 current_site = Site.objects.
200 return urlparse.
1. Django's default site is still example.com when we deploy Capomastro, we don't have a fixture for it and we possibly should ship saner defaults using the production/staging domains.
2. This get_base_url() should IMHO clear out the cache of site objects (Site.objects.
3. It should return HTTPS by default (and it should be safe enough as we have redirects and we always want HTTPS)
As a sidenote, I had to file a RT so IS would workaround these during the last upgrade, via https:/
Related branches
- Daniel Manrique (community): Approve
-
Diff: 48 lines (+25/-1)3 files modified.bzrignore (+2/-0)
capomastro/site/management/__init__.py (+21/-0)
projects/tasks.py (+2/-1)
Changed in capomastro: | |
milestone: | none → 2015-06 |
importance: | Undecided → High |
status: | New → Triaged |
Changed in capomastro: | |
assignee: | nobody → Caio Begotti (caio1982) |
status: | Triaged → In Progress |
Changed in capomastro: | |
status: | In Progress → Fix Committed |