Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default usage of datamodel #14

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion defcdb/templates/defcdb/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
<a href="{% url 'webpage:blog_main' %}">Building the defc app</a>
</li>
<li>
<a href="{% url 'datamodel:plate' %}">Data Model</a>
<a href="{% url 'webpage:data_model' %}">Data Model</a>
</li>
</ul>
</li>
Expand Down
20 changes: 0 additions & 20 deletions django_spaghetti/__init__.py

This file was deleted.

21 changes: 0 additions & 21 deletions django_spaghetti/templates/django_spaghetti/meatball.html

This file was deleted.

45 changes: 0 additions & 45 deletions django_spaghetti/templates/django_spaghetti/plate.html

This file was deleted.

8 changes: 0 additions & 8 deletions django_spaghetti/urls.py

This file was deleted.

97 changes: 0 additions & 97 deletions django_spaghetti/views.py

This file was deleted.

1 change: 0 additions & 1 deletion orea/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,4 @@
path("publicrecords/", include("publicrecords.urls", namespace="publicrecords")),
path("3Dmodels/", include("threedmodels.urls", namespace="3Dmodels")),
path("browsing/", include("browsing.urls", namespace="browsing")),
path("datamodel/", include("django_spaghetti.urls", namespace="datamodel")),
]
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ django-crispy-forms
django-filter
django-haystack
django-reversion
django-spaghetti-and-meatballs==0.4.2
django-tables2
djangorestframework
Jinja2
Expand Down
12 changes: 12 additions & 0 deletions webpage/templates/webpage/data_model.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends "defcdb/base.html" %}
{% load static %}
{% block title %} Datenmodell {% endblock %}
{% block content %}
<div class="container">
<style>
#visualization {
height: 800px;
}
</style>
{% include 'django_spaghetti/plate.html' %}
{% endblock %}
7 changes: 7 additions & 0 deletions webpage/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@

from django.urls import path
from . import views
from django_spaghetti.views import Plate


app_name = "webpage"

urlpatterns = [
path("", views.homepage, name="homepage"),
path(
"data-model/",
Plate.as_view(plate_template_name="webpage/data_model.html"),
name="data_model",
),
path("about/", views.about, name="about"),
path("imprint/", views.imprint, name="imprint"),
path(
Expand Down