nice features

This commit is contained in:
MassiveAtoms
2020-05-25 02:15:12 -03:00
parent 6acc614785
commit 175c4d9631
18 changed files with 149 additions and 25 deletions

View File

@ -55,7 +55,7 @@ ROOT_URLCONF = 'houtmarkt.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [os.path.join(BASE_DIR, 'templates'),],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [

View File

@ -13,15 +13,16 @@ 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.conf import settings
from django.contrib import admin
from django.urls import path
from django.conf.urls.static import static
from django.urls import include
urlpatterns = [
path('markt/', include('markt.urls')),
path('admin/', admin.site.urls),
]
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
from django.views.generic import RedirectView