From 670350b256125510f76c455cd34aaae3d1b710ff Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 10 Nov 2021 14:19:48 -0600 Subject: [PATCH 1/5] Removed duplicate key value in sample_players --- players/fixtures/sample_players.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/players/fixtures/sample_players.yaml b/players/fixtures/sample_players.yaml index 305ccb9..66890b8 100644 --- a/players/fixtures/sample_players.yaml +++ b/players/fixtures/sample_players.yaml @@ -5,7 +5,6 @@ last_name: Tosser jersey_number: 1 team: 1 - team: 1 - model: players.player pk: 2 fields: From ee44726ab7daf1386571533f5682d937fa07796e Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 10 Nov 2021 15:17:52 -0600 Subject: [PATCH 2/5] fixed call_back for success in team edit --- events/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/views.py b/events/views.py index f10f598..092ad15 100644 --- a/events/views.py +++ b/events/views.py @@ -25,7 +25,7 @@ def edit(request, id=0): # ... # redirect to a new URL: new_event, did_create = Event.objects.update_or_create(pk=id, defaults=form.cleaned_data) - return render(request, 'success.html', {'call_back':'players list'}) + return render(request, 'success.html', {'call_back':'schedule'}) # if a GET (or any other method) we'll create a blank form else: From c978d17964b15471a988a1f8aa85eb4775ebde51 Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 11 Nov 2021 19:49:08 -0600 Subject: [PATCH 3/5] ignore data directory --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 3b614d0..4939baa 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ __pycache__ db.sqlite3 media +/data # Backup files # *.bak From 31d78ac186f554abb28dfe8c939780d7dc2ac3f9 Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 11 Nov 2021 20:02:32 -0600 Subject: [PATCH 4/5] allow more hosts (including "*") --- benchcoach/settings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/benchcoach/settings.py b/benchcoach/settings.py index 7333e1f..92d2d48 100644 --- a/benchcoach/settings.py +++ b/benchcoach/settings.py @@ -26,8 +26,7 @@ SECRET_KEY = 'django-insecure-qib_j&47o$5l3*gi7y#8#3pjh_88sfdqn@dmp&gx+2)&1nzmor # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = ["smithers-ii.local", "127.0.0.1"] - +ALLOWED_HOSTS = ["smithers-ii.local", "127.0.0.1", "10.0.1.4", "*"] # Application definition From a4f9852c36e68f4acf8e72876369cccce0c834cd Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 11 Nov 2021 20:30:55 -0600 Subject: [PATCH 5/5] allow more hosts (including "*") --- benchcoach/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchcoach/settings.py b/benchcoach/settings.py index 92d2d48..826d42b 100644 --- a/benchcoach/settings.py +++ b/benchcoach/settings.py @@ -26,7 +26,7 @@ SECRET_KEY = 'django-insecure-qib_j&47o$5l3*gi7y#8#3pjh_88sfdqn@dmp&gx+2)&1nzmor # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = ["smithers-ii.local", "127.0.0.1", "10.0.1.4", "*"] +ALLOWED_HOSTS = ["smithers-ii.local", "127.0.0.1", "10.0.1.4", "benchcoach.ascorrea.com"] # Application definition