diff --git a/README.md b/README.md index c1b636b6a9883701cb89cb397a2b46dfe02118ba..d6e5d100705f78acf7698562e6de51cfe92a4e17 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ This repository contains the INJECT project. - [Installation and runnning the application](./INSTALLATION.md) - [Deployment](./INSTALLATION.md#deployment) - [Formatting with Black](#formatting-with-black) -- [Django Administration Panel](#django-administration-panel) - [Django-nose unit tests](#django-nose-unit-tests) ### Versioning @@ -57,16 +56,6 @@ poetry run python manage.py runserver To reformat code run `black .`, to check if your code is formatted properly run `black . --check` . -### Django Administration Panel -Django administration panel is a tool for the management of data created by the application. -You can create, edit and update exercise data, however, -note that these actions are in no way equivalent to the graphql queries and mutations, -which means that an exercise cannot be fully set up and started using just the admin panel. - -To access the admin panel, first, run `poetry run python manage.py createsuperuser` and create an admin account. -Then visit http://localhost:8000/inject/api/v1/admin/ and log in. - - ## Django-nose unit tests Project includes unit tests, which generate coverage report with the help of django-nose library. All tests can be run with following command: diff --git a/aai/admin.py b/aai/admin.py deleted file mode 100644 index 8c38f3f3dad51e4585f3984282c2a4bec5349c1e..0000000000000000000000000000000000000000 --- a/aai/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/common_lib/admin.py b/common_lib/admin.py deleted file mode 100644 index 846f6b4061a68eda58bc9c76c36603d1e7721ee8..0000000000000000000000000000000000000000 --- a/common_lib/admin.py +++ /dev/null @@ -1 +0,0 @@ -# Register your models here. diff --git a/exercise/admin.py b/exercise/admin.py deleted file mode 100644 index 4748bfc5046355d697e6b082dfb2b4a9a3d51aa7..0000000000000000000000000000000000000000 --- a/exercise/admin.py +++ /dev/null @@ -1,9 +0,0 @@ -from django.contrib import admin - -from exercise.models import Exercise, Team, TeamInjectState -from exercise_definition.models import Milestone - -admin.site.register(Exercise) -admin.site.register(Team) -admin.site.register(Milestone) -admin.site.register(TeamInjectState) diff --git a/exercise_definition/admin.py b/exercise_definition/admin.py deleted file mode 100644 index e87b689a7fc01bce38995776916717f1ec5e21df..0000000000000000000000000000000000000000 --- a/exercise_definition/admin.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.contrib import admin - -from exercise_definition.models import Definition - -admin.site.register(Definition) diff --git a/running_exercise/admin.py b/running_exercise/admin.py deleted file mode 100644 index 038b752b2e462ca45bcd7b1479b3e8f0555bfd80..0000000000000000000000000000000000000000 --- a/running_exercise/admin.py +++ /dev/null @@ -1,15 +0,0 @@ -from django.contrib import admin - -from running_exercise.models import ( - ActionLog, - InjectSelection, - InjectOption, - EmailThread, - Email, -) - -admin.site.register(ActionLog) -admin.site.register(InjectSelection) -admin.site.register(InjectOption) -admin.site.register(EmailThread) -admin.site.register(Email) diff --git a/ttxbackend/settings.py b/ttxbackend/settings.py index 0ce06a7ef5e3a90d238c89f8ec7ae2a712f9fd3d..d4d2eda8b2af3af4fde3563289dcf080e073d600 100644 --- a/ttxbackend/settings.py +++ b/ttxbackend/settings.py @@ -40,7 +40,6 @@ if hosts := os.environ.get("INJECT_HOST_ADDRESSES"): # Application definition INSTALLED_APPS = [ - "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", diff --git a/ttxbackend/urls.py b/ttxbackend/urls.py index bc8fe93404d682bd7b1fed665fd44e8bf2361817..756492242006f42e1b45a8cbfe66c2fad7b50c4b 100644 --- a/ttxbackend/urls.py +++ b/ttxbackend/urls.py @@ -14,7 +14,6 @@ Including another URLconf 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ -from django.contrib import admin from django.urls import path, include from graphene_django.views import GraphQLView @@ -24,7 +23,6 @@ VERSION = "v1" URL_PREFIX = f"inject/api/{VERSION}/" urlpatterns = [ - path("admin/", admin.site.urls), path( "graphql/", GraphQLView.as_view(graphiql=True, schema=schema), diff --git a/user/admin.py b/user/admin.py deleted file mode 100644 index 54c0d68a43c2d56e1e635ffc53bb6d88cbad8b9c..0000000000000000000000000000000000000000 --- a/user/admin.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.contrib import admin - -from user.models import User - -admin.site.register(User)