Only state their paths on the take a look at

Only state their paths on the take a look at

This is not an excellent microframework which can be intended to be utilized withing a normal Django settings because it’s completely compatible with new important usages.

  • opinions announced very first commonly match earliest. Prevent claiming (r’^$’) basic (in the begining off ) otherwise it will stop anybody else from matching.
  • while using the several on a single evaluate, the initial used (the lowest in the decorators bunch) commonly suits basic.
  • constantly put since the Past decorator used (towards the top of one’s decorators heap).

Into first you to definitely, the brand new returned dictionary could well be put once the a perspective (which have RequestContext) in order to render this new theme. On the 2nd that, it could be serialised so you’re able to JSON. The final you to only will return the latest string.

Sexe allemand gratuit

The original take a look at was rendered due to the fact-is when they gets a frequent Get request. Another consider could well be made just for Post requests, but might be introduced the result of the new execution of your own earliest consider. Another have a look at was rendered just for AJAX needs, and as JSON, but was introduced the consequence of the fresh new performance basic look at. Continue reading “Only state their paths on the take a look at”