diff --git a/config/settings.py b/config/settings.py index ebad241..fac603c 100644 --- a/config/settings.py +++ b/config/settings.py @@ -11,10 +11,7 @@ https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib import Path -try: - from my_secrets.secrets import * -except ImportError: - pass +from my_secrets import secrets # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -32,6 +29,8 @@ ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ + 'pages', + 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', @@ -123,6 +122,7 @@ USE_TZ = True # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/' + import os STATIC_ROOT = os.path.join(BASE_DIR, 'static_files') -STATICFILES_DIRS = [BASE_DIR / "static"] +STATICFILES_DIRS = [BASE_DIR / "static"] \ No newline at end of file diff --git a/config/urls.py b/config/urls.py index 430cb55..f6676c1 100644 --- a/config/urls.py +++ b/config/urls.py @@ -18,5 +18,6 @@ from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), - path('notes/', include('notion_updater.urls')) -] + path('notes/', include('notion_updater.urls')), + path('', include('pages.urls')) +] \ No newline at end of file diff --git a/pages/static/pages/css/img/hero.png b/pages/static/pages/css/img/hero.png new file mode 100644 index 0000000..acd2dce Binary files /dev/null and b/pages/static/pages/css/img/hero.png differ diff --git a/pages/static/pages/css/img/hero.png:Zone.Identifier b/pages/static/pages/css/img/hero.png:Zone.Identifier new file mode 100644 index 0000000..e69de29 diff --git a/pages/static/pages/css/styles.css b/pages/static/pages/css/styles.css new file mode 100644 index 0000000..64f3439 --- /dev/null +++ b/pages/static/pages/css/styles.css @@ -0,0 +1,3 @@ +.jumbotron { + background-image: url('img/hero.png') +} \ No newline at end of file diff --git a/pages/templates/pages/base.html b/pages/templates/pages/base.html new file mode 100644 index 0000000..bd838f8 --- /dev/null +++ b/pages/templates/pages/base.html @@ -0,0 +1,49 @@ +{% load static %} + + + + + + +
+ + +We work for you.
+