Editing the "example.org" site
Hi all,
I don't know how many people will need this, but I just realized that you can edit Django's SITE 1 and (probably, 100% untested but I'm going on the clock so want to get this done quick :-) use that.
When you add your first domain, there's a link in that page (not a button, a link!) to edit the domain list. Then you can click on the link to "example.org" in the list, and edit both display name (which I assumed) and the domain name.
Maybe I'm just slow, but I've been adding SITE 2 = "Whatever site <whatever.tld>" the whole time. :-) But then you have to edit the SITE = 1 statement in settings.py (which I often forget and hilarity ensues).
Of course adding a web site and editing settings.py (which you have to do anyway for other variables) works too, but this seems cleaner to me.
Steve
On Sun, Dec 31, 2023 at 11:16 AM Stephen J. Turnbull < turnbull.stephen.fw@u.tsukuba.ac.jp> wrote:
Hi all,
I don't know how many people will need this, but I just realized that you can edit Django's SITE 1 and (probably, 100% untested but I'm going on the clock so want to get this done quick :-) use that.
When you add your first domain, there's a link in that page (not a button, a link!) to edit the domain list. Then you can click on the link to "example.org" in the list, and edit both display name (which I assumed) and the domain name.
Maybe I'm just slow, but I've been adding SITE 2 = "Whatever site <whatever.tld>" the whole time. :-) But then you have to edit the SITE = 1 statement in settings.py (which I often forget and hilarity ensues).
Of course adding a web site and editing settings.py (which you have to do anyway for other variables) works too, but this seems cleaner to me.
Steve
This is interesting. However, you meant the default example.com, right? And that link also let's me DELETE the site :-)
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
Odhiambo Washington writes:
This is interesting. However, you meant the default example.com, right?
Whatever it is is fine for me. I was going from memory.
And that link also let's me DELETE the site :-)
Don't do that! What happens afterward is not hilarious, it's a self-DOS unless you know exactly what you're doing.
Among other things, the next site you create is still #2. It's not really any cleaner just because you got rid of the example site.
On Wed, Jan 3, 2024 at 9:20 AM Stephen J. Turnbull < turnbull.stephen.fw@u.tsukuba.ac.jp> wrote:
Odhiambo Washington writes:
This is interesting. However, you meant the default example.com, right?
Whatever it is is fine for me. I was going from memory.
And that link also let's me DELETE the site :-)
Don't do that! What happens afterward is not hilarious, it's a self-DOS unless you know exactly what you're doing.
I thought about that, because I have seen what those who deleted example.com went through.
Among other things, the next site you create is still #2. It's not really any cleaner just because you got rid of the example site.
It's good that one can rename the example.com. Perhaps that can be documented somewhere as a footnote.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
participants (2)
-
Odhiambo Washington
-
Stephen J. Turnbull