DjangoPeople Clone

24 views
Skip to first unread message

Relsi Hur

unread,
Oct 6, 2010, 2:07:52 PM10/6/10
to web2py-users
Hi, a make a very very simple clone of http://www.djangopeople.net,
just to practice the development of applications with web2py.

For now, has only the registration and location on the map, later I
will implement the listings of users by country, and others things.

see: http://web2pyople.appspot.com

any suggestion, complaint or criticism is welcome =)

Once again want to thank Massimo for all help.

mdipierro

unread,
Oct 6, 2010, 2:16:00 PM10/6/10
to web2py-users
This is nice and useful. Some suggestions:

1) to the auth_user table add:

Field('city'),Field('country'),Field('bio'),Field('completed_registration','boolean',default=False)

2) make compleed_registration, latitude and longitude writable=False

3) use rpx for login

4) add this

if auth.user and not auth.user.completed_registration:
redirect(URL('default','user/profile')
def compute_lola(form):
from gluon.tools import geocode
form.vars.completed_registration=True
form.vars.longitude, form.vars.latitude = geocode("%s %s" %
(form.vars.city, form.vars.country))
auth.settings.register_onvalidation=compute_lola
auth.settings.profile_onvalidation=compute_lola

This will automate the computation of latitude and longitude + you
will not have to send emails to verify credentials.

Massimo


On Oct 6, 1:07 pm, Relsi Hur <relsi.ram...@gmail.com> wrote:
> Hi, a make a very very simple clone ofhttp://www.djangopeople.net,

Relsi Hur

unread,
Oct 6, 2010, 2:58:23 PM10/6/10
to web2py-users
Great suggestions, I'll make changes.

I initially thought of using only the location of the city and
country, but I need the geographic location of a street or a building
to another project and no need the coutry or city, so I used this
application as a laboratory. ;)

But I can change in this, In djangopeople they use the geonames API
for populate a select list (no database), in we2pyople I make a model
and insert all countries, but I would like to use geonames API to
generate the select fields values. I call the forms of auth just:
{{=form}}, then the next step for me is to learn how customize the
form fields to be generated values dynamically of a JSON or XML
document.

Richard

unread,
Oct 6, 2010, 8:55:46 PM10/6/10
to web2py-users
looks like a good start.

Use routes to make URLs more pretty.

Didn't see a Google Maps marker for my location after registration.

logout -> Logout

Bruno Rocha

unread,
Oct 6, 2010, 9:21:50 PM10/6/10
to web...@googlegroups.com


I registered but I cant see my location on map.

there are another project like that: http://www.appenginepeople.net/users/tag/web2py/



2010/10/6 Relsi Hur <relsi....@gmail.com>

Relsi Hur

unread,
Oct 6, 2010, 11:54:23 PM10/6/10
to web2py-users
Thanks for all feedback.
I fix the point marks bug (not definite yet), and I will fix the
others bugs and apply the suggestions. This weekend I'll improve the
code and put in a public repository for everyone in the community have
access, and for those who want to collaborate with the code.

I noticed that the marking system of coordinates must be improved
immediately, and try to fix it first. More suggestions are welcome.


> there are another project like that:http://www.appenginepeople.net/users/tag/web2py

>
> 2010/10/6 Relsi Hur <relsi.ram...@gmail.com>
Reply all
Reply to author
Forward
0 new messages