mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-22 08:38:35 +02:00
feat: add Unit Price Calculator
This commit is contained in:
0
app/apps/mini_tools/__init__.py
Normal file
0
app/apps/mini_tools/__init__.py
Normal file
3
app/apps/mini_tools/admin.py
Normal file
3
app/apps/mini_tools/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
app/apps/mini_tools/apps.py
Normal file
6
app/apps/mini_tools/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class MiniToolsConfig(AppConfig):
|
||||
default_auto_field = "django.db.models.BigAutoField"
|
||||
name = "apps.mini_tools"
|
||||
0
app/apps/mini_tools/migrations/__init__.py
Normal file
0
app/apps/mini_tools/migrations/__init__.py
Normal file
3
app/apps/mini_tools/models.py
Normal file
3
app/apps/mini_tools/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
app/apps/mini_tools/tests.py
Normal file
3
app/apps/mini_tools/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
11
app/apps/mini_tools/urls.py
Normal file
11
app/apps/mini_tools/urls.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path(
|
||||
"tools/unit-price-calculator/",
|
||||
views.unit_price_calculator,
|
||||
name="unit_price_calculator",
|
||||
),
|
||||
]
|
||||
7
app/apps/mini_tools/views.py
Normal file
7
app/apps/mini_tools/views.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.shortcuts import render
|
||||
|
||||
|
||||
@login_required
|
||||
def unit_price_calculator(request):
|
||||
return render(request, "mini_tools/unit_price_calculator.html")
|
||||
Reference in New Issue
Block a user