adapt with new path/views

This commit is contained in:
2025-09-05 16:46:17 +02:00
parent 15ea4c8abf
commit d5836d2dbc

View File

@@ -1,13 +1,15 @@
from django.contrib import admin
from django.urls import path
from . import views
import lettings.views
import profiles.views
urlpatterns = [
path('', views.index, name='index'),
path('lettings/', views.lettings_index, name='lettings_index'),
path('lettings/<int:letting_id>/', views.letting, name='letting'),
path('profiles/', views.profiles_index, name='profiles_index'),
path('profiles/<str:username>/', views.profile, name='profile'),
path('lettings/', lettings.views.index, name='lettings_index'),
path('lettings/<int:letting_id>/', lettings.views.letting, name='letting'),
path('profiles/', profiles.views.index, name='profiles_index'),
path('profiles/<str:username>/', profiles.views.profile, name='profile'),
path('admin/', admin.site.urls),
]