-
Notifications
You must be signed in to change notification settings - Fork 0
sebaacuna/django-descanso
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
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 0
No packages published