From 5355fa8a8053d73fe2ca06a3b189ba00f6c30b5a Mon Sep 17 00:00:00 2001 From: Jonas Huber Date: Sat, 14 Dec 2024 20:06:08 +0100 Subject: [PATCH] rename app directory --- {sparql_query => oekg}/__init__.py | 0 {sparql_query => oekg}/admin.py | 0 {sparql_query => oekg}/apps.py | 2 +- {sparql_query => oekg}/migrations/__init__.py | 0 {sparql_query => oekg}/models.py | 0 .../static/sparql_ui/vendor/yasgui-2.5.0/README.md | 0 .../static/sparql_ui/vendor/yasgui-2.5.0/css/yasgui.min.css | 0 .../static/sparql_ui/vendor/yasgui-2.5.0/js/yasgui.min.js | 0 .../templates/sparql_query => oekg/templates/oekg}/main.html | 0 {sparql_query => oekg}/tests.py | 0 {sparql_query => oekg}/urls.py | 0 {sparql_query => oekg}/utils.py | 0 {sparql_query => oekg}/views.py | 4 ++-- 13 files changed, 3 insertions(+), 3 deletions(-) rename {sparql_query => oekg}/__init__.py (100%) rename {sparql_query => oekg}/admin.py (100%) rename {sparql_query => oekg}/apps.py (83%) rename {sparql_query => oekg}/migrations/__init__.py (100%) rename {sparql_query => oekg}/models.py (100%) rename {sparql_query => oekg}/static/sparql_ui/vendor/yasgui-2.5.0/README.md (100%) rename {sparql_query => oekg}/static/sparql_ui/vendor/yasgui-2.5.0/css/yasgui.min.css (100%) rename {sparql_query => oekg}/static/sparql_ui/vendor/yasgui-2.5.0/js/yasgui.min.js (100%) rename {sparql_query/templates/sparql_query => oekg/templates/oekg}/main.html (100%) rename {sparql_query => oekg}/tests.py (100%) rename {sparql_query => oekg}/urls.py (100%) rename {sparql_query => oekg}/utils.py (100%) rename {sparql_query => oekg}/views.py (89%) diff --git a/sparql_query/__init__.py b/oekg/__init__.py similarity index 100% rename from sparql_query/__init__.py rename to oekg/__init__.py diff --git a/sparql_query/admin.py b/oekg/admin.py similarity index 100% rename from sparql_query/admin.py rename to oekg/admin.py diff --git a/sparql_query/apps.py b/oekg/apps.py similarity index 83% rename from sparql_query/apps.py rename to oekg/apps.py index 5727189a1..18f194688 100644 --- a/sparql_query/apps.py +++ b/oekg/apps.py @@ -3,4 +3,4 @@ class SparqlQueryConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" - name = "sparql_query" + name = "oekg" diff --git a/sparql_query/migrations/__init__.py b/oekg/migrations/__init__.py similarity index 100% rename from sparql_query/migrations/__init__.py rename to oekg/migrations/__init__.py diff --git a/sparql_query/models.py b/oekg/models.py similarity index 100% rename from sparql_query/models.py rename to oekg/models.py diff --git a/sparql_query/static/sparql_ui/vendor/yasgui-2.5.0/README.md b/oekg/static/sparql_ui/vendor/yasgui-2.5.0/README.md similarity index 100% rename from sparql_query/static/sparql_ui/vendor/yasgui-2.5.0/README.md rename to oekg/static/sparql_ui/vendor/yasgui-2.5.0/README.md diff --git a/sparql_query/static/sparql_ui/vendor/yasgui-2.5.0/css/yasgui.min.css b/oekg/static/sparql_ui/vendor/yasgui-2.5.0/css/yasgui.min.css similarity index 100% rename from sparql_query/static/sparql_ui/vendor/yasgui-2.5.0/css/yasgui.min.css rename to oekg/static/sparql_ui/vendor/yasgui-2.5.0/css/yasgui.min.css diff --git a/sparql_query/static/sparql_ui/vendor/yasgui-2.5.0/js/yasgui.min.js b/oekg/static/sparql_ui/vendor/yasgui-2.5.0/js/yasgui.min.js similarity index 100% rename from sparql_query/static/sparql_ui/vendor/yasgui-2.5.0/js/yasgui.min.js rename to oekg/static/sparql_ui/vendor/yasgui-2.5.0/js/yasgui.min.js diff --git a/sparql_query/templates/sparql_query/main.html b/oekg/templates/oekg/main.html similarity index 100% rename from sparql_query/templates/sparql_query/main.html rename to oekg/templates/oekg/main.html diff --git a/sparql_query/tests.py b/oekg/tests.py similarity index 100% rename from sparql_query/tests.py rename to oekg/tests.py diff --git a/sparql_query/urls.py b/oekg/urls.py similarity index 100% rename from sparql_query/urls.py rename to oekg/urls.py diff --git a/sparql_query/utils.py b/oekg/utils.py similarity index 100% rename from sparql_query/utils.py rename to oekg/utils.py diff --git a/sparql_query/views.py b/oekg/views.py similarity index 89% rename from sparql_query/views.py rename to oekg/views.py index b5d9b0968..ab6ad3a03 100644 --- a/sparql_query/views.py +++ b/oekg/views.py @@ -5,11 +5,11 @@ from django.views.decorators.http import require_GET from oeplatform.settings import OEKG_SPARQL_ENDPOINT_URL -from sparql_query.utils import validate_sparql_query +from oekg.utils import validate_sparql_query def main_view(request): - response = render(request, "sparql_query/main.html") + response = render(request, "oekg/main.html") response["Content-Type"] = "text/html; charset=utf-8" return response