initiate drf app

This commit is contained in:
2025-05-15 18:26:23 +03:00
commit 8e3dfd89b1
86 changed files with 9340 additions and 0 deletions

View File

3
backend/routes/admin.py Normal file
View File

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

6
backend/routes/apps.py Normal file
View File

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

View File

@@ -0,0 +1,24 @@
type_transport_choices = [
("road", "Авто"),
("avia", "Авиа"),
('both', "Любой"),
]
transfer_location_choices = [
("airport", "В аэропорту"),
("city", "По городу"),
("other", "По договоренности")
]
cargo_type_choices = [
("letter", "Письмо или Документы"),
("package", "Посылка (до 30кг)"),
("passenger", "Попутчик"),
("parcel", "Бандероль (до 5кг)"),
("cargo", "Груз (свыше 30 кг)"),
]
owner_type_choices = [
("customer", "Заказчик"),
("mover", "Перевозчик")
]

View File

3
backend/routes/models.py Normal file
View File

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

3
backend/routes/tests.py Normal file
View File

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

3
backend/routes/views.py Normal file
View File

@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.