Update Site data for AirMozilla

RESOLVED FIXED

Status

RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: peterbe, Assigned: jd)

Tracking

Details

(Reporter)

Description

5 years ago
Can you set up the Site data for each site in its django shell (./manage.py shell):

For air-dev::

>>> from django.contrib.sites.models import Site
>>> site, = Site.objects.all()
>>> site.domain = 'air-dev.allizom.org'
>>> site.save()

For air stage::

>>> from django.contrib.sites.models import Site
>>> site, = Site.objects.all()
>>> site.domain = 'air.allizom.org'
>>> site.save()

For air prod::

>>> from django.contrib.sites.models import Site
>>> site, = Site.objects.all()
>>> site.domain = 'air.mozilla.org'
>>> site.save()
does this write something to the database, or does this need to be run on *every* web head in each cluster?
Assignee: server-ops-webops → cturra
Flags: needinfo?(peterbe)
OS: Mac OS X → All
Hardware: x86 → All
:peterbe - any update on this?
(Reporter)

Comment 3

5 years ago
(In reply to Chris Turra [:cturra] from comment #1)
> does this write something to the database, or does this need to be run on
> *every* web head in each cluster?

Just once. It updates the database. 
I just don't have any way to update the database this way via the web.
Flags: needinfo?(peterbe)
(Assignee)

Comment 4

5 years ago
This has been accomplished. Please let me know if the results are not as expected.

Regards
Assignee: cturra → jcrowe
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.