Fakultas Ilmu Komputer UI

Commit 218a09ca authored by Bimo Iman Smartadi's avatar Bimo Iman Smartadi
Browse files

[CHORES] added oauth app, and edited settings and urls in project

parent b4a72a28
Pipeline #40932 failed with stages
in 52 seconds
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class OauthConfig(AppConfig):
name = 'oauth'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.shortcuts import render
# Create your views here.
......@@ -54,6 +54,7 @@ INSTALLED_APPS = [
'allauth.socialaccount',
'allauth.socialaccount.providers.google',
'multiselectfield',
'oauth2_provider',
]
MIDDLEWARE = [
......
......@@ -33,6 +33,7 @@ urlpatterns = [
path('accounts/', include('allauth.urls')),
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
path('api/', include(new_rest_api.urls)),
path('o/', include('oauth2_provider.urls', namespace='oauth2_provider')),
path('', include(router.urls)),
path('api-token-auth/', views.obtain_auth_token, name='api-token-auth'),
path('informasi-fasilitas/', include('informasi_fasilitas.urls'))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment