Skip to content

sebaacuna/django-descanso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running Descanso
---------------

Add the descanso app to your Django project
Create an app with your own models and add an api.py file

In the api.py file, add the following lines:
    import descanso
    api = descanso.api()

You can now import your models and register them in api.py:
    from models import ModelA, ModelB
    api.register(ModelA)
    api.register(ModelB)

You can also use api.py as the url file for your api, just add:
    urlpatterns = api.urlpatterns()

Configure your project's urls:

    urlpatterns +=  patterns('', (r'^api/', include('demo.api')) )

About

Streamlined set of tools for Django-based REST services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published