chore: Delete numerous application modules, templates, static assets, documentation, and build files.

This commit is contained in:
2026-02-25 17:09:27 -03:00
parent 7ddaa2d1f9
commit 2fc4fafed7
562 changed files with 17 additions and 6810 deletions

0
categories/__init__.py Normal file
View File

6
categories/admin.py Normal file
View File

@@ -0,0 +1,6 @@
from django.contrib import admin
from categories.models import Categories
admin.site.register(Categories)

8
categories/api_views.py Normal file
View File

@@ -0,0 +1,8 @@
from rest_framework import viewsets, permissions
from .models import Categories
from .serializers import CategoriesSerializer
class CategoriesViewSet(viewsets.ModelViewSet):
queryset = Categories.objects.all()
serializer_class = CategoriesSerializer
permission_classes = [permissions.IsAuthenticatedOrReadOnly]

6
categories/apps.py Normal file
View File

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

View File

@@ -0,0 +1,21 @@
# Generated by Django 5.1.4 on 2024-12-10 00:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=255)),
],
),
]

View File

@@ -0,0 +1,17 @@
# Generated by Django 5.1.4 on 2024-12-10 01:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('categories', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Category',
new_name='Categories',
),
]

View File

10
categories/models.py Normal file
View File

@@ -0,0 +1,10 @@
from django.db import models
# Create your models here.
class Categories(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=255)
def __str__(self) -> str:
return self.name

View File

@@ -0,0 +1,7 @@
from rest_framework import serializers
from .models import Categories
class CategoriesSerializer(serializers.ModelSerializer):
class Meta:
model = Categories
fields = '__all__'

View File

@@ -0,0 +1,11 @@
{% extends "base.html" %}
{% block 'title' %}
Categorias{% endblock %}
{% block 'body' %}
Body Type Pay
{% endblock %}

3
categories/tests.py Normal file
View File

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

10
categories/urls.py Normal file
View File

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

6
categories/views.py Normal file
View File

@@ -0,0 +1,6 @@
from django.shortcuts import render
def categories(request):
return render(request, 'categories.html')