env reader

This commit is contained in:
fjrodriguez
2022-12-14 12:44:10 -06:00
parent 7bea944972
commit 09d7edddd6
5 changed files with 96 additions and 40 deletions

View File

@@ -7,6 +7,7 @@ from django.shortcuts import render
from django.core.exceptions import PermissionDenied
from django.http import HttpResponse
from django.test import SimpleTestCase, override_settings
from rest_framework.authtoken.views import obtain_auth_token
def response_error_handler(request, exception=None):
context={}
@@ -21,6 +22,7 @@ def permission_denied_view(request):
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('allauth.urls')),
path('DRF_Token/', obtain_auth_token, name='DRF_Token'),
path('', include('Clientes.urls')),
path('403/', permission_denied_view),
]