initiate drf app
This commit is contained in:
0
backend/routes/__init__.py
Normal file
0
backend/routes/__init__.py
Normal file
3
backend/routes/admin.py
Normal file
3
backend/routes/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
backend/routes/apps.py
Normal file
6
backend/routes/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class RoutesConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'routes'
|
||||
24
backend/routes/constants/routeChoices.py
Normal file
24
backend/routes/constants/routeChoices.py
Normal 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", "Перевозчик")
|
||||
]
|
||||
0
backend/routes/migrations/__init__.py
Normal file
0
backend/routes/migrations/__init__.py
Normal file
3
backend/routes/models.py
Normal file
3
backend/routes/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
backend/routes/tests.py
Normal file
3
backend/routes/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
3
backend/routes/views.py
Normal file
3
backend/routes/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user