Commit 2f1edcbd authored by Rafal's avatar Rafal

Add teampltes and static

Connect landing page to view
parent c567c1d8
<html>
<head>
<link rel="stylesheet" type="text/css" href="static/css/main.css">
</head>
</html>
\ No newline at end of file
from django.shortcuts import render
# Create your views here.
def coming_soon_page(request):
return render(request, 'page/index.html', {})
\ No newline at end of file
......@@ -40,7 +40,8 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'rest_framework',
'rest_framework.authtoken',
'App.user'
'App.user',
'App.page'
]
REST_FRAMEWORK = {
......
......@@ -18,6 +18,7 @@ from django.conf.urls.static import static
from django.contrib import admin
from rest_framework import routers
from App.page.views import coming_soon_page
from App.user import views as user_views
from rest_framework.authtoken import views as token_view
from KawowyDzienniczek import settings
......@@ -33,5 +34,6 @@ urlpatterns = [
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^api-token-auth/', token_view.obtain_auth_token),
url(r'^admin/', include(admin.site.urls)),
url(r'^$', coming_soon_page, name='post_list'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
<html>
<head>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
</html>
\ No newline at end of file
Markdown is supported
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