diff --git a/core/settings.py b/core/settings.py index ca4703c..2279a64 100644 --- a/core/settings.py +++ b/core/settings.py @@ -20,7 +20,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = "django-insecure-)g-j2v+*dvjtnz)q-3+*y7*lq$el$im8p^wr@2v$g^u99quq50" +SECRET_KEY = ")g-j2v+*dvjtnz)q-3+*y7*lq$el$im8p^wr@2v$g^u99quq50" # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True @@ -90,16 +90,20 @@ DATABASES = { AUTH_PASSWORD_VALIDATORS = [ { - "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator", + "NAME": + "django.contrib.auth.password_validation.UserAttributeSimilarityValidator", }, { - "NAME": "django.contrib.auth.password_validation.MinimumLengthValidator", + "NAME": + "django.contrib.auth.password_validation.MinimumLengthValidator", }, { - "NAME": "django.contrib.auth.password_validation.CommonPasswordValidator", + "NAME": + "django.contrib.auth.password_validation.CommonPasswordValidator", }, { - "NAME": "django.contrib.auth.password_validation.NumericPasswordValidator", + "NAME": + "django.contrib.auth.password_validation.NumericPasswordValidator", }, ] diff --git a/fbf/views.py b/fbf/views.py index 52388e5..c1d2467 100644 --- a/fbf/views.py +++ b/fbf/views.py @@ -1,4 +1,5 @@ from django.shortcuts import render, HttpResponse +from .models import FallenBird def bird_create(request): @@ -6,11 +7,14 @@ def bird_create(request): def bird_all(request): + birds_all = FallenBird.objects.all() + for bird in birds_all: + print(bird) return HttpResponse("Show all Birds") def bird_recover_all(request): - return HttpResponse(f"Show all recovered Birds") + return HttpResponse("Show all recovered Birds") def bird_single(request, id): diff --git a/static/.gitkeep b/static/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/static/css/.gitkeep b/static/css/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/static/img/.gitkeep b/static/img/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..73d85e5 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,41 @@ +{load static} + + +
+ + + + + {% comment %} favicon {% endcomment %} + + + {% comment %} css {% endcomment %} + + + + {% comment %} possible dynamic header {% endcomment %} +