github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/python/rideshare/django/app/hello_django/urls.py (about)

     1  from django.contrib import admin
     2  from django.urls import path
     3  from django.conf import settings
     4  from django.conf.urls.static import static
     5  
     6  from ride_share.views.frontend.frontend import home_page
     7  from ride_share.views.bike.bike import BikeView
     8  from ride_share.views.car.car import CarView
     9  from ride_share.views.scooter.scooter import ScooterView
    10  
    11  urlpatterns = [
    12      path("", home_page, name="home_page"),
    13      path("bike/", BikeView.as_view()),
    14      path("car/", CarView.as_view()),
    15      path("scooter/", ScooterView.as_view()),
    16      path("admin/", admin.site.urls),
    17  ]
    18  
    19  # urlpatterns += router.urls
    20  
    21  if bool(settings.DEBUG):
    22      urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)