feat: add Unit Price Calculator

This commit is contained in:
Herculino Trotta
2024-11-15 11:57:42 -03:00
parent c2f9f7f70f
commit 7f6e6514d5
14 changed files with 356 additions and 70 deletions

View File

View File

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

View File

@@ -0,0 +1,6 @@
from django.apps import AppConfig
class MiniToolsConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "apps.mini_tools"

View File

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

View File

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

View 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",
),
]

View 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")