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

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