Wanting to learn MVC and rebuild a PHP/SQL messy application

57 views
Skip to first unread message

Muzaffar

unread,
Sep 2, 2013, 11:21:39 AM9/2/13
to web...@googlegroups.com
Hello, I am seeking advice if web2py is a suitable choice for rebuilding a web application that I maintain at work. The web app consists of 7 steps, each being a form for the user to fill out. All the data is save in a database.  A user can come back anytime and complete the steps and update the forms as well.  My concerns for picking up web2py are the following:

1.  If a user doesnt have a section or certain piece of data filled out, then display X and if so, then display Y
2.  How to handle user management, such as cookies so the user can stay logged in
3.  Being able to run simple analytics against the database. For example being able to run a query that says "show me all the users that dont have this X field filled out" or "How many users have an income of over 50,000 dollars"
4.  Being able to style pages with CSS/images

I do know the basics of python and have made some simple programs with it, such as a mini game with Pygame.

Alex

unread,
Sep 2, 2013, 3:11:18 PM9/2/13
to web...@googlegroups.com
Everything you're concerned about is easily possible with web2py. Since you have no specific questions it's hard to give you a more detailed answer.
2. this is done automatically if you use the Auth module
3. you can write native queries or (better) use the DAL, e.g.
db(db.auth_user.income > 50000).count()

I think it's best to read the reference manual and then start with some small examples/tests.

Alex

samuel bonill

unread,
Sep 2, 2013, 6:56:14 PM9/2/13
to web...@googlegroups.com

samuel bonill

unread,
Sep 2, 2013, 8:35:49 PM9/2/13
to web...@googlegroups.com


2013/9/2 samuel bonill <pytho...@gmail.com>

--
 
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/hjQjUkyp1y8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages