Installation
From PyPi
Simply run the good old pip install django-nyt
and you’ll have the django_nyt
package available.
Configuring your project
Before django-nyt can be used, you need to migrate its models. This is also necessary if you update it.
python manage.py migrate django_nyt
INSTALLED_APPS
INSTALLED_APPS = (
...
'django_nyt.apps.DjangoNytConfig'
...
)
urlconf
You need to add the following patterns to get JSON views. You need to add it to your projects urlconf, typically urls.py
.
urlpatterns += [
url(r'^notifications/', include('django_nyt.urls')),
]