gggg
This commit is contained in:
@@ -18,7 +18,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||||||
SECRET_KEY = 'django-insecure-5*mm&uf5zq@t6nrs_5z8-_qtyapm^3&yz^wqqkc_a!v(!ulj-^'
|
SECRET_KEY = 'django-insecure-5*mm&uf5zq@t6nrs_5z8-_qtyapm^3&yz^wqqkc_a!v(!ulj-^'
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = False
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
|
|||||||
@@ -93,9 +93,9 @@ def send_timbres_Email(request):
|
|||||||
mail = EmailMessage(subject,message,settings.EMAIL_HOST_USER,[email])
|
mail = EmailMessage(subject,message,settings.EMAIL_HOST_USER,[email])
|
||||||
mail.attach(filename='Timbres.xls',content=files.getbuffer(),mimetype='application/vnd.ms-excel')
|
mail.attach(filename='Timbres.xls',content=files.getbuffer(),mimetype='application/vnd.ms-excel')
|
||||||
mail.send()
|
mail.send()
|
||||||
print('SE armo')
|
messages.success(request, 'Email Enviado correctamente.')
|
||||||
except:
|
except:
|
||||||
print('Error ')
|
messages.error(request, 'Email no se envio correctamente.')
|
||||||
return redirect('index')
|
return redirect('index')
|
||||||
# def send_timbres_Email(request):
|
# def send_timbres_Email(request):
|
||||||
# RFC = request.GET.get('RFC', None)
|
# RFC = request.GET.get('RFC', None)
|
||||||
|
|||||||
Reference in New Issue
Block a user