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 @@ + + + + + + {% block title %}PlantDB{% endblock %} + + + + + + + +
+ {% block content %}{% endblock %} +
+ + + + diff --git a/plants/urls.py b/plants/urls.py new file mode 100644 index 0000000..e39cb2c --- /dev/null +++ b/plants/urls.py @@ -0,0 +1,3 @@ +from django.urls import path + +urlpatterns = [] diff --git a/plants/views/__init__.py b/plants/views/__init__.py new file mode 100644 index 0000000..e69de29