Created
October 2, 2014 12:17
-
-
Save ruescasd/6e1cff8f552cd43c3661 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [3]: from django.contrib.sites.models import Site | |
In [4]: x = Site.objects.get_current() | |
In [5]: x | |
Out[5]: <Site: wadobo.com> | |
In [6]: x.name | |
Out[6]: u'wadobo.com' | |
In [8]: x.name/domain = "demo.wadobo.com" | |
In [9]: x.save() | |
custom_settings.py | |
ALLOWED_HOSTS = ['demo.wadobo.com', 'fnmt.local.dev'] | |
agora=# select replace(url, 'https://agoravoting.com', 'https://demo.wadobo.com:8443') from agora_core_agora; | |
agora=# select replace(url, 'https://agoravoting.com', 'https://demo.wadobo.com:8443') from agora_core_election; | |
agora=# select replace(url, 'http://agoravoting.com', 'https://demo.wadobo.com:8443') from agora_core_election; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment