Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78251

Re: Flask and Python 3

From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: Flask and Python 3
Date 2014-09-23 21:48 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <lvsps8$64h$1@reader1.panix.com> (permalink)
References <mailman.14288.1411507982.18130.python-list@python.org>

Show all headers | View raw


In <mailman.14288.1411507982.18130.python-list@python.org> Juan Christian <juan0christian@gmail.com> writes:

> @app.route('/')
> def index():
> return 'Hello World'

As posted, your code is not indented.  Is this literally how your code
looks?

> {% block content %}{% endlbock content %}

"endlbock" is certainly a typo.

> I typed everything correct,acessing http://localhost:8000 works, but
> http://localhost:8000/blog/post/ gives me ' 500 Internal Server Error '.
> Why?

Have you looked in the http server error log for an explanatory error
message?

-- 
John Gordon         Imagine what it must be like for a real medical doctor to
gordon@panix.com    watch 'House', or a real serial killer to watch 'Dexter'.

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Flask and Python 3 Juan Christian <juan0christian@gmail.com> - 2014-09-23 18:32 -0300
  Re: Flask and Python 3 John Gordon <gordon@panix.com> - 2014-09-23 21:48 +0000
    Re: Flask and Python 3 Juan Christian <juan0christian@gmail.com> - 2014-09-23 18:57 -0300
    Re: Flask and Python 3 Terry Reedy <tjreedy@udel.edu> - 2014-09-23 19:46 -0400
  Re: Flask and Python 3 Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2014-09-24 00:33 +0000
    Re: Flask and Python 3 Juan Christian <juan0christian@gmail.com> - 2014-09-23 22:23 -0300
    Re: Flask and Python 3 Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-09-24 16:09 +0200
    Re: Flask and Python 3 Juan Christian <juan0christian@gmail.com> - 2014-09-24 16:39 -0300
    Re: Flask and Python 3 Chris Angelico <rosuav@gmail.com> - 2014-09-25 11:46 +1000
    Re: Flask and Python 3 Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-09-25 19:28 +0200
    Re: Flask and Python 3 Juan Christian <juan0christian@gmail.com> - 2014-09-25 15:18 -0300
    Re: Flask and Python 3 Chris Angelico <rosuav@gmail.com> - 2014-09-26 04:23 +1000
    Re: Flask and Python 3 Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-09-25 20:26 +0200
    Re: Flask and Python 3 Juan Christian <juan0christian@gmail.com> - 2014-09-25 15:35 -0300
    Re: Flask and Python 3 Chris Angelico <rosuav@gmail.com> - 2014-09-26 03:46 +1000
    Re: Flask and Python 3 Chris Angelico <rosuav@gmail.com> - 2014-09-26 09:55 +1000
    Re: Flask and Python 3 Ned Batchelder <ned@nedbatchelder.com> - 2014-09-26 07:41 -0400
    Re: Flask and Python 3 Terry Reedy <tjreedy@udel.edu> - 2014-09-26 14:20 -0400

csiph-web