diff --git a/plantdb/urls.py b/plantdb/urls.py index 153b887..087cfd3 100644 --- a/plantdb/urls.py +++ b/plantdb/urls.py @@ -15,8 +15,11 @@ 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 +from django.conf import settings +from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), -] + path('', include('plants.urls')), +] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/plants/templates/plants/base.html b/plants/templates/plants/base.html new file mode 100644 index 0000000..55013eb --- /dev/null +++ b/plants/templates/plants/base.html @@ -0,0 +1,35 @@ + + +
+ + +