formulario de registro

parent e65877fe
...@@ -14,6 +14,7 @@ import requests, json, unicodedata, sys, base64 ...@@ -14,6 +14,7 @@ import requests, json, unicodedata, sys, base64
import os import os
from geosentinel import APISentinel, polygonToBox from geosentinel import APISentinel, polygonToBox
from mail.views import wsMail, wsMail2 from mail.views import wsMail, wsMail2
from django.contrib import messages
dirname = os.path.dirname(__file__) dirname = os.path.dirname(__file__)
configfile = os.path.join(dirname, '../config/config.json') configfile = os.path.join(dirname, '../config/config.json')
...@@ -657,7 +658,8 @@ def Registration(request): ...@@ -657,7 +658,8 @@ def Registration(request):
User.objects.create_user(username=request.POST['username'], User.objects.create_user(username=request.POST['username'],
email=request.POST['email'], email=request.POST['email'],
password=request.POST['password'], is_active=False) password=request.POST['password'], is_active=False)
message = "procesando" message = "your registration is being processed"
subject = "Registro RepSat" subject = "Registro RepSat"
wsMail2(request.POST['email'],request.POST['username'],message,subject) wsMail2(request.POST['email'],request.POST['username'],message,subject)
return HttpResponse({'message': 'your registration is being processed'}) messages.info(request, 'your registration is being processed')
return HttpResponseRedirect('login')
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