Graham - I respectfully disagree, but not from the point of view that you 
may think I am. When looking at frameworks, Django probably pops up as the 
first one for first time Python people that want to expand to the web. 

Django is obscure, tedious and requires to adhere by principles and only 
works for large projects. I understand there is Flask, Pylons, Pyramid, 
Web2py, Webpy and probably more frameworks, than what we are allowed to 
type into as a response character wise. I am also well aware of the fact 
that they offer stability, professional coding techniques and security, 
over dropping code into files as with php/jsp. 

But I am coming from another world. A world that is outside of the hardcore 
development world, that focuses more on end user interfaces, production 
times and aesthetic value. Most companies probably cant offer to pay a 
developer wage, or multiple developers for that matter. A large number of 
internet business are ALSO about SEO value, CSS value and "just deploying a 
website". Why else would entire web platforms such as templatemonster.com 
have such a massive business. Most of their stuff is based on php. Not one 
single framework integration or MVC standard is there. 

For those people Wordpress, Joomla and Drupal is their world. They dont 
even think MVC or argue about Zend Vs Django or Flask Vs Rails (or other 
comparisons). For them the web interface is more simple. And for them the 
choice usually stands to be php and in increasingly rare instances asp. 
Javascript with jQuery takes care of the rest, and this more or less covers 
95% of the web ecosystem. Remaining are the big boys that hires people 
which even knows what mod_wsgi is and why it should be installed, and can 
choose OS and probably a bunch of other stuff. 

So my point here is that offering the power of Python and the simplicity of 
Python to integrate into HTML will open up more doors than some might 
imagine to begin with. Remember that not everyone doing some code in PHP 
nescesarily is using Zend or CakePHP. A large industry is surviving purely 
on fixing, modding, editing and tweaking PHP files from popular CMS's as 
that is what most people are pitching since it is visually understandable 
for end users. 

Jason - Do you by any chance have this for Python 2.7 or can port it over 
to 2.7 without much work? It would really bring a lot of cool things to the 
Python ecosystem. Personally I am happy to see something like this take 
off, as it will allow more people to be introduced to Python/web without 
having to take long tutorials about MVC ideology. Does your mod allow you 
do run extensions such as .psp in the browser? What do you call your 
extension? And is the only logic separation in your HTML the triple quote 
to type Python code? 

On Friday, October 5, 2012 11:57:43 PM UTC+1, Graham Dumpleton wrote:
>
> Template systems which embed Python code directly into HTML is 
> generally regarded as bad practice in the Python world. 
>
> You are better off just learning about one of the more modern template 
> systems. 
>
> I would very much suggest you try Flask and the Jinja2 that it 
> supports. This is going to be the simplest path. 
>
> Graham 
>
> On 6 October 2012 06:50, Marc ThinlineData 
> <[email protected]<javascript:>> 
> wrote: 
> > I was wondering if mod_wsgi eventually allows me to embed Python code 
> > directly into HTML such as mod_python does? 
> > 
> > I have installed mod_wsgi but I came short to finding any topic that 
> pointed 
> > me into a direction for allowing me to directly embedding Python code 
> into 
> > an HTML file. 
> > 
> > What I cant really figure out would be what the extension of the files 
> would 
> > then have to be ( .psp? ) 
> > 
> > And additionally to that, what is the coding syntax going to look like ( 
> {% 
> > %} ) ? 
> > 
> > I was looking at Mako for Python to embed Python code directly into 
> HTML, 
> > but it seems Mako still uses the template approach. And I am not really 
> to 
> > happy about the entire MVC terminology for the small fixes and patches I 
> > need to do on certain websites. 
> > 
> > Hope someone can direct me to an article or tutorial that covers 
> mod_wsgi 
> > with Python embedded into HTML. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "modwsgi" group. 
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msg/modwsgi/-/g6BQdctrAj8J. 
> > To post to this group, send email to [email protected]<javascript:>. 
>
> > To unsubscribe from this group, send email to 
> > [email protected] <javascript:>. 
> > For more options, visit this group at 
> > http://groups.google.com/group/modwsgi?hl=en. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/modwsgi/-/Rs1sqr3JDOgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to