Skip to content

Goggin/djeasyroute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django easy route

pip install djeasyroute

To use:

routes.py

from djeasyroute import EasyRoute, route

class RouteClass(EasyRoute):

    @route('testing/<userid:int>/<name>', name="test_method")
    def testmethod(userid, name):
        print userid, name

urls.py

from .routes import RouteClass
...
    url(r'^route/', include(RouteClass().urls)),
...

About

Django class based routing system similar to flask

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages