From ff3d06fcfe2bf752acde4b0f73cd1934cbca2141 Mon Sep 17 00:00:00 2001
From: Juma Rubea
Date: Mon, 28 Jul 2025 11:22:34 +0300
Subject: [PATCH] fix: url mismatch
---
.python-version | 1 +
.vscode/settings.json | 4 +++-
home/urls.py | 2 +-
logbook/views.py | 2 +-
main.py | 6 ++++++
pyproject.toml | 7 +++++++
templates/logbook/logbook_detail.html | 8 ++++----
templates/logbook/logbook_operations.html | 12 ++++++------
8 files changed, 29 insertions(+), 13 deletions(-)
create mode 100644 .python-version
create mode 100644 main.py
create mode 100644 pyproject.toml
diff --git a/.python-version b/.python-version
new file mode 100644
index 0000000..e4fba21
--- /dev/null
+++ b/.python-version
@@ -0,0 +1 @@
+3.12
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 6f3a291..da7a05c 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,3 +1,5 @@
{
- "liveServer.settings.port": 5501
+ "liveServer.settings.port": 5501,
+ "python-envs.defaultEnvManager": "ms-python.python:system",
+ "python-envs.pythonProjects": []
}
\ No newline at end of file
diff --git a/home/urls.py b/home/urls.py
index 7990dd0..81d76e8 100644
--- a/home/urls.py
+++ b/home/urls.py
@@ -1,5 +1,5 @@
from django.urls import path
-from .views import *
+from home.views import home_view, signup_view, login_view, logout_view, password_reset_view
urlpatterns = [
path('', home_view, name="home"),
diff --git a/logbook/views.py b/logbook/views.py
index 2ad24ec..7225ea3 100644
--- a/logbook/views.py
+++ b/logbook/views.py
@@ -1,6 +1,6 @@
from django.shortcuts import render, redirect, HttpResponse
from home.views import process_login, logout
-from .models import *
+from .models import Student, Logbook, Entry, Week_operation, User
from datetime import datetime, timedelta
from docs.create_document import create_practical_training_log_book as aidalog
import os
diff --git a/main.py b/main.py
new file mode 100644
index 0000000..98af6c5
--- /dev/null
+++ b/main.py
@@ -0,0 +1,6 @@
+def main():
+ print("Hello from aida-logs!")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..c1850e5
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,7 @@
+[project]
+name = "aida-logs"
+version = "0.1.0"
+description = "Add your description here"
+readme = "README.md"
+requires-python = ">=3.12"
+dependencies = []
diff --git a/templates/logbook/logbook_detail.html b/templates/logbook/logbook_detail.html
index fe36c85..a703960 100644
--- a/templates/logbook/logbook_detail.html
+++ b/templates/logbook/logbook_detail.html
@@ -36,11 +36,11 @@ Main Operation Summary
{% endfor %}
{% endif %}
- Week Operations & Diagram
+ Week Operations & Diagram
{% if metadata.entry_count == 0 %}
- Create Entries
+ Create Entries
{% else %}
- Print
+ Print
{% endif %}
@@ -162,7 +162,7 @@ {{entry.day}}
{{entry.activity}}
- Update
+ Update
diff --git a/templates/logbook/logbook_operations.html b/templates/logbook/logbook_operations.html
index 8c69386..45ef058 100644
--- a/templates/logbook/logbook_operations.html
+++ b/templates/logbook/logbook_operations.html
@@ -12,8 +12,8 @@
@@ -32,7 +32,7 @@
Logbook week - {{logbook.week_number}
- Hi there! your week operations are empty
Add Here
+ Hi there! your week operations are empty
Add Here
{% else %}
{% for operation in week_operations %}
@@ -53,9 +53,9 @@ Machinery