Re: [Tutor] web development question

2015-06-21 Thread Alan Gauld

On 21/06/15 20:50, Laura Creighton wrote:

> Its still just Python on the server? Very similar to Flask
> but with a nice web based IDE.
> But the UI (View) is still HTML/Javascript

Maybe I am wrong, but I thought you could write in nothing but
Python and HTML.  I am going to start playing with web2py tomorrow,
so I will find out how wrong I was.


Like most Python web frameworks the server side is all Python
but the Views(UI ) are in HTML which includes any Javascript
you care to write. Web2py doesn't care about that it just sends
it to the browser which interprets it as usual.

So to write a modern-style web app with responsive UI you
still need to wite it in HTML/Javascript using a combination
of HTML5 and JQuery for the UI interactions/validations.

The connection between the web2py server side bits (in the
controllers) is the use of {{...}} markers within the HTML.
Anything inside the double curlies gets translated to HTML
by web2py, inserted into the View html and the View then
gets  and sent out along with the boilerplate in the
layout (html) file.

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] web development question

2015-06-21 Thread Laura Creighton
In a message of Sun, 21 Jun 2015 20:09:54 +0100, Alan Gauld writes:
>On 21/06/15 18:32, Laura Creighton wrote:
>> If you don't know javascript, and want to code your website in
>> python, you might consider using web2py
>>
>> http://www.web2py.com/
>
>
>New one on me, looks interesting having viewed the first 4 videos.
>
>But not sure how it helps with the UI or Javascript?
>Its still just Python on the server? Very similar to Flask
>but with a nice web based IDE.
>But the UI (View) is still HTML/Javascript
>  - and indeed web2py includes JQuery as a standard toolset.

Maybe I am wrong, but I thought you could write in nothing but
Python and HTML.  I am going to start playing with web2py tomorrow,
so I will find out how wrong I was.

Laura

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] web development question

2015-06-21 Thread Alan Gauld

On 21/06/15 18:32, Laura Creighton wrote:

If you don't know javascript, and want to code your website in
python, you might consider using web2py

http://www.web2py.com/



New one on me, looks interesting having viewed the first 4 videos.

But not sure how it helps with the UI or Javascript?
Its still just Python on the server? Very similar to Flask
but with a nice web based IDE.
But the UI (View) is still HTML/Javascript
 - and indeed web2py includes JQuery as a standard toolset.


--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] web development question

2015-06-21 Thread Laura Creighton
If you don't know javascript, and want to code your website in
python, you might consider using web2py

http://www.web2py.com/

With web2py a whole lot of things happen automatically for you
more or less 'by magic'.  Whether you consider this a really
great thing because you didn't want to have to learn all the
low level details or a really terrible thing because you want
absolute control over the low level details depends on you.

Laura

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor