', edit_page, name='edit_page'),
+ path('submit_create_page', submit_create_page, name='submit_create_page'),
+ path('submit-edit', submit_edit_page, name='submit_edit_page'),
+]
diff --git a/deadwiki/deadwiki/wsgi.py b/deadwiki/deadwiki/wsgi.py
new file mode 100644
index 0000000..7be6161
--- /dev/null
+++ b/deadwiki/deadwiki/wsgi.py
@@ -0,0 +1,16 @@
+"""
+WSGI config for deadwiki project.
+
+It exposes the WSGI callable as a module-level variable named ``application``.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/5.2/howto/deployment/wsgi/
+"""
+
+import os
+
+from django.core.wsgi import get_wsgi_application
+
+os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'deadwiki.settings')
+
+application = get_wsgi_application()
diff --git a/functions.py b/deadwiki/functions.py
similarity index 100%
rename from functions.py
rename to deadwiki/functions.py
diff --git a/deadwiki/manage.py b/deadwiki/manage.py
new file mode 100755
index 0000000..eafbe17
--- /dev/null
+++ b/deadwiki/manage.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+"""Django's command-line utility for administrative tasks."""
+import os
+import sys
+
+
+def main():
+ """Run administrative tasks."""
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'deadwiki.settings')
+ try:
+ from django.core.management import execute_from_command_line
+ except ImportError as exc:
+ raise ImportError(
+ "Couldn't import Django. Are you sure it's installed and "
+ "available on your PYTHONPATH environment variable? Did you "
+ "forget to activate a virtual environment?"
+ ) from exc
+ execute_from_command_line(sys.argv)
+
+
+if __name__ == '__main__':
+ main()
diff --git a/static/custom.css b/deadwiki/static/custom.css
similarity index 73%
rename from static/custom.css
rename to deadwiki/static/custom.css
index 86420a3..3c59a34 100644
--- a/static/custom.css
+++ b/deadwiki/static/custom.css
@@ -5,11 +5,9 @@ body {
background: #fbf1d7;
}
a {
- background: #83c5b8;
text-decoration: none;
}
a:hover {
- background: #fe8019;
text-decoration: underline;
}
diff --git a/deadwiki/static/default.css b/deadwiki/static/default.css
new file mode 100644
index 0000000..1b099a0
--- /dev/null
+++ b/deadwiki/static/default.css
@@ -0,0 +1,34 @@
+/* The sidebar menu */
+#sidenav {
+ height: 100%; /* Full-height: remove this if you want "auto" height */
+ width: 80px; /* Set the width of the sidebar */
+ position: fixed; /* Fixed Sidebar (stay in place on scroll) */
+ z-index: 1; /* Stay on top */
+ top: 0; /* Stay at the top */
+ left: 0;
+ overflow-x: hidden; /* Disable horizontal scroll */
+ border-right: 2px solid grey;
+ padding: 10px 10px;
+}
+hr {
+ border-top: 1px solid grey;
+}
+#top-hr {
+ margin-left: -8px;
+}
+#bottom-hr {
+ margin-left: 92px;
+}
+/* Style page content */
+#content, #header, #footer {
+ margin-left: 100px; /* Same as the width of the sidebar */
+ padding: 0px 10px;
+}
+.header-link {
+ margin: 10px;
+ padding: 10px 10px;
+}
+textarea {
+ width: 80%;
+ height: 400px;
+}
diff --git a/static/robots.txt b/deadwiki/static/robots.txt
similarity index 100%
rename from static/robots.txt
rename to deadwiki/static/robots.txt
diff --git a/templates/forms/create_page.html b/deadwiki/templates/forms/create_page.html
similarity index 100%
rename from templates/forms/create_page.html
rename to deadwiki/templates/forms/create_page.html
diff --git a/templates/forms/edit-page.html b/deadwiki/templates/forms/edit-page.html
similarity index 94%
rename from templates/forms/edit-page.html
rename to deadwiki/templates/forms/edit-page.html
index 3e88b4d..ba271f4 100644
--- a/templates/forms/edit-page.html
+++ b/deadwiki/templates/forms/edit-page.html
@@ -19,7 +19,7 @@
-
+