From 2bfc0d3d75731ca516d925e5bfcd2b88fcf55ad0 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Fri, 15 Mar 2024 16:25:13 +0100 Subject: [PATCH] create dummy pins app --- scipost_django/SciPost_v1/settings/base.py | 1 + scipost_django/pins/__init__.py | 0 scipost_django/pins/admin.py | 6 ++++++ scipost_django/pins/apps.py | 9 +++++++++ scipost_django/pins/migrations/__init__.py | 0 scipost_django/pins/models.py | 6 ++++++ scipost_django/pins/tests.py | 6 ++++++ scipost_django/pins/views.py | 6 ++++++ 8 files changed, 34 insertions(+) create mode 100644 scipost_django/pins/__init__.py create mode 100644 scipost_django/pins/admin.py create mode 100644 scipost_django/pins/apps.py create mode 100644 scipost_django/pins/migrations/__init__.py create mode 100644 scipost_django/pins/models.py create mode 100644 scipost_django/pins/tests.py create mode 100644 scipost_django/pins/views.py diff --git a/scipost_django/SciPost_v1/settings/base.py b/scipost_django/SciPost_v1/settings/base.py index f5e39a726..53d1484f8 100644 --- a/scipost_django/SciPost_v1/settings/base.py +++ b/scipost_django/SciPost_v1/settings/base.py @@ -132,6 +132,7 @@ INSTALLED_APPS = [ "ontology", "organizations", "petitions", + "pins", "preprints", "proceedings", "production", diff --git a/scipost_django/pins/__init__.py b/scipost_django/pins/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/scipost_django/pins/admin.py b/scipost_django/pins/admin.py new file mode 100644 index 000000000..6a7921658 --- /dev/null +++ b/scipost_django/pins/admin.py @@ -0,0 +1,6 @@ +__copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)" +__license__ = "AGPL v3" + +from django.contrib import admin + +# Register your models here. diff --git a/scipost_django/pins/apps.py b/scipost_django/pins/apps.py new file mode 100644 index 000000000..f43284cd0 --- /dev/null +++ b/scipost_django/pins/apps.py @@ -0,0 +1,9 @@ +__copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)" +__license__ = "AGPL v3" + +from django.apps import AppConfig + + +class PinsConfig(AppConfig): + default_auto_field = "django.db.models.BigAutoField" + name = "pins" diff --git a/scipost_django/pins/migrations/__init__.py b/scipost_django/pins/migrations/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/scipost_django/pins/models.py b/scipost_django/pins/models.py new file mode 100644 index 000000000..dbbe360b1 --- /dev/null +++ b/scipost_django/pins/models.py @@ -0,0 +1,6 @@ +__copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)" +__license__ = "AGPL v3" + +from django.db import models + +# Create your models here. diff --git a/scipost_django/pins/tests.py b/scipost_django/pins/tests.py new file mode 100644 index 000000000..7503e9a3c --- /dev/null +++ b/scipost_django/pins/tests.py @@ -0,0 +1,6 @@ +__copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)" +__license__ = "AGPL v3" + +from django.test import TestCase + +# Create your tests here. diff --git a/scipost_django/pins/views.py b/scipost_django/pins/views.py new file mode 100644 index 000000000..a957654bf --- /dev/null +++ b/scipost_django/pins/views.py @@ -0,0 +1,6 @@ +__copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)" +__license__ = "AGPL v3" + +from django.shortcuts import render + +# Create your views here. -- GitLab