setup¶
django setup¶
add easy rest to your installed apps in settings.py:
INSTALLED_APPS = [
...
'easy_rest',
]
for advanced feature the easy rest root should be included in your app urls as follows:
in your urls.py
url(r'^easy_rest/', include('easy_rest.urls')),
if you change the root url (for instance the url is myproject/api/something) you need to override it in settings.py
EASY_REST_ROOT_URL = "myproject/api/something"
Base html file¶
{% load easy_rest %}
<head>
{% load_rest_scripts %}
</head>