Python Forum
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
flask
#7
That's the whole point of using wsgi, though. You don't want one url == one file. ALL urls get directed to a single file (normally something like index.py or main.py), which then uses pattern matching (some variant of regular expressions) which matches the url requested with a callable object. In Django, that's the urls.py file. In flask, the convention is to let decorators handle that for you.

But that's not unique to wsgi. Wordpress (which is php) works the same way. As do most php frameworks. Our forum uses a similar setup. It's the main way websites have pretty urls.
Reply


Messages In This Thread
flask - by Skaperen - Apr-04-2017, 12:46 AM
RE: flask - by buran - Apr-04-2017, 07:15 AM
RE: flask - by Skaperen - Apr-04-2017, 09:28 AM
RE: flask - by wavic - Apr-04-2017, 09:40 AM
RE: flask - by snippsat - Apr-04-2017, 02:47 PM
RE: flask - by Skaperen - Apr-05-2017, 01:27 AM
RE: flask - by nilamo - Apr-19-2017, 06:03 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020