This commit is contained in:
Mikan
2024-09-13 20:20:01 +03:00
parent 553a597cc5
commit 0ea4ea3dd4
4 changed files with 15 additions and 2 deletions

View File

@@ -15,8 +15,10 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path, include, re_path
urlpatterns = [
path('admin/', admin.site.urls),
re_path(r'(?:store|vacancy)?(?:/[^/]+)?/?', include('frontend.urls')),
]

7
frontend/urls.py Normal file
View File

@@ -0,0 +1,7 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.app, name='app'),
]

View File

@@ -1,3 +1,5 @@
from django.shortcuts import render
# Create your views here.
def app(request):
return render(request, 'frontend/app.html')

View File

@@ -4,3 +4,5 @@ from django.apps import AppConfig
class UsersConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'users'
verbose_name = 'Пользователи'