diff --git a/dashboard/__init__.py b/dashboard/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/dashboard/admin.py b/dashboard/admin.py new file mode 100644 index 00000000..8c38f3f3 --- /dev/null +++ b/dashboard/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/dashboard/apps.py b/dashboard/apps.py new file mode 100644 index 00000000..50878e76 --- /dev/null +++ b/dashboard/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class DashboardConfig(AppConfig): + name = 'dashboard' diff --git a/dashboard/migrations/__init__.py b/dashboard/migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/dashboard/models.py b/dashboard/models.py new file mode 100644 index 00000000..71a83623 --- /dev/null +++ b/dashboard/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/dashboard/templates/dashboard/index.html b/dashboard/templates/dashboard/index.html new file mode 100644 index 00000000..377e78be --- /dev/null +++ b/dashboard/templates/dashboard/index.html @@ -0,0 +1 @@ +{% extends "base/base.html" %} diff --git a/dashboard/tests.py b/dashboard/tests.py new file mode 100644 index 00000000..7ce503c2 --- /dev/null +++ b/dashboard/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/dashboard/urls.py b/dashboard/urls.py new file mode 100644 index 00000000..295fc24e --- /dev/null +++ b/dashboard/urls.py @@ -0,0 +1,8 @@ +from django.contrib import admin +from django.urls import path, include +from . import views + + +urlpatterns = [ + path('', views.index, name='index') +] diff --git a/dashboard/views.py b/dashboard/views.py new file mode 100644 index 00000000..38ea58c2 --- /dev/null +++ b/dashboard/views.py @@ -0,0 +1,5 @@ +from django.shortcuts import render +from django.http import HttpResponse + +def index(request): + return render(request, 'dashboard/index.html') diff --git a/reNgine/settings.py b/reNgine/settings.py index 0c54b020..2b0f8326 100644 --- a/reNgine/settings.py +++ b/reNgine/settings.py @@ -25,6 +25,7 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'dashboard.apps.DashboardConfig' ] MIDDLEWARE = [ @@ -42,7 +43,7 @@ ROOT_URLCONF = 'reNgine.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [(os.path.join(BASE_DIR, 'templates'))], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ diff --git a/reNgine/urls.py b/reNgine/urls.py index 79dcaccc..b13f84b6 100644 --- a/reNgine/urls.py +++ b/reNgine/urls.py @@ -1,21 +1,7 @@ -"""reNgine URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/2.2/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: path('', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.urls import include, path - 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) -""" from django.contrib import admin -from django.urls import path +from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), + path('', include('dashboard.urls')) ] diff --git a/templates/base/.DS_Store b/templates/base/.DS_Store new file mode 100644 index 00000000..681fdf75 Binary files /dev/null and b/templates/base/.DS_Store differ diff --git a/templates/base/base_layout.html b/templates/base/base.html similarity index 100% rename from templates/base/base_layout.html rename to templates/base/base.html