How to test email-verification in django-registration-redux application on localhost?

140 views
Skip to first unread message

akshat

unread,
Jun 9, 2015, 9:01:57 AM6/9/15
to django...@googlegroups.com
I have made an django app which uses Django-Registration-redux application to registration and email verification of users.I am using 'Sites' framework also.How ever when I click register button email is not sent but instead I get this error message - 

You're using the Django "sites framework" without having set the SITE_ID setting. Create a site in your database and set the SITE_ID setting or pass a request to Site.objects.get_current() to fix this error

I want to add localhost:8000 to the django_site table in database.What is the right way to add localhost to sites and test email-verification here?

Thanks

Luis Zárate

unread,
Jun 9, 2015, 11:04:06 AM6/9/15
to django...@googlegroups.com
Put  SITE_ID = 1 in your settings file to fix this error


2015-06-09 7:01 GMT-06:00 akshat <akshatw...@gmail.com>:
You're using the Django "sites framework" without having set the SITE_ID setting. Create a site in your database and set the SITE_ID setting or pass a request to Site.objects.get_current() to fix this error




--
"La utopía sirve para caminar" Fernando Birri


Reply all
Reply to author
Forward
0 new messages