se agregó una validación al middleware

se agrego la app para enviar correos
parent 9cb22c50
......@@ -12,7 +12,7 @@ class AuthRequiredMiddleware(object):
# Code to be executed for each request before
# the view (and later middleware) are called.
response = self.get_response(request)
print(request.path_info)
print(request.path_info)
print(reverse('login'))
# if request.path_info == reverse('ws-news-list2'):
......@@ -23,5 +23,5 @@ class AuthRequiredMiddleware(object):
# Code to be executed for each request/response after
# the view is called.
return response
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class MailConfig(AppConfig):
name = 'mail'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment