Merge pull request 'evalution app yaratildi' (#1) from feat/evaluation into main
Some checks failed
Deploy to Production / build-and-deploy (push) Has been cancelled
Some checks failed
Deploy to Production / build-and-deploy (push) Has been cancelled
Reviewed-on: #1
This commit is contained in:
@@ -1,3 +1 @@
|
||||
MODULES = [
|
||||
"core.apps.shared",
|
||||
]
|
||||
MODULES = ["core.apps.shared", "core.apps.evaluation"]
|
||||
|
||||
@@ -2,32 +2,26 @@
|
||||
All urls configurations tree
|
||||
"""
|
||||
|
||||
from config.env import env
|
||||
from django.conf import settings
|
||||
from django.contrib import admin
|
||||
from django.http import HttpResponse
|
||||
from django.urls import include, path, re_path
|
||||
from django.views.static import serve
|
||||
from drf_spectacular.views import (SpectacularAPIView, SpectacularRedocView,
|
||||
SpectacularSwaggerView)
|
||||
from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView, SpectacularSwaggerView
|
||||
|
||||
from config.env import env
|
||||
|
||||
|
||||
def home(request):
|
||||
return HttpResponse("OK")
|
||||
|
||||
################
|
||||
# My apps url
|
||||
################
|
||||
|
||||
urlpatterns = [
|
||||
path("health/", home),
|
||||
path("api/v1/", include("core.apps.accounts.urls")),
|
||||
path("api/", include("core.apps.shared.urls")),
|
||||
path("api/", include("core.apps.evaluation.urls")),
|
||||
]
|
||||
|
||||
|
||||
################
|
||||
# Library urls
|
||||
################
|
||||
urlpatterns += [
|
||||
path("admin/", admin.site.urls),
|
||||
path("accounts/", include("django.contrib.auth.urls")),
|
||||
@@ -35,29 +29,15 @@ urlpatterns += [
|
||||
path("rosetta/", include("rosetta.urls")),
|
||||
path("ckeditor5/", include("django_ckeditor_5.urls"), name="ck_editor_5_upload_file"),
|
||||
]
|
||||
|
||||
################
|
||||
# Project env debug mode
|
||||
################
|
||||
if env.bool("SILK_ENABLED", False):
|
||||
urlpatterns += [
|
||||
|
||||
]
|
||||
urlpatterns += []
|
||||
if env.str("PROJECT_ENV") == "debug":
|
||||
|
||||
################
|
||||
# Swagger urls
|
||||
################
|
||||
urlpatterns += [
|
||||
path("schema/", SpectacularAPIView.as_view(), name="schema"),
|
||||
path("swagger/", SpectacularSwaggerView.as_view(url_name="schema"), name="swagger-ui"),
|
||||
path("redoc/", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),
|
||||
]
|
||||
|
||||
################
|
||||
# Media urls
|
||||
################
|
||||
urlpatterns += [
|
||||
re_path(r"static/(?P<path>.*)", serve, {"document_root": settings.STATIC_ROOT}),
|
||||
re_path(r"media/(?P<path>.*)", serve, {"document_root": settings.MEDIA_ROOT}),
|
||||
re_path("static/(?P<path>.*)", serve, {"document_root": settings.STATIC_ROOT}),
|
||||
re_path("media/(?P<path>.*)", serve, {"document_root": settings.MEDIA_ROOT}),
|
||||
]
|
||||
|
||||
0
core/apps/evaluation/__init__.py
Normal file
0
core/apps/evaluation/__init__.py
Normal file
0
core/apps/evaluation/admin/__init__.py
Normal file
0
core/apps/evaluation/admin/__init__.py
Normal file
6
core/apps/evaluation/apps.py
Normal file
6
core/apps/evaluation/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class ModuleConfig(AppConfig):
|
||||
default_auto_field = "django.db.models.BigAutoField"
|
||||
name = "core.apps.evaluation"
|
||||
0
core/apps/evaluation/enums/__init__.py
Normal file
0
core/apps/evaluation/enums/__init__.py
Normal file
0
core/apps/evaluation/migrations/__init__.py
Normal file
0
core/apps/evaluation/migrations/__init__.py
Normal file
0
core/apps/evaluation/models/__init__.py
Normal file
0
core/apps/evaluation/models/__init__.py
Normal file
0
core/apps/evaluation/serializers/__init__.py
Normal file
0
core/apps/evaluation/serializers/__init__.py
Normal file
0
core/apps/evaluation/tests/__init__.py
Normal file
0
core/apps/evaluation/tests/__init__.py
Normal file
9
core/apps/evaluation/urls.py
Normal file
9
core/apps/evaluation/urls.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.urls import path, include
|
||||
from rest_framework.routers import DefaultRouter
|
||||
|
||||
router = DefaultRouter()
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path("", include(router.urls)),
|
||||
]
|
||||
0
core/apps/evaluation/views/__init__.py
Normal file
0
core/apps/evaluation/views/__init__.py
Normal file
Reference in New Issue
Block a user