Fakultas Ilmu Komputer UI

Commit 49a66624 authored by Zamil Majdy's avatar Zamil Majdy
Browse files

[#140382397] #4 Restructure project directory

parent 2842358a
from django.shortcuts import render
from django.apps import AppConfig
class CoreConfig(AppConfig):
name = 'core'
# Create your views here.
def index(request):
return render(request, 'core/index.html')
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.
def index(request):
return render(request, 'core/index.html')
......@@ -19,7 +19,8 @@ from django.contrib import admin
from rest_framework import routers
from rest_framework_swagger.views import get_swagger_view
from kape.views.user import UserViewSet
from core import apps
from core.views.user import UserViewSet
schema_view = get_swagger_view()
router = routers.DefaultRouter()
......@@ -30,5 +31,5 @@ urlpatterns = [
url(r'^api/$', schema_view),
url(r"^api/", include(router.urls)),
url(r'^admin/', admin.site.urls),
url(r'', include('core.urls')),
url(r'', apps.index, name="index"),
]
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