Fakultas Ilmu Komputer UI

Commit 73c54a48 authored by Zamil Majdy's avatar Zamil Majdy
Browse files

[#140382397] #4 add silk profiler

parent 8ff83265
......@@ -36,7 +36,8 @@ INSTALLED_APPS = [
'core',
'rest_framework',
'django_nose',
'rest_framework_swagger'
'rest_framework_swagger',
'silk'
]
MIDDLEWARE = [
......@@ -47,6 +48,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'silk.middleware.SilkyMiddleware',
]
ROOT_URLCONF = 'kape.urls'
......
......@@ -32,8 +32,8 @@ router.register(r'companies', CompanyViewSet)
router.register(r'supervisors', SupervisorViewSet)
urlpatterns = static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += [
url(r'^silk/', include('silk.urls', namespace='silk')),
url(r'^api/api-auth/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^api$', schema_view),
url(r"^api/", include(router.urls)),
......
......@@ -9,4 +9,5 @@ six==1.10.0
gunicorn
django-nose
coverage
django-rest-swagger
\ No newline at end of file
django-rest-swagger
django-silk
\ No newline at end of file
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