Don't Want Visitor To See Nuttin'
Victor Subervi
victorsubervi at gmail.com
Thu Mar 10 20:19:46 EST 2011
On Thu, Mar 10, 2011 at 8:50 PM, Benjamin Kaplan
<benjamin.kaplan at case.edu>wrote:
> > print "Content-Type: text/html"
> > print
> > print '''
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > <html>
> > <head>
> >
> > and this has worked in the past, so I'm surprised it doesn't work here.
> > Don't understand what I've done wrong, nor why it prints the first line
> to
> > screen.
> > TIA,
> > Beno
> >
>
> Typically, people developing web applications use a framework such as
> Django or TurboGears (or web.py or CherryPy or any of a dozen others)
> rather than just having the CGI scripts print stuff out. Rather than
> having your Python script just print out a page, you make a template
> and then have a templating engine fill in the blanks with the values
> you provide. They'll also protect you from things like Injection
> attacks and cross-site scripting (if you don't know what those are,
> you're probably vulnerable to them).
>
> ok. I'm looking into Django. I'm ok for injections and I think most of my
data is sanitized. Now, can someone please address my question? See above.
TIA,
Beno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110310/8bb2ca2b/attachment-0001.html>
More information about the Python-list
mailing list