diff --git a/shiftregister/settings.py b/shiftregister/settings.py index 06b2d9a..ac68733 100644 --- a/shiftregister/settings.py +++ b/shiftregister/settings.py @@ -32,6 +32,7 @@ ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'shiftregister.app.apps.AppConfig', + 'shiftregister.team.apps.TeamConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', @@ -55,7 +56,7 @@ ROOT_URLCONF = 'shiftregister.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [Path(BASE_DIR,Path("templates"))], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ diff --git a/shiftregister/team/__init__.py b/shiftregister/team/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/shiftregister/team/admin.py b/shiftregister/team/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/shiftregister/team/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/shiftregister/team/apps.py b/shiftregister/team/apps.py new file mode 100644 index 0000000..fd97d73 --- /dev/null +++ b/shiftregister/team/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class TeamConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'shiftregister.team' diff --git a/shiftregister/team/migrations/__init__.py b/shiftregister/team/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/shiftregister/team/models.py b/shiftregister/team/models.py new file mode 100644 index 0000000..4151443 --- /dev/null +++ b/shiftregister/team/models.py @@ -0,0 +1,3 @@ +from django.db import models +from shiftregister.app.models import * +# Create your models here. diff --git a/shiftregister/team/tests.py b/shiftregister/team/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/shiftregister/team/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/shiftregister/team/urls.py b/shiftregister/team/urls.py new file mode 100644 index 0000000..88a9cac --- /dev/null +++ b/shiftregister/team/urls.py @@ -0,0 +1,7 @@ +from django.urls import path + +from . import views + +urlpatterns = [ + path('', views.index, name='index'), +] diff --git a/shiftregister/team/views.py b/shiftregister/team/views.py new file mode 100644 index 0000000..2179b81 --- /dev/null +++ b/shiftregister/team/views.py @@ -0,0 +1,5 @@ +from django.shortcuts import render + +# Create your views here. +def index(request): + pass \ No newline at end of file diff --git a/shiftregister/urls.py b/shiftregister/urls.py index 90942f3..0fc42be 100644 --- a/shiftregister/urls.py +++ b/shiftregister/urls.py @@ -18,5 +18,6 @@ from django.urls import include, path urlpatterns = [ path('', include('shiftregister.app.urls')), + path('team/', include('shiftregister.team.urls')), path('admin/', admin.site.urls), ] diff --git a/shiftregister/app/templates/base.html b/templates/base.html similarity index 100% rename from shiftregister/app/templates/base.html rename to templates/base.html