From 607252977e60dff150ced5b984badb81ce34dd8b Mon Sep 17 00:00:00 2001 From: ricki-z Date: Tue, 2 Jun 2020 14:08:51 +0200 Subject: [PATCH 1/3] add command to change site name and hostname to README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 86dc37b..e6c5d64 100644 --- a/README.md +++ b/README.md @@ -203,6 +203,12 @@ docker-compose exec get_together python3 manage.py createsuperuser You can then connect to the container by going to localhost:8000 +## Changing name and hostname + +If you want to use this software with an own hostname you need to change the site settings: + +`./env/bin/python manage.py shell -c "from django.contrib.sites.models import Site; Site.objects.filter(domain='example.com').update(name='My Site', domain='mysite.tld')"` + ## Test Federation You can import live event data into your "Searchable" table with this command: From 99e046f524a9692c4cac5a51584b10af429bc1d5 Mon Sep 17 00:00:00 2001 From: ricki-z Date: Tue, 2 Jun 2020 17:05:20 +0200 Subject: [PATCH 2/3] remove maps if GOOGLE_MAPS_API_KEY is empty --- get_together/templates/get_together/index.html | 4 ++++ get_together/templates/get_together/new_event/add_place.html | 4 ++++ get_together/templates/get_together/orgs/show_org.html | 5 ++++- .../templates/get_together/places/add_place_to_series.html | 4 ++++ get_together/templates/get_together/places/create_place.html | 4 ++++ 5 files changed, 20 insertions(+), 1 deletion(-) diff --git a/get_together/templates/get_together/index.html b/get_together/templates/get_together/index.html index bf0a577..114c99b 100644 --- a/get_together/templates/get_together/index.html +++ b/get_together/templates/get_together/index.html @@ -7,7 +7,9 @@ {% block content %}
+{% if settings.GOOGLE_MAPS_API_KEY %}
+{% endif %}