frontend
This commit is contained in:
@@ -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
7
frontend/urls.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.app, name='app'),
|
||||
]
|
||||
@@ -1,3 +1,5 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
|
||||
def app(request):
|
||||
return render(request, 'frontend/app.html')
|
||||
|
||||
@@ -4,3 +4,5 @@ from django.apps import AppConfig
|
||||
class UsersConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'users'
|
||||
|
||||
verbose_name = 'Пользователи'
|
||||
|
||||
Reference in New Issue
Block a user