renamed fbf app to bird
This commit is contained in:
parent
7724148dfc
commit
2d75a02c6e
19 changed files with 12 additions and 13 deletions
|
@ -1,6 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class FbfConfig(AppConfig):
|
||||
class BirdConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'fbf'
|
||||
name = 'bird'
|
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 4.2.2 on 2023-06-10 19:52
|
||||
# Generated by Django 4.2.2 on 2023-06-22 15:25
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
@ -50,7 +50,7 @@ class Migration(migrations.Migration):
|
|||
(
|
||||
"bird",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE, to="fbf.bird"
|
||||
on_delete=django.db.models.deletion.CASCADE, to="bird.bird"
|
||||
),
|
||||
),
|
||||
(
|
|
@ -27,7 +27,7 @@ def bird_create(request):
|
|||
request.session["rescuer_id"] = None
|
||||
return redirect("bird_all")
|
||||
context = {"form": form, "rescuer": rescuer}
|
||||
return render(request, "fbf/bird_create.html", context)
|
||||
return render(request, "bird/bird_create.html", context)
|
||||
|
||||
|
||||
@login_required(login_url="account_login")
|
||||
|
@ -43,7 +43,7 @@ def bird_all(request):
|
|||
return redirect("bird_create")
|
||||
else:
|
||||
return redirect("rescuer_create")
|
||||
return render(request, "fbf/bird_all.html", context)
|
||||
return render(request, "bird/bird_all.html", context)
|
||||
|
||||
|
||||
@login_required(login_url="account_login")
|
||||
|
@ -63,7 +63,7 @@ def bird_single(request, id):
|
|||
form.save()
|
||||
return redirect("bird_all")
|
||||
context = {"form": form, "bird": bird}
|
||||
return render(request, "fbf/bird_single.html", context)
|
||||
return render(request, "bird/bird_single.html", context)
|
||||
|
||||
|
||||
@login_required(login_url="account_login")
|
||||
|
@ -73,7 +73,7 @@ def bird_delete(request, id):
|
|||
bird.delete()
|
||||
return redirect("bird_all")
|
||||
context = {"bird": bird}
|
||||
return render(request, "fbf/bird_delete.html", context)
|
||||
return render(request, "bird/bird_delete.html", context)
|
||||
|
||||
|
||||
@login_required(login_url="account_login")
|
|
@ -53,7 +53,7 @@ INSTALLED_APPS = [
|
|||
# -----------------------------------
|
||||
# My Apps
|
||||
# -----------------------------------
|
||||
"fbf",
|
||||
"bird",
|
||||
"rescuer",
|
||||
"sites",
|
||||
]
|
||||
|
|
|
@ -19,7 +19,7 @@ from django.urls import path, include
|
|||
|
||||
urlpatterns = [
|
||||
# Dynamic sites
|
||||
path("bird/", include("fbf.urls")),
|
||||
path("bird/", include("bird.urls")),
|
||||
path("rescuer/", include("rescuer.urls")),
|
||||
# Admin
|
||||
path("admin/", admin.site.urls),
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 4.2.2 on 2023-06-08 15:45
|
||||
# Generated by Django 4.2.2 on 2023-06-22 15:25
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="container">
|
||||
<footer class="footer d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
|
||||
<p class="col-md-4 mb-0 text-muted">© 2023 fbf</p>
|
||||
<p class="col-md-4 mb-0 text-muted">© 2023 bird</p>
|
||||
<ul class="nav col-md-5 justify-content-end">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-2 text-muted" href="{% url 'rescuer_all' %}">Home</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue