Ver Fonte

Minor fixies

TonyKurts há 1 ano atrás
pai
commit
4b13b667ee
5 ficheiros alterados com 3 adições e 33 exclusões
  1. 0 8
      .gitignore
  2. 0 9
      core/asgi.py
  3. 1 4
      core/settings.py
  4. 2 3
      core/urls.py
  5. 0 9
      core/wsgi.py

+ 0 - 8
.gitignore

@@ -23,14 +23,6 @@ migrations/
 staticfiles/
 media/
 
-# VSCode
-.vscode
-
-# Python
-__pycache__/
-*.py[cod]
-*$py.class
-
 # Other
 *.sqlite3
 *.*~

+ 0 - 9
core/asgi.py

@@ -1,12 +1,3 @@
-"""
-ASGI config for core project.
-
-It exposes the ASGI callable as a module-level variable named ``application``.
-
-For more information on this file, see
-https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/
-"""
-
 import os
 
 from django.core.asgi import get_asgi_application

+ 1 - 4
core/settings.py

@@ -43,7 +43,6 @@ INSTALLED_APPS = [
     'django_tables2',
     "django.contrib.sites",
     "django.contrib.flatpages",
-    "django.contrib.admindocs",
     "django_extensions",
     'rest_framework',
     'rest_framework.authtoken',
@@ -65,7 +64,6 @@ MIDDLEWARE = [
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.contrib.messages.middleware.MessageMiddleware',
     'django.middleware.clickjacking.XFrameOptionsMiddleware',
-    'django.contrib.admindocs.middleware.XViewMiddleware',        
     "debug_toolbar.middleware.DebugToolbarMiddleware",
 ]
 
@@ -118,7 +116,6 @@ else:
             'NAME': BASE_DIR / 'db.sqlite3',
         }
     }
-    
 
 # Password validation
 # https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators
@@ -399,4 +396,4 @@ SPAGHETTI_SAUCE = {
 GRAPH_MODELS = {
     'all_applications': True,
     'group_models': True,
-}
+}

+ 2 - 3
core/urls.py

@@ -1,12 +1,11 @@
 from django.contrib import admin
+from django.urls import include, path
 from django.conf import settings
-from django.urls import path, include
 from django.conf.urls.static import static
 from django.conf.urls.i18n import i18n_patterns
 
 
 urlpatterns = [
-    path('admin/doc/', include('django.contrib.admindocs.urls')),
     path('admin/', admin.site.urls),
 ] + i18n_patterns(
         path('i18n/', include('django.conf.urls.i18n')),
@@ -24,4 +23,4 @@ if settings.DEBUG:
    urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
    
-   urlpatterns.append(path("__debug__/", include("debug_toolbar.urls")))
+   urlpatterns.append(path("__debug__/", include("debug_toolbar.urls")))

+ 0 - 9
core/wsgi.py

@@ -1,12 +1,3 @@
-"""
-WSGI config for core project.
-
-It exposes the WSGI callable as a module-level variable named ``application``.
-
-For more information on this file, see
-https://docs.djangoproject.com/en/4.1/howto/deployment/wsgi/
-"""
-
 import os
 
 from django.core.wsgi import get_wsgi_application