99 lines
6.8 KiB
Python
99 lines
6.8 KiB
Python
|
|
from django.urls import path
|
||
|
|
from django.contrib.sitemaps import views as SitemapViews
|
||
|
|
|
||
|
|
from . import views as core_views
|
||
|
|
|
||
|
|
app_name = 'core'
|
||
|
|
|
||
|
|
urlpatterns = [
|
||
|
|
path('catalog/cars/', core_views.redirect_to, kwargs={'to': '/catalog/japan/'}),
|
||
|
|
path('catalog/spec/', core_views.redirect_to, kwargs={'to': '/catalog/machinery/'}),
|
||
|
|
path('info/', core_views.redirect_to, kwargs={'to': '/articles/'}),
|
||
|
|
# path('catalog/', core_views.redirect_to, kwargs={'to': '/experience/auto/'}),
|
||
|
|
path('info/otpravka-i-dostavka-auto-v-regiony/', core_views.redirect_to, kwargs={'to': '/service/auction/vladivostok//'}),
|
||
|
|
path('info/polnaya-poshlina/', core_views.redirect_to, kwargs={'to': '/service/auction/tax/'}),
|
||
|
|
|
||
|
|
path('', core_views.IndexView.as_view(), name='index'),
|
||
|
|
|
||
|
|
path('catalog/japan/lot/<str:lot_id>/', core_views.LotJapanDetailView.as_view(), name='lot_japan'),
|
||
|
|
path('catalog/korea/lot/<str:lot_id>/', core_views.LotKoreaDetailView.as_view(), name='lot_korea'),
|
||
|
|
path('catalog/machinery/lot/<str:lot_id>/', core_views.LotMachineryDetailView.as_view(), name='lot_machinery'),
|
||
|
|
path('catalog/truck/lot/<str:lot_id>/', core_views.LotTruckDetailView.as_view(), name='lot_truck'),
|
||
|
|
|
||
|
|
# CATALOG
|
||
|
|
path('catalog/japan/<str:brand>/<str:model>/', core_views.CatalogJapanView.as_view(), name='catalog_japan_brand_model'),
|
||
|
|
path('catalog/japan/<str:brand>/', core_views.CatalogJapanView.as_view(), name='catalog_japan_brand'),
|
||
|
|
path('catalog/japan/', core_views.CatalogJapanView.as_view(), name='catalog_japan'),
|
||
|
|
|
||
|
|
path('catalog/korea/<str:brand>/<str:model>/', core_views.CatalogKoreaView.as_view(), name='catalog_korea_brand_model'),
|
||
|
|
path('catalog/korea/<str:brand>/', core_views.CatalogKoreaView.as_view(), name='catalog_korea_brand'),
|
||
|
|
path('catalog/korea/', core_views.CatalogKoreaView.as_view(), name='catalog_korea'),
|
||
|
|
|
||
|
|
path('catalog/machinery/<str:brand>/<str:model>/', core_views.CatalogMachineryView.as_view(), name='catalog_machinery_brand_model'),
|
||
|
|
path('catalog/machinery/<str:brand>/', core_views.CatalogMachineryView.as_view(), name='catalog_machinery_brand'),
|
||
|
|
path('catalog/machinery/', core_views.CatalogMachineryView.as_view(), name='catalog_machinery'),
|
||
|
|
|
||
|
|
path('catalog/truck/<str:brand>/<str:model>/', core_views.CatalogTruckView.as_view(), name='catalog_truck_brand_model'),
|
||
|
|
path('catalog/truck/<str:brand>/', core_views.CatalogTruckView.as_view(), name='catalog_truck_brand'),
|
||
|
|
path('catalog/truck/', core_views.CatalogTruckView.as_view(), name='catalog_truck'),
|
||
|
|
|
||
|
|
path('catalog/', core_views.CatalogAllView.as_view(), name='catalog_all'),
|
||
|
|
|
||
|
|
|
||
|
|
path('experience/japan/lot/<int:pk>/', core_views.TransportExperienceDetailView.as_view(), name='experience_japan_details'),
|
||
|
|
path('experience/korea/lot/<int:pk>/', core_views.TransportExperienceDetailView.as_view(), name='experience_korea_details'),
|
||
|
|
path('experience/machinery/lot/<int:pk>/', core_views.MachineryExperienceDetailView.as_view(), name='experience_machinery_details'),
|
||
|
|
|
||
|
|
path('experience/japan/<str:brand>/<str:model>/', core_views.JapanExperienceListView.as_view(), name='experience_japan_brand_model'),
|
||
|
|
path('experience/japan/<str:brand>/', core_views.JapanExperienceListView.as_view(), name='experience_japan_brand'),
|
||
|
|
path('experience/japan/', core_views.JapanExperienceListView.as_view(), name='experience_japan'),
|
||
|
|
|
||
|
|
path('experience/korea/<str:brand>/<str:model>/', core_views.KoreaExperienceListView.as_view(), name='experience_korea_brand_model'),
|
||
|
|
path('experience/korea/<str:brand>/', core_views.KoreaExperienceListView.as_view(), name='experience_korea_brand'),
|
||
|
|
path('experience/korea/', core_views.KoreaExperienceListView.as_view(), name='experience_korea'),
|
||
|
|
|
||
|
|
path('experience/machinery/<str:brand>/<str:model>/', core_views.MachineryExperienceListView.as_view(), name='experience_machinery_brand_model'),
|
||
|
|
path('experience/machinery/<str:brand>/', core_views.MachineryExperienceListView.as_view(), name='experience_machinery_brand'),
|
||
|
|
path('experience/machinery/', core_views.MachineryExperienceListView.as_view(), name='experience_machinery'),
|
||
|
|
|
||
|
|
path('experience/', core_views.AllExperienceListView.as_view(), name='experience_all'),
|
||
|
|
|
||
|
|
path('stock-auto/lot/<str:lot_id>/', core_views.StockAutoDetailView.as_view(), name='stock_auto_details'),
|
||
|
|
path('stock-auto/<str:brand>/<str:model>/', core_views.StockAutoListView.as_view(), name='stock_auto_brand_model'),
|
||
|
|
path('stock-auto/<str:brand>/', core_views.StockAutoListView.as_view(), name='stock_auto_brand'),
|
||
|
|
path('stock-auto/', core_views.StockAutoListView.as_view(), name='stock_auto'),
|
||
|
|
|
||
|
|
path('services/auction/china/', core_views.AuctionChinaView.as_view(), name='service_auction_china'),
|
||
|
|
path('services/auction/japan/', core_views.AuctionJapanView.as_view(), name='service_auction_japan'),
|
||
|
|
path('services/auction/korea/', core_views.AuctionKoreaView.as_view(), name='service_auction_korea'),
|
||
|
|
path('services/auction/machinery/', core_views.AuctionMachineryView.as_view(), name='service_auction_machinery'),
|
||
|
|
path('services/auction/vladivostok/', core_views.AuctionVladivostokView.as_view(), name='service_auction_vladivostok'),
|
||
|
|
path('services/auction/tax/', core_views.AuctionTaxView.as_view(), name='service_auction_tax'),
|
||
|
|
|
||
|
|
path('services/', core_views.ServicesView.as_view(), name='services'),
|
||
|
|
path('about/', core_views.AboutView.as_view(), name='about'),
|
||
|
|
path('warning/', core_views.WarningView.as_view(), name='warning'),
|
||
|
|
path('contacts/', core_views.ContactsView.as_view(), name='contacts'),
|
||
|
|
path('reviews/', core_views.ReviewsListView.as_view(), name='reviews'),
|
||
|
|
path('video/', core_views.VideosListView.as_view(), name='video'),
|
||
|
|
path('article/<slug:slug>/', core_views.ArticleDetailView.as_view(), name='article_details'),
|
||
|
|
path('articles/', core_views.ArticlesListView.as_view(), name='articles'),
|
||
|
|
|
||
|
|
path('get_transport_models/', core_views.get_transport_models),
|
||
|
|
path('get_catalog_transport_models/', core_views.get_catalog_transport_models),
|
||
|
|
path('get_catalog_truck_models/', core_views.get_catalog_truck_models),
|
||
|
|
path('get_experience_transport_models/', core_views.get_experience_transport_models),
|
||
|
|
path('get_stock_auto_models/', core_views.get_stock_auto_models),
|
||
|
|
path('get_machinery_models/', core_views.get_machinery_models),
|
||
|
|
path('get_catalog_machinery_models/', core_views.get_catalog_machinery_models),
|
||
|
|
path('get_experience_machinery_models/', core_views.get_experience_machinery_models),
|
||
|
|
path('image/transport/', core_views.get_quality_images, name='transport_quality_image'),
|
||
|
|
path('consultation/', core_views.consultation, name='consultation'),
|
||
|
|
|
||
|
|
path('cars.xml', core_views.XMLCarsFeedView.as_view()),
|
||
|
|
path('machinery.xml', core_views.XMLMachineryFeedView.as_view()),
|
||
|
|
]
|
||
|
|
|
||
|
|
urlpatterns += [
|
||
|
|
path('<slug:slug>/', core_views.StaticPageView.as_view(), name='static_page'),
|
||
|
|
]
|