Created karbs instruction page

This commit is contained in:
Kristofers Solo
2022-08-06 19:12:17 +03:00
parent e9ef11bc46
commit 6c00a089fc
16 changed files with 233 additions and 36 deletions

0
karbs/__init__.py Normal file
View File

3
karbs/admin.py Normal file
View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

6
karbs/apps.py Normal file
View File

@@ -0,0 +1,6 @@
from django.apps import AppConfig
class KarbsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'karbs'

View File

3
karbs/models.py Normal file
View File

@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

3
karbs/tests.py Normal file
View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

7
karbs/urls.py Normal file
View File

@@ -0,0 +1,7 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.karbs, name='karbs'),
path('instructions', views.instructions, name='instructions'),
]

11
karbs/views.py Normal file
View File

@@ -0,0 +1,11 @@
from django.shortcuts import render, redirect
def instructions(request):
"""Karbs Instruction"""
return render(request, 'karbs/instructions.html', {'title': 'Karbs Instructions'})
def karbs(request):
"""Karbs install script"""
return render(request, 'karbs/karbs.sh', {'title': 'KARBS'})