mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-11 09:07:12 -05:00
lots of things working
This commit is contained in:
@@ -39,6 +39,7 @@ INSTALLED_APPS = [
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'django_tables2',
|
||||
'django_filters',
|
||||
'cookbook.apps.CookbookConfig',
|
||||
]
|
||||
|
||||
|
||||
@@ -13,11 +13,12 @@ Including another URLconf
|
||||
1. Import the include() function: from django.urls import include, path
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.http import HttpResponseRedirect
|
||||
from django.urls import include, path
|
||||
from django.contrib import admin
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path('', lambda r: HttpResponseRedirect('cookbook/')),
|
||||
path('admin/', admin.site.urls),
|
||||
path('cookbook/', include('cookbook.urls')),
|
||||
path('accounts/', include('django.contrib.auth.urls')),
|
||||
|
||||
Reference in New Issue
Block a user