title: Morepath
category: page
slug: morepath
sort-order: 0206
choice1url: /web-frameworks.html
choice1icon: fa-code
choice1text: Show me more about web frameworks in general.
choice2url: /other-web-frameworks.html
choice2icon: fa-question fa-inverse
choice2text: What other Python web frameworks exist?
choice3url: /application-programming-interfaces.html
choice3icon: fa-exchange
choice3text: Tell me more about web APIs.
choice4url:
choice4icon:
choice4text:


## Morepath
[Morepath](http://morepath.readthedocs.org/en/latest/) is a micro web 
framework with a model-driven approach to creating web applications and web
APIs.

Morepath's framework philosophy is that the data models should drive the
creation via the web framework. By default the framework routes URLs directly 
to model code, unlike for example Django which requires explicit URL routing
by the developer.


## Why is Morepath an interesting web framework?
Simple [CRUD web applications and APIs](http://en.wikipedia.org/wiki/Create,_read,_update_and_delete) 
can be tedious to build when they are driven straight from data models without
much logic between the model and the view. 

With the rise of front end JavaScript frameworks, many Python web frameworks 
are first being used to build 
[RESTful APIs](/application-programming-interfaces.html) that return JSON
instead rendering HTML via a templating system. Morepath appears to have 
been created with the RESTful API model approach in mind and cuts out the 
assumption that templates will drive the user interface.


### Morepath resources
* [On the Morepath](http://blog.startifact.com/posts/on-the-morepath.html)
  is a blog post by Startifact on how they use Morepath and some of the
  features of the framework.

* Morepath's creator gave a 
  [great talk on the motivation and structure for the new framework](https://www.youtube.com/watch?v=gyDKMAWPyuY) 
  at EuroPython 2014.


### Do you want to learn more about frameworks or web APIs?
