/drf-contact

Contacts App for Django with Django REST API based views

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Django REST Framework Contact

Contact App for Django REST Framework with API Views.

Django REST Framework - Contact is a Django App for creating user contacts. It's view are based upon Django REST Framework's GenericAPIView and hence it contains a RESTful API views also.

I'll like to mention following names for certain contributions:

Installation

  • Download and Install via pip
pip install drf_contact

or
Download and Install via easy_install

easy_install drf_contact
  • Add drf_contact in INSTALLED_APPS
INSTALLED_APPS = [
    ...
    'drf_contact',
    ...
]
  • Include urls of drf_contact in urls.py
urlpatterns = [
    ...
    path('api/contact/', include('drf_contact.urls')),
    ...
]

# or

urlpatterns = [
    ...
    url(r'^api/contact/', include('drf_contact.urls')),
    ...
]
  • Finally, run migrate command
python manage.py migrate drf_contact