bitlabstudio / django-registration-email Goto Github PK
View Code? Open in Web Editor NEW*DISCONTINUED* A custom registration and authorization backend that allows user signup via email.
License: The Unlicense
*DISCONTINUED* A custom registration and authorization backend that allows user signup via email.
License: The Unlicense
I followed the steps from "How to use a custom form", but after that,
when user is registering (with first_name and last_name fields ) account is automatically activate and activation email is not send.
Is it bug or wrong configuration?
hi i have this working on local machine when im on accounts/register and try create a new user i get this error
^***************************+
error at /accounts/register/
[Errno 10061] No connection could be made because the target machine actively refused it
Request Method: POST
Request URL: http://127.0.0.1:8000/accounts/register/
Django Version: 1.5
Exception Type: error
Exception Value:
[Errno 10061] No connection could be made because the target machine actively refused it
Exception Location: C:\Python27\lib\socket.py in create_connection, line 571
Python Executable: C:\Python27\python.exe
Python Version: 2.7.3
Python Path:
['C:\Users\ujake\impromusic\impromusic',
'C:\Python27\lib\site-packages\distribute-0.6.35-py2.7.egg',
'C:\Python27\lib\site-packages\django_audiotracks-0.2.1-py2.7.egg',
'C:\Python27\lib\site-packages\mutagen-1.20-py2.7.egg',
'C:\Python27\lib\site-packages\django_registration_email-0.5-py2.7.egg',
'C:\Windows\system32\python27.zip',
'C:\Python27\DLLs',
'C:\Python27\lib',
'C:\Python27\lib\plat-win',
'C:\Python27\lib\lib-tk',
'C:\Python27',
'C:\Python27\lib\site-packages',
'C:\Python27\lib\site-packages\PIL',
'C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg-info']
Server time: Tue, 26 Mar 2013 03:55:14 +0100
Traceback Switch to copy-and-paste view
C:\Python27\lib\site-packages\django\core\handlers\base.py in get_response
response = callback(request, *callback_args, **callback_kwargs)
...
▶ Local vars
C:\Python27\lib\site-packages\registration\views.py in register
new_user = backend.register(request, **form.cleaned_data)
...
▶ Local vars
C:\Python27\lib\site-packages\registration\backends\default\__init__.py in register
password, site)
...
▶ Local vars
C:\Python27\lib\site-packages\django\db\transaction.py in inner
return func(*args, **kwargs)
...
▶ Local vars
C:\Users\ujake\impromusic\impromusic\impromusic\apps\registration\models.py in create_inactive_user
registration_profile.send_activation_email(site)
...
▶ Local vars
C:\Users\ujake\impromusic\impromusic\impromusic\apps\registration\models.py in send_activation_email
self.user.email_user(subject, message, settings.DEFAULT_FROM_EMAIL)
...
▶ Local vars
C:\Python27\lib\site-packages\django\contrib\auth\models.py in email_user
send_mail(subject, message, from_email, [self.email])
...
▶ Local vars
C:\Python27\lib\site-packages\django\core\mail\__init__.py in send_mail
connection=connection).send()
...
▶ Local vars
C:\Python27\lib\site-packages\django\core\mail\message.py in send
return self.get_connection(fail_silently).send_messages([self])
...
▶ Local vars
C:\Python27\lib\site-packages\django\core\mail\backends\smtp.py in send_messages
new_conn_created = self.open()
...
▶ Local vars
C:\Python27\lib\site-packages\django\core\mail\backends\smtp.py in open
local_hostname=DNS_NAME.get_fqdn())
...
▶ Local vars
C:\Python27\lib\smtplib.py in __init__
(code, msg) = self.connect(host, port)
...
▶ Local vars
C:\Python27\lib\smtplib.py in connect
self.sock = self._get_socket(host, port, self.timeout)
...
▶ Local vars
C:\Python27\lib\smtplib.py in _get_socket
return socket.create_connection((port, host), timeout)
...
▶ Local vars
C:\Python27\lib\socket.py in create_connection
raise err
...
▶ Local vars
Do i have to configure the email server on settings.py for use your app?
This is what the rendered password reset email looks like for me.
I'm a little baffled by the sentence with the hashed username showing up in the email. I don't see it in the template that I believe to otherwise be the source: https://github.com/bitmazk/django-registration-email/blob/master/registration_email/templates/registration/password_reset_email.html
Can anyone clue me in to how that sentence gets into the rendered email and how I'd get rid of it or replace the hashed username with the user's email?
-Nate
rendered email below:
You're receiving this email because you requested a password reset for your user account at [site name].
Please go to the following page and choose a new password:
http://[site domain]/accounts/password/reset/confirm/3-3lg-ae24b0904f4c874249a0/
Your username, in case you've forgotten: e81a516598ce748b8c5b17bde8db60
Thanks for using our site!
The [site name] team
on register page i see form with fields:
Email:
Password:
Password (repeat):
Your name:
All fields visible
but after 100500 unsuccessful enter name i open source code of forms.py and found it:
data = self.cleaned_data
if data.get('your_name'):
# Bot protection. The name field is not visible for human users.
raise forms.ValidationError(_('Please enter a valid name.'))
if your_name is fake field why i see it in form?
Hi,
I saw that the username will be computed as a md5 hexdigest.
However, is it recalculated any time the email address changes?
I changed it in the admin and I did not see the username change.
It can lead to a problem at some point if people update their email address but the username md5 hexdigest are still based on the old email addresses.
What do you think?
Thanks
Hi, are this repo Discontinued?
I could do it. Can you pull it if its finished?
I'm excited to have found this package for its core purpose of using email address as Django username. I'm also interested in collecting the user's name during registration. Do you have any advice on how to alter the form, but still be able to incorporate future versions of django-registration-email?
The readme says to install with:
pip install -e https://github.com/bitmazk/django-registration-email#egg=registration_email
but it should be:
pip install -e git://github.com/bitmazk/django-registration-email#egg=registration_email
If you run it the way you have it you will get the below error.
--editable=https://github.com/bitmazk/django-registration-email#egg=registration_email should be formatted with svn+URL, git+URL, hg+URL or bzr+URL
Exception information:
Traceback (most recent call last):
File "/home/johnny/.virtualenvs/elasticiti/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/home/johnny/.virtualenvs/elasticiti/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 217, in run
InstallRequirement.from_editable(name, default_vcs=options.default_vcs))
File "/home/johnny/.virtualenvs/elasticiti/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 65, in from_editable
name, url = parse_editable(editable_req, default_vcs)
File "/home/johnny/.virtualenvs/elasticiti/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 1318, in parse_editable
'--editable=%s should be formatted with svn+URL, git+URL, hg+URL or bzr+URL' % editable_req)
InstallationError: --editable=https://github.com/bitmazk/django-registration-email#egg=registration_email should be formatted with svn+URL, git+URL, hg+URL or bzr+URL
Issue Affects:
auth_urls.py
basic/urls.py
default/urls.py
I wasn't sure how to make these changes and submit myself.
Just remove '.defaults' from the "from django.conf.urls.defaults ..." lines
The readme says to install with:
pip install -e https://github.com/bitmazk/django-registration-email#egg=registration_email
but it should be:
pip install -e git://github.com/bitmazk/django-registration-email#egg=registration_email
If you run it the way you have it you will get the below error.
--editable=https://github.com/bitmazk/django-registration-email#egg=registration_email should be formatted with svn+URL, git+URL, hg+URL or bzr+URL
Exception information:
Traceback (most recent call last):
File "/home/johnny/.virtualenvs/elasticiti/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/home/johnny/.virtualenvs/elasticiti/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 217, in run
InstallRequirement.from_editable(name, default_vcs=options.default_vcs))
File "/home/johnny/.virtualenvs/elasticiti/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 65, in from_editable
name, url = parse_editable(editable_req, default_vcs)
File "/home/johnny/.virtualenvs/elasticiti/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 1318, in parse_editable
'--editable=%s should be formatted with svn+URL, git+URL, hg+URL or bzr+URL' % editable_req)
InstallationError: --editable=https://github.com/bitmazk/django-registration-email#egg=registration_email should be formatted with svn+URL, git+URL, hg+URL or bzr+URL
Hi;
I am getting this error when I want to click reset password email.
password_reset_confirm() got an unexpected keyword argument 'uidb36'
What is wrong?
During registration, the user is presented with an unnecessary 'Your name' field.
Hi,
Thanks for the registration-email framework. Very useful!
I ran into a problem when trying to login. When using email address and password to login, the framework does not recognize the credentials. When I use username directly in the email field and the password, the login works successfully.
Has this issue been reported previously? Shouldn't there be a code snippet that retrieves the username based on the email id provided and supplies it for logging in.
Thanks!
Hi,
I got this error message when I try to get to http://10.0.0.51:8000/accounts/password/reset/
Reverse for 'password_reset_done' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
It seems that the names of the views are prefixed by "auth" while they are not in django.contrib.auth. Example: password_reset_done vs auth_password_reset_done
Thanks
I think updating a user's email address is as simple as editing the email property of django's User object and that seems to work - django-registration-email seems to recognize the udpated email address upon the next authentication. If correct, I think it'd be helpful to share with others. Where would be a good place to include that, in the FAQ?
Something like:
How do I allow users to update their email address?
Have users update their email address through a form field, overwriting the email property of django's User object.
Installed both apps with pip. Followed instructions in your readme file. It seems that your app is not compatible with the class based views of django-registration?
here the error:
ImportError at /accounts/register/
cannot import name activate
and the line where the import is not working:
.../src/registration-email/registration_email/backends/default/urls.py in
6. from registration.views import activate, register
Recommended transition to hashlib instead.
I am using a custom user model and trying to use django-registration-email.
However, it gives me the following error:-
Manager isn't available; User has been swapped for 'thursdayfootball.Player'
Obviously, Player is my user model.
Is it possible to use this with a custom user model? If so, what do I need to do?
Hi all,
I want to retrieve information about all the vms running on ESX server. I have found two modules suitable for my requirement. pysphere and psphere. But when I try to connect to the remote server it throws me the following error.
Can anyone please help me to resolve this issue. Thanks in advance.
-Vinay Kalyankar.
When using latest pull of django-registration-email, with django-registration 1.0 (latest as of this writeup), on Django 1.5.1, I'm getting the following exception:
File "/home/jeryn/..../registration_email/backends/default/urls.py", line 6, in
from registration.views import activate, register
ImportError: cannot import name activate
I think this is because the latest django-registration moved to class-based views. Can someone release a fix for this?
Hello,
Thanks for making this package available. I get the following error after running "python manage.py syncdb" (and before that following all the installation instructions until that point in the README file):
django.core.exceptions.ImproperlyConfigured: ImportError registration: No module named registration
I am using django 1.5 with python 2.7, and using virtualenv, on a Mac OS X 10.8.3.
Could you please advise? Many thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.