Merely declare the routes regarding the examine

Merely declare the routes regarding the examine

This is simply not a great microframework that will be meant to be put withing a normal Django settings since it is totally appropriate for the newest fundamental uses.

  • views declared basic usually suits basic. Avoid saying (r’^$’) basic (on begining out of ) otherwise it will prevent others off complimentary.
  • while using the numerous on the same view, the initial used (a decreased about designers heap) will match earliest.
  • constantly set because Last decorator applied (towards the top of the decorators stack).

Towards the basic that, this new returned dictionary would-be made use of because a framework (that have RequestContext) so you’re able to give the fresh new theme. To the next you to, it would be serialised so you can JSON. The past that will simply come back the fresh string.

Sexe allemand gratuit

The original look at will be made since the-is if it obtains an everyday Get request. The following check could be made simply for Post requests, but is passed the result of the fresh new performance of very first examine. Continue reading Merely declare the routes regarding the examine