add startpage

This commit is contained in:
erichhasl
2017-11-17 16:57:49 +01:00
parent c083d76fdc
commit 2fd2d663ad
9 changed files with 30 additions and 0 deletions
+2
View File
@@ -12,3 +12,5 @@ test.pdf
my.cnf
venv
*/*/*/migrations/*
+1
View File
@@ -17,5 +17,6 @@ from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^$', include('startpage.urls')),
url(r'^admin/', include(admin.site.urls)),
]
+3
View File
@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.
+5
View File
@@ -0,0 +1,5 @@
from django.apps import AppConfig
class StartpageConfig(AppConfig):
name = 'startpage'
+3
View File
@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.
+3
View File
@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.
+7
View File
@@ -0,0 +1,7 @@
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index')
]
+6
View File
@@ -0,0 +1,6 @@
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hey!")