Django vs Pylons vs Web2py: registration, invitation, events

I compare these 3 very different structures at several points. I already know that Django has more users and that Pylons is more flexible. I am a bad programmer, so I'm looking for a framework that makes my work easier.

Firstly, I want users to be able to register with their email address: there is no stupid username! Like Facebook, they must add their first and last names. I know that this is not easy to do in the good old Django framework. I tested the django registration application. He does not allow this type of registration! Need to create AUTHENTICATION_BACKEND. This is too complicated for me ... I wonder if there is a simple solution in Pylons. I saw that this is easy to do in Web2Py.

Secondly, I want only invited people to be able to register. I need an email invitation system. I know that it exists in Django, but the django invitation application runs on top of the django registration application, so it requires a username! Is there a simple solution in Pylons or Web2Py?

Thirdly, in my application for social networks, I want people to send messages to other people. Therefore, when they type someone’s name, it should appear as an existing name. A bit like a tag system on Stackoverflow. Is it easy to do in Django, Pylons or Web2py?

+5
source share
2 answers

About web2py:

1) yes, it is easy. You just do:

db.auth_user.insert(username='....', email=email)

and

mail.send(to=email,message='you are registered, please reset password')

2) ,

# store invitations
db.define_table('invitation',Field('token'))

# send invitations
for email in emails_to_invite:
    uuid=str(uuid.uuid4())
    db.invitation.insert(token = uuid)
    mail.send(to=email,message='click %s to register' % URL('register',args=uuid))

# allow them to register
def register():
    if not db(db.invitation.uuid==request.args(0)).count():
        redirect('error')
    delete = lambda form:db(db.invitation.uuid==request.args(0)).delete()
    return dict(form=auth.register(onaccept=delete))

3) , . plugin_wiki html5 websockets web2py/gluon/contrib/comet_messaging.py. , , .

+5

, , - , , javascript , , , .

+2

All Articles