Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
a527e55
Copy admin layout templates
Nov 19, 2025
8600a7f
Correct a typo in many files
Nov 19, 2025
1f35590
Refer to DPP home instead of Admin home
Nov 19, 2025
2156160
Automatic views and URLs for all models
Nov 19, 2025
31f449b
Create custom templates (layouts) using Tailwind
Nov 19, 2025
0e0f16d
Updates to models and views
Nov 25, 2025
15d1e29
Update templates
Nov 25, 2025
d097c24
Refinement of data models
Nov 27, 2025
f7e8a16
Add a custom production line page, incl. flowchart
Nov 27, 2025
5421c93
Remove old CircularityIndicator model
Nov 27, 2025
d3b3596
Script to import CSV data to initialize the db
Nov 27, 2025
12d4c81
Improved view for production line; new view for process
Dec 10, 2025
fee089e
Updated layout style (+ button still not visible)
Dec 10, 2025
9357faf
Model updates:
Dec 10, 2025
2575dcd
Introduce ProductModel, parent of ProductBatch
Dec 10, 2025
5d74f38
Update models, fix 'add related'-widget,
Dec 15, 2025
53e5c60
Replace BillOfMaterials by get_composition, add Transport table
Dec 16, 2025
c920214
Merge CRM into Material, update calculations
Dec 17, 2025
6a20122
Bug fixes: 'produced_by' relation (now 1:1),
Jan 6, 2026
36c1b85
Add ProductDetailView + layout improvements
Jan 6, 2026
048fc27
Update of DPP models: revised events,
Jan 14, 2026
63ff920
Update API views following models changes +migrate
Jan 14, 2026
0544879
GUI: transport table interactions; tweaks; bugfixes
Jan 14, 2026
b92fbcb
Documentation! :D
Jan 20, 2026
ce66b3c
New base class: Flow, parent of ProductModel
Jan 26, 2026
bf4dda2
Extend compartment categories (source: Ecoinvent)
Jan 26, 2026
542b52c
Remove old views; layout of home page; .gitignore
Jan 26, 2026
1aa8bbf
Multiple updates to data models and attributes
Jan 28, 2026
243c50d
Small model changes; Remove Flow.name calls;
Feb 3, 2026
c92b4fc
Fix parameter transfer to other forms (PreFillFormMixin)
Feb 3, 2026
13cd916
Methods to publish a DPP of a ProductionLine
Feb 5, 2026
86f8a80
LCA calculation functions
Feb 6, 2026
2caa414
Remove SharedProcess; Add several related_names
Feb 19, 2026
7ee5123
Extend LCA functionalities (work in progress)
Feb 19, 2026
397ef72
Add nested API serializers; Documentation;
Feb 20, 2026
d4e833e
Invert the relation ProductItem - Metadata;
Feb 24, 2026
b04bd91
Improved tests and API documentation
Feb 24, 2026
7a0d947
Test for SustainabilityEvaluationSerializer; Fixes
Feb 24, 2026
93ad249
Test Component- and ConcentrationSerializer;
Mar 3, 2026
85c8da2
Publisher interactive page + 'publish' function
Mar 5, 2026
78535f6
Update LCA functions, add tests; Rearrange tests
Mar 16, 2026
6e2077f
Revised field names to align with conceptual model
Mar 16, 2026
3dff68f
Rename SustainabilityScore.impact_category to impact_indicator
Mar 25, 2026
dbe0a5c
Update publisher_detail template; fix product_detail
Mar 25, 2026
642953f
Big documentation update
Mar 25, 2026
0f5c221
Fixes in documentation formatting
Mar 25, 2026
d7f4a7b
Update requirements
Apr 22, 2026
6a6c70f
New icons for the navigation panel
Apr 22, 2026
7c36755
Analytical functions, eg studying DPP_Structure.xlsx
Apr 23, 2026
92c23f7
Rename index to welcome
Apr 24, 2026
7407aeb
Import instructions and socio-econ indicators
Apr 24, 2026
ea10552
Visualize a serialized DPP as a hierarchical list
May 1, 2026
40a6835
Update product_detail page, add view for ProductProperties
Jun 15, 2026
c870e55
Rename sheet and column names in count_attributes
Jun 15, 2026
0256da2
Introduce user authentication incl. forms, views, accounts
Jun 17, 2026
c58d527
Merge pull request #6 from user-login
SanderNielen Jun 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ cover/
*.mo
*.pot

# Local data and documents
mysite/documents/*

# Django stuff:
*.log
local_settings.py
Expand Down
351 changes: 350 additions & 1 deletion README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion generate_viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def generate_urls(classes, output_file):
if __name__ == "__main__":
# Determine file paths relative to script location
script_dir = os.path.dirname(os.path.abspath(__file__))
models_file = os.path.join(script_dir, 'mysite/api/models.py')
models_file = os.path.join(script_dir, 'mysite/dpp/models.py')
serial_file = models_file.replace('models.py', 'serializers.txt')
view_file = models_file.replace('models.py', 'views.txt')
url_file = models_file.replace('models.py', 'urls.txt')
Expand Down
Empty file added mysite/accounts/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions mysite/accounts/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions mysite/accounts/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class AccountsConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "accounts"
Empty file.
3 changes: 3 additions & 0 deletions mysite/accounts/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
File renamed without changes.
10 changes: 10 additions & 0 deletions mysite/accounts/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from django.urls import path

from .views import SignUpView, ProfileView

app_name = "accounts"

urlpatterns = [
path("signup/", SignUpView.as_view(), name="signup"),
path('profile/', ProfileView.as_view(), name="profile"),
]
21 changes: 21 additions & 0 deletions mysite/accounts/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.models import User
from django.urls import reverse_lazy
from django.views.generic import CreateView, UpdateView


class SignUpView(CreateView):
form_class = UserCreationForm
success_url = reverse_lazy("login")
template_name = "registration/signup.html"

class ProfileView(LoginRequiredMixin, UpdateView):
model = User
fields = ["username", "first_name", "last_name", "email"]
template_name = "registration/user_settings.html"
context_object_name = "user"
success_url = reverse_lazy("dpp:home")

def get_object(self):
return self.request.user
Loading
Loading