Web Development Introduction Based On Web2py

568 views
Skip to first unread message

rock...@googlemail.com

unread,
Dec 20, 2011, 1:33:21 PM12/20/11
to web...@googlegroups.com
I published the first 3 chapters of my web development tutorial at http://killer-web-development.com

It's aimed at total web development beginners and uses web2py as framework.

The idea was to write a web development tutorial based on web2py, because web2py is the easiest
to use web development solution - maybe I can rescue a few people from starting with PHP.

The book aims to be an mixture of railstutorial.org and the Head First series. Lots of images and
very low level subject matter. A the end readers will develop a full microblogging service.

I would appreciate any feedback.

Best
marco

Alfonso de la Guarda

unread,
Dec 20, 2011, 1:35:31 PM12/20/11
to web...@googlegroups.com
Hi,

Great! Thanks.... However some missing links, example:
http://killer-web-development.com/section/2/2


Saludos,

--------------------------------
Alfonso de la Guarda
Centro Open Source(COS)
http://www.cos-la.net
http://alfonsodg.net
Twitter: @alfonsodg
Redes sociales: alfonsodg
   Telef. 991935157
1024D/B23B24A4
5469 ED92 75A3 BBDB FD6B  58A5 54A1 851D B23B 24A4

Rahul

unread,
Dec 21, 2011, 12:01:44 AM12/21/11
to web2py-users
This site [http://killer-web-development.com ] isn't accessible.

Rahul


On Dec 20, 11:35 pm, Alfonso de la Guarda <alfons...@gmail.com> wrote:
> Hi,
>
> Great! Thanks.... However some missing links, example:http://killer-web-development.com/section/2/2
>
> Saludos,
>
> --------------------------------
> Alfonso de la Guarda
> Centro Open Source(COS)http://www.cos-la.nethttp://alfonsodg.net

Gerd

unread,
Dec 21, 2011, 2:34:37 AM12/21/11
to web...@googlegroups.com
Hi!

For me it is reachable

Regards
Gerd

chandrakant kumar

unread,
Dec 21, 2011, 2:47:46 AM12/21/11
to web...@googlegroups.com
very nice effort, awaiting further chapters.

Khalil KHAMLICHI

unread,
Dec 21, 2011, 3:41:33 AM12/21/11
to web...@googlegroups.com

Looks nice to the eyes, looks interesting to the mind.
Keep going.

Martín Mulone

unread,
Dec 21, 2011, 5:54:59 AM12/21/11
to web...@googlegroups.com
good job marco.

2011/12/21 Khalil KHAMLICHI <khamlich...@gmail.com>

Looks nice to the eyes, looks interesting to the mind.
Keep going.




--

carlo

unread,
Dec 21, 2011, 9:45:03 AM12/21/11
to web...@googlegroups.com
this is remarkable! I hope  to see next chapters very soon..thank you

Chandrakant Kumar

unread,
Dec 21, 2011, 10:35:29 AM12/21/11
to web...@googlegroups.com
In the section 3.2, where you create the .hgignore file, why did you put
'*' in there, that will make hg ignore all files in current directory.

rock...@googlemail.com

unread,
Dec 21, 2011, 11:52:08 AM12/21/11
to web...@googlegroups.com
Thats a typo, it should be *~ for editor backup files.

Thank you

rock...@googlemail.com

unread,
Dec 21, 2011, 12:01:46 PM12/21/11
to web...@googlegroups.com
actually it is a problem with markmin plugin, it kills the ~

rock...@googlemail.com

unread,
Dec 21, 2011, 12:04:08 PM12/21/11
to web...@googlegroups.com
Maybe a view dns server do not know about the domain. The domain is hosted in Germany and the website on Fluxflex (this means Amazon cloud?).

rock...@googlemail.com

unread,
Dec 21, 2011, 12:04:39 PM12/21/11
to web...@googlegroups.com
Should go away, when all dns servers are updated.

Daniel Aguayo Catalán

unread,
Dec 21, 2011, 1:25:50 PM12/21/11
to web...@googlegroups.com
ma...@rockiger.com escribió:

> Should go away, when all dns servers are updated.
Hi,

at http://killer-web-development.com/section/1/3 shows a diagram that
try to explain the MVC pattern that says:

[USER <-> CONTROLLER <-> VIEW, USER <-> CONTROLLER <-> MODEL <- DATABASE]


...but I think it should be as follows:

[USER <-> VIEW <-> CONTROLLER <-> MODEL <-> DATABASE]

...because user just interact directly with Views and these make the
request to controllers and/or models. Or am I wrong?

kasapo

unread,
Dec 21, 2011, 3:39:39 PM12/21/11
to web2py-users
Another way of looking at it is that the user is presented with views
(or more accurately, HTML rendered from a view by a controller using
the models) but interacts with controllers. Whenever a user clicks on
an application link on a view, the browser sends a request and the
controller handles it by dispatching data to a view and sending not
the view, but rather the rendered HTML. If you have more interactive
websites with javascript and ajax calls, then you are "interacting"
with the rendered HTML or view, but even then AJAX calls to a web2py
app talk to a controller that then sends a response.

I guess it depends on what you mean by "interacts," but from the
Marco's guide, he defines interaction as the HTTP request/response
cycle (e.g. clicking on a link and asking for a resource):

"When John's customers interact with a web2py-application via a
browser, they send a request, which is received by the web server and
passsed on to a controller."

So I think the way he defines it is really best, but it's good to
discuss these things I think.

Anyway, that's just my $0.02.

Good job Marco!

I like the graphics with the "penciled in" arrows. Also I had no idea
you could get a hosted app on fluxflex for free -- that's awesome.

On Dec 21, 12:25 pm, Daniel Aguayo Catalán <daniel.agu...@gmail.com>
wrote:
> ma...@rockiger.com escribió:> Should go away, when all dns servers are updated.
>
> Hi,
>
> athttp://killer-web-development.com/section/1/3shows a diagram that

kasapo

unread,
Dec 21, 2011, 4:10:22 PM12/21/11
to web2py-users
Found an error with the links in the "Complete API" section ( /api )

e.g.
http://killer-web-development.com/docstring/SQLFORM

Any request that goes to docstring seems to generate an error.

Rock on and keep those chapters coming!

On Dec 20, 12:33 pm, "ma...@rockiger.com" <rocki...@googlemail.com>
wrote:
> I published the first 3 chapters of my web development tutorial athttp://killer-web-development.com

mikech

unread,
Dec 21, 2011, 5:58:32 PM12/21/11
to web...@googlegroups.com
Bookmarked!  I like the approach as well.

Andrew

unread,
Dec 21, 2011, 10:44:22 PM12/21/11
to web2py-users
Also consider the picture in the Introduction of the book, where the
request first goes to the Model before going to the Controller. This
picture has helped me understand how the Model fits in and where the
request object comes from.

I think it would be confusing to change the order around, but it
depends if you're trying to show; how it works, or conceptually what
the user interaction is.

Having said that, it looks great ! I like the "Head First" style
of explanation, so I've bookmarked it too !
> > athttp://killer-web-development.com/section/1/3showsa diagram that
> > try to explain the MVC pattern that says:
>
> > [USER <-> CONTROLLER <-> VIEW,  USER <-> CONTROLLER <-> MODEL <- DATABASE]
>
> > ...but I think it should be as follows:
>
> > [USER <-> VIEW <-> CONTROLLER <-> MODEL <-> DATABASE]
>
> > ...because user just interact directly with Views and these make the
> > request to controllers and/or models. Or am I wrong?- Hide quoted text -
>
> - Show quoted text -

Massimo Di Pierro

unread,
Dec 21, 2011, 11:29:05 PM12/21/11
to web2py-users
It is really great. I am planning to link it from the main web site
***

Massimo

PS. *** will SOPA allow it? Or can I get in trouble?

On Dec 20, 12:33 pm, "ma...@rockiger.com" <rocki...@googlemail.com>
wrote:
> I published the first 3 chapters of my web development tutorial athttp://killer-web-development.com

rock...@googlemail.com

unread,
Dec 22, 2011, 2:12:14 PM12/22/11
to web...@googlegroups.com
I don't think so ;). This was meant sarcasticly, right?

rock...@googlemail.com

unread,
Dec 22, 2011, 2:12:55 PM12/22/11
to web...@googlegroups.com
I have kicked the docstrings. They belong to web2py.com

Massimo Di Pierro

unread,
Dec 22, 2011, 2:42:40 PM12/22/11
to web2py-users
That was a joke. You can use any docstring and image from the web site
or web2py itself.

P.S. SOPA is a new proposed law in US that prohibits linking any
domain which may contain copied copyrighted material

On Dec 22, 1:12 pm, "ma...@rockiger.com" <rocki...@googlemail.com>
wrote:

rock...@googlemail.com

unread,
Jan 8, 2012, 12:33:14 PM1/8/12
to web...@googlegroups.com
Chapter 4 is online: it contains planning for the sample app and is intruducing Selenium for functional testing.

Best
marco

chandrakant kumar

unread,
Jan 8, 2012, 2:22:24 PM1/8/12
to web...@googlegroups.com
this is so cool.

BlueShadow

unread,
Mar 26, 2012, 5:04:52 PM3/26/12
to web...@googlegroups.com
Hey Marco,
great tutorial but I got stuck at section 4.3 when we write the first test. when startng the funktional_tests.py! The Program writes ran 0 Tests! 0.0 seconds. Not even the firefox is opening. Anyone knows whats wrong. or what I could do?
running Win7 python 2.7 selenium 2.20
thanks for your help.

Richard Vézina

unread,
Jul 5, 2012, 1:53:13 PM7/5/12
to web...@googlegroups.com
Still down!

Richard

On Thu, Jul 5, 2012 at 2:27 AM, dave <arif...@gmail.com> wrote:
the site is down

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Apache/2.2.16 (Debian) Server at killer-web-development.com Port 80

Luc Chase

unread,
Jul 6, 2012, 6:18:40 AM7/6/12
to web...@googlegroups.com
Marco,
What does 'very low level' subject matter mean in this context?
Is that to mean 'very detailed'?

--
Luc.

On Tuesday, 20 December 2011 18:33:21 UTC, ma...@rockiger.com wrote:
I published the first 3 chapters of my web development tutorial at http://killer-web-development.com

Luc Chase

unread,
Jul 6, 2012, 9:01:59 AM7/6/12
to web...@googlegroups.com

OK so you mean from beginner level. Thanks. I as soon as the sites is accessible again I will try to give you good feedback.

Luther Goh Lu Feng

unread,
Jul 7, 2012, 3:22:43 PM7/7/12
to web...@googlegroups.com
Still down :(

黄祥

unread,
Jun 4, 2013, 5:49:56 PM6/4/13
to web...@googlegroups.com
unreachable. it return :

502 Bad Gateway


nginx/1.4.0
best regard

Vinicius Assef

unread,
Jun 6, 2013, 2:04:13 PM6/6/13
to web2py
The site is back again.

On Thu, Jun 6, 2013 at 2:31 AM, Sundar Nadimpalli <sun...@signumsol.com> wrote:
> Hi Marco,
> I have a heard lot of praise for your tutorial and can't wait to get
> started. But your site is down and returns a 502. I know that you may be
> busy with other things, but still I would like to request you to consider
> bringing the site back up.
>
> Thanks,
> Sundar
>
> On Wednesday, December 21, 2011 12:03:21 AM UTC+5:30, ma...@rockiger.com
> wrote:
>>
>> I published the first 3 chapters of my web development tutorial at
>> http://killer-web-development.com
>>
>> It's aimed at total web development beginners and uses web2py as
>> framework.
>>
>> The idea was to write a web development tutorial based on web2py, because
>> web2py is the easiest
>> to use web development solution - maybe I can rescue a few people from
>> starting with PHP.
>>
>> The book aims to be an mixture of railstutorial.org and the Head First
>> series. Lots of images and
>> very low level subject matter. A the end readers will develop a full
>> microblogging service.
>>
>> I would appreciate any feedback.
>>
>> Best
>> marco
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Sundar Nadimpalli

unread,
Jun 6, 2013, 2:07:31 PM6/6/13
to web...@googlegroups.com
Wow. Very happy to note that.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sundar Ramanujam Nadimpalli
Signum Product Solutions
Ph: +91-80-23453248
Skype: sundar.nadimpalli


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/pL9L2kgdGxA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

Sundar Nadimpalli

unread,
Jun 12, 2013, 3:28:09 AM6/12/13
to web...@googlegroups.com
Hi Folks,

I am going through this excellent tutorial.

I am stuck at this section: http://killer-web-development.com/section/5/4.

The section tells me the create a menu. Which I did. In the menu all the links work fine. Ex. the help menu goes to: http://127.0.0.1:8000/tukker/default/help. As expected.

But the login menu goes to: http://127.0.0.1:8000/default/user/login and this throws up a invalid request. My menu.py looks like this:
response.menu = [
    (T('Home'), False, URL('default', 'index'), []),
    (T('Help'), False, URL('default', 'help'), []),
    (T('Login'), False, URL('default', 'user', 'login'), []),
    (T('Privacy'), False, URL('default', 'privacy'), []),
]

Am I doing something wrong? Please advice.

Regards,
Sundar


On Thursday, June 6, 2013 11:37:31 PM UTC+5:30, Sundar Nadimpalli wrote:
Wow. Very happy to note that.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--

---
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/pL9L2kgdGxA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.

Johann Spies

unread,
Jun 12, 2013, 5:15:10 AM6/12/13
to web...@googlegroups.com
Try changing the third line in to

  (T('Login'), False, URL('default', 'user'), []),

and see whether it makes a difference.

Do you still have a 'def user():' function in your default controller?

Regards
Johann

Do


To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

Sundar Nadimpalli

unread,
Jun 12, 2013, 5:33:09 AM6/12/13
to web...@googlegroups.com

Thanks for the reply. I did what you suggested but I get an error:

list index out of range

The def user(): function is there in the default controller. If I manually change the URL to: http://127.0.0.1:8000/tukker/default/user/login. I get the right page.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sundar Ramanujam Nadimpalli



To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

Johann Spies

unread,
Jun 12, 2013, 5:55:30 AM6/12/13
to web...@googlegroups.com
On 12 June 2013 11:33, Sundar Nadimpalli <sun...@signumsol.com> wrote:

Thanks for the reply. I did what you suggested but I get an error:

list index out of range

The def user(): function is there in the default controller. If I manually change the URL to: http://127.0.0.1:8000/tukker/default/user/login. I get the right page.


Then  
(T('Login'), False, URL('default', 'user/login'), []),
 
should work.

Regards
Johann
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sundar Nadimpalli

unread,
Jun 12, 2013, 6:00:37 AM6/12/13
to web...@googlegroups.com
Thank you very much. That worked.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sundar Ramanujam Nadimpalli



--
 
---
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/pL9L2kgdGxA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages