mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
chore: Delete numerous application modules, templates, static assets, documentation, and build files.
This commit is contained in:
0
typePay/__init__.py
Normal file
0
typePay/__init__.py
Normal file
5
typePay/admin.py
Normal file
5
typePay/admin.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from typePay.models import TypePay
|
||||
|
||||
admin.site.register(TypePay)
|
||||
8
typePay/api_views.py
Normal file
8
typePay/api_views.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from rest_framework import viewsets, permissions
|
||||
from .models import TypePay
|
||||
from .serializers import TypePaySerializer
|
||||
|
||||
class TypePayViewSet(viewsets.ModelViewSet):
|
||||
queryset = TypePay.objects.all()
|
||||
serializer_class = TypePaySerializer
|
||||
permission_classes = [permissions.IsAuthenticatedOrReadOnly]
|
||||
6
typePay/apps.py
Normal file
6
typePay/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class TypepayConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'typePay'
|
||||
21
typePay/migrations/0001_initial.py
Normal file
21
typePay/migrations/0001_initial.py
Normal 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='TypePay',
|
||||
fields=[
|
||||
('id', models.AutoField(primary_key=True, serialize=False)),
|
||||
('name', models.CharField(max_length=255)),
|
||||
],
|
||||
),
|
||||
]
|
||||
0
typePay/migrations/__init__.py
Normal file
0
typePay/migrations/__init__.py
Normal file
9
typePay/models.py
Normal file
9
typePay/models.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class TypePay(models.Model):
|
||||
id = models.AutoField(primary_key=True)
|
||||
name = models.CharField(max_length=255)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
7
typePay/serializers.py
Normal file
7
typePay/serializers.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from rest_framework import serializers
|
||||
from .models import TypePay
|
||||
|
||||
class TypePaySerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = TypePay
|
||||
fields = '__all__'
|
||||
12
typePay/templates/typePay.html
Normal file
12
typePay/templates/typePay.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
|
||||
|
||||
|
||||
{% block 'title' %}
|
||||
Type Pay
|
||||
{% endblock %}
|
||||
|
||||
{% block 'body' %}
|
||||
Body Type Pay
|
||||
{% endblock %}
|
||||
3
typePay/tests.py
Normal file
3
typePay/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
10
typePay/urls.py
Normal file
10
typePay/urls.py
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.typePay, name='typePay'),
|
||||
|
||||
|
||||
|
||||
]
|
||||
6
typePay/views.py
Normal file
6
typePay/views.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
|
||||
def typePay(request):
|
||||
return render(request, 'typePay.html')
|
||||
Reference in New Issue
Block a user