Skip to content

Contacts App for Django with Django REST API based views

License

Notifications You must be signed in to change notification settings

civilmachines/drf-contact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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