diff --git a/README.md b/README.md index dccb11e..1a4bfa3 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,10 @@ This repository contains the REST APIs of the application. ``` https://simplify-reports.herokuapp.com/profile/ ``` +- For User Login +``` +http://127.0.0.1:8000/rest-auth/login/ +``` - Making fire reports - GET and POST request ``` https://simplify-reports.herokuapp.com/fire/ diff --git a/requirements.txt b/requirements.txt index 67b80ff..50fb254 100644 Binary files a/requirements.txt and b/requirements.txt differ diff --git a/simplifyreport/settings.py b/simplifyreport/settings.py index df1fd8a..35d484c 100644 --- a/simplifyreport/settings.py +++ b/simplifyreport/settings.py @@ -41,8 +41,16 @@ 'rest_framework', 'core', 'fcm_django', + 'rest_framework.authtoken', + 'rest_auth', + 'django.contrib.sites', + 'allauth', + 'allauth.account', + 'rest_auth.registration', ] +SITE_ID = 1 + FCM_DJANGO_SETTINGS = { "FCM_SERVER_KEY": "AAAAqhzg_1I:APA91bFic77g3QIUsTmIM-kFhOHJ-Qev60Yw7kuxgiZmDlsrpgVptISStXnHWJVIwE3Fo49IJxd5bXMXjoFIqYLgJQxLCGrnrUHsoasDAiXsf8FtC9JZsq-EQcV2bp6Ti-S3kSspR0R0" } diff --git a/simplifyreport/urls.py b/simplifyreport/urls.py index dc00e8b..c7809d0 100644 --- a/simplifyreport/urls.py +++ b/simplifyreport/urls.py @@ -21,6 +21,9 @@ urlpatterns = [ path('admin/', admin.site.urls), path('',include('core.urls')), + path('api-auth/', include('rest_framework.urls')), + path('rest-auth/', include('rest_auth.urls')), + path('rest-auth/registration/', include('rest_auth.registration.urls')), ] if settings.DEBUG: