chore: rename PlantDB to BloomBase
Rename Django project module plantdb/ → bloombase/, update all references in manage.py, docker-compose.yml, wsgi/asgi/settings. Replace PlantDB with BloomBase in all template titles and navbar. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
798240f968
commit
99fd95ee80
21 changed files with 21 additions and 21 deletions
|
|
@ -11,6 +11,6 @@ import os
|
|||
|
||||
from django.core.asgi import get_asgi_application
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'plantdb.settings')
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bloombase.settings')
|
||||
|
||||
application = get_asgi_application()
|
||||
|
|
@ -29,7 +29,7 @@ MIDDLEWARE = [
|
|||
'django_htmx.middleware.HtmxMiddleware',
|
||||
]
|
||||
|
||||
ROOT_URLCONF = 'plantdb.urls'
|
||||
ROOT_URLCONF = 'bloombase.urls'
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
|
|
@ -47,7 +47,7 @@ TEMPLATES = [
|
|||
},
|
||||
]
|
||||
|
||||
WSGI_APPLICATION = 'plantdb.wsgi.application'
|
||||
WSGI_APPLICATION = 'bloombase.wsgi.application'
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
|
|
@ -11,6 +11,6 @@ import os
|
|||
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'plantdb.settings')
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bloombase.settings')
|
||||
|
||||
application = get_wsgi_application()
|
||||
|
|
@ -11,7 +11,7 @@ services:
|
|||
command: >
|
||||
sh -c "python manage.py migrate --noinput &&
|
||||
python manage.py collectstatic --noinput &&
|
||||
gunicorn plantdb.wsgi:application --bind 0.0.0.0:8000 --workers 1"
|
||||
gunicorn bloombase.wsgi:application --bind 0.0.0.0:8000 --workers 1"
|
||||
restart: unless-stopped
|
||||
|
||||
nginx:
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import sys
|
|||
|
||||
def main():
|
||||
"""Run administrative tasks."""
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'plantdb.settings')
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bloombase.settings')
|
||||
try:
|
||||
from django.core.management import execute_from_command_line
|
||||
except ImportError as exc:
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
<title>{% block title %}PlantDB{% endblock %}</title>
|
||||
<title>{% block title %}BloomBase{% endblock %}</title>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
|
||||
<script src="https://unpkg.com/htmx.org@1.9.12" defer></script>
|
||||
<style>
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-dark px-3" style="background-color: #2d6a4f;">
|
||||
<a class="navbar-brand fw-bold" href="{% url 'dashboard' %}">🌿 PlantDB</a>
|
||||
<a class="navbar-brand fw-bold" href="{% url 'dashboard' %}">🌸 BloomBase</a>
|
||||
<div class="d-flex gap-2">
|
||||
<a href="{% url 'plant_list' %}" class="btn btn-sm btn-outline-light">Plants</a>
|
||||
<a href="{% url 'add_plant_from_scan' %}" class="btn btn-sm btn-outline-light" title="Add plant by card scan">📷</a>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% load plant_extras %}
|
||||
{% block title %}Dashboard — PlantDB{% endblock %}
|
||||
{% block title %}Dashboard — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
<h6 class="text-muted mb-3">{{ today|date:"F Y" }}</h6>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% block title %}Confirm species — PlantDB{% endblock %}
|
||||
{% block title %}Confirm species — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<div class="d-flex align-items-center gap-2 mb-3">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% block title %}Review & save — PlantDB{% endblock %}
|
||||
{% block title %}Review & save — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<div class="d-flex align-items-center gap-2 mb-3">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% block title %}Identify plant — PlantDB{% endblock %}
|
||||
{% block title %}Identify plant — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<div class="d-flex align-items-center gap-2 mb-3">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% block title %}Plant card — {{ plant.name }} — PlantDB{% endblock %}
|
||||
{% block title %}Plant card — {{ plant.name }} — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<div class="d-flex align-items-center gap-2 mb-3">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% load plant_extras %}
|
||||
{% block title %}Extract card data — {{ plant.name }} — PlantDB{% endblock %}
|
||||
{% block title %}Extract card data — {{ plant.name }} — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<div class="d-flex align-items-center gap-2 mb-3">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% block title %}Delete {{ plant.name }} — PlantDB{% endblock %}
|
||||
{% block title %}Delete {{ plant.name }} — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
<div class="card mt-3">
|
||||
<div class="card-body">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% block title %}{{ plant.name }} — PlantDB{% endblock %}
|
||||
{% block title %}{{ plant.name }} — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<div class="d-flex align-items-center gap-2 mb-2">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% block title %}{{ title }} — PlantDB{% endblock %}
|
||||
{% block title %}{{ title }} — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
<div class="d-flex align-items-center gap-2 mb-3">
|
||||
<a href="{% url 'plant_list' %}" class="btn btn-sm btn-outline-secondary">←</a>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% block title %}Plants — PlantDB{% endblock %}
|
||||
{% block title %}Plants — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
<div class="mb-3">
|
||||
<input
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% block title %}Add plant from card — PlantDB{% endblock %}
|
||||
{% block title %}Add plant from card — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<div class="d-flex align-items-center gap-2 mb-3">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% block title %}Pruning Calendar — PlantDB{% endblock %}
|
||||
{% block title %}Pruning Calendar — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
<h5 class="mb-3">✂️ Pruning Calendar</h5>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "plants/base.html" %}
|
||||
{% block title %}Add Plant — PlantDB{% endblock %}
|
||||
{% block title %}Add Plant — BloomBase{% endblock %}
|
||||
{% block content %}
|
||||
<h5 class="mb-3">Add a plant</h5>
|
||||
<p class="text-muted small">Search by name, or paste a VPC URL to import a specific plant directly.</p>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue