1
0
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:
vabene1111
2018-02-01 12:16:39 +01:00
parent 572e0b5fc9
commit 901ae9053a
13 changed files with 333 additions and 199 deletions

View File

@@ -39,6 +39,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'django_tables2',
'django_filters',
'cookbook.apps.CookbookConfig',
]

View File

@@ -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')),