diff --git a/herreweb_backend/herreweb_backend/__init__.py b/frontend/__init__.py similarity index 100% rename from herreweb_backend/herreweb_backend/__init__.py rename to frontend/__init__.py diff --git a/frontend/admin.py b/frontend/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/frontend/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/frontend/apps.py b/frontend/apps.py new file mode 100644 index 0000000..04f7b89 --- /dev/null +++ b/frontend/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class FrontendConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'frontend' diff --git a/herreweb_backend/project/migrations/__init__.py b/frontend/migrations/__init__.py similarity index 100% rename from herreweb_backend/project/migrations/__init__.py rename to frontend/migrations/__init__.py diff --git a/frontend/models.py b/frontend/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/frontend/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/frontend/tests.py b/frontend/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/frontend/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/frontend/views.py b/frontend/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/frontend/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/main/__init__.py b/main/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/main/asgi.py b/main/asgi.py new file mode 100644 index 0000000..4d4ab0c --- /dev/null +++ b/main/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for main project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'main.settings') + +application = get_asgi_application() diff --git a/main/settings.py b/main/settings.py new file mode 100644 index 0000000..72fa86f --- /dev/null +++ b/main/settings.py @@ -0,0 +1,123 @@ +""" +Django settings for main project. + +Generated by 'django-admin startproject' using Django 4.2. + +For more information on this file, see +https://docs.djangoproject.com/en/4.2/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/4.2/ref/settings/ +""" + +from pathlib import Path + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure-p+v*@i^r5$$pn74md-%#_c6ghhi#f=n215obylx251fw3%boq^' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'main.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'main.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/4.2/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/4.2/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/4.2/howto/static-files/ + +STATIC_URL = 'static/' + +# Default primary key field type +# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/main/urls.py b/main/urls.py new file mode 100644 index 0000000..b5ead09 --- /dev/null +++ b/main/urls.py @@ -0,0 +1,22 @@ +""" +URL configuration for main project. + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/4.2/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +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.contrib import admin +from django.urls import path + +urlpatterns = [ + path('admin/', admin.site.urls), +] diff --git a/main/wsgi.py b/main/wsgi.py new file mode 100644 index 0000000..87086a6 --- /dev/null +++ b/main/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for main 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/4.2/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'main.settings') + +application = get_wsgi_application() diff --git a/manage.py b/manage.py new file mode 100644 index 0000000..fbda2b3 --- /dev/null +++ b/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', 'main.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/herreweb_backend/.vscode/launch.json b/obsolete/herreweb_backend/.vscode/launch.json similarity index 100% rename from herreweb_backend/.vscode/launch.json rename to obsolete/herreweb_backend/.vscode/launch.json diff --git a/obsolete/herreweb_backend/herreweb_backend/__init__.py b/obsolete/herreweb_backend/herreweb_backend/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/herreweb_backend/herreweb_backend/asgi.py b/obsolete/herreweb_backend/herreweb_backend/asgi.py similarity index 100% rename from herreweb_backend/herreweb_backend/asgi.py rename to obsolete/herreweb_backend/herreweb_backend/asgi.py diff --git a/herreweb_backend/herreweb_backend/settings.py b/obsolete/herreweb_backend/herreweb_backend/settings.py similarity index 100% rename from herreweb_backend/herreweb_backend/settings.py rename to obsolete/herreweb_backend/herreweb_backend/settings.py diff --git a/herreweb_backend/herreweb_backend/urls.py b/obsolete/herreweb_backend/herreweb_backend/urls.py similarity index 100% rename from herreweb_backend/herreweb_backend/urls.py rename to obsolete/herreweb_backend/herreweb_backend/urls.py diff --git a/herreweb_backend/herreweb_backend/utils.py b/obsolete/herreweb_backend/herreweb_backend/utils.py similarity index 100% rename from herreweb_backend/herreweb_backend/utils.py rename to obsolete/herreweb_backend/herreweb_backend/utils.py diff --git a/herreweb_backend/herreweb_backend/wsgi.py b/obsolete/herreweb_backend/herreweb_backend/wsgi.py similarity index 100% rename from herreweb_backend/herreweb_backend/wsgi.py rename to obsolete/herreweb_backend/herreweb_backend/wsgi.py diff --git a/herreweb_backend/manage.py b/obsolete/herreweb_backend/manage.py old mode 100755 new mode 100644 similarity index 100% rename from herreweb_backend/manage.py rename to obsolete/herreweb_backend/manage.py diff --git a/herreweb_backend/project/admin.py b/obsolete/herreweb_backend/project/admin.py similarity index 100% rename from herreweb_backend/project/admin.py rename to obsolete/herreweb_backend/project/admin.py diff --git a/herreweb_backend/project/migrations/0001_initial.py b/obsolete/herreweb_backend/project/migrations/0001_initial.py similarity index 100% rename from herreweb_backend/project/migrations/0001_initial.py rename to obsolete/herreweb_backend/project/migrations/0001_initial.py diff --git a/herreweb_backend/project/migrations/0002_alter_project_image_alter_project_rtd_url_and_more.py b/obsolete/herreweb_backend/project/migrations/0002_alter_project_image_alter_project_rtd_url_and_more.py similarity index 100% rename from herreweb_backend/project/migrations/0002_alter_project_image_alter_project_rtd_url_and_more.py rename to obsolete/herreweb_backend/project/migrations/0002_alter_project_image_alter_project_rtd_url_and_more.py diff --git a/obsolete/herreweb_backend/project/migrations/__init__.py b/obsolete/herreweb_backend/project/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/herreweb_backend/project/models.py b/obsolete/herreweb_backend/project/models.py similarity index 100% rename from herreweb_backend/project/models.py rename to obsolete/herreweb_backend/project/models.py diff --git a/herreweb_backend/project/serializers.py b/obsolete/herreweb_backend/project/serializers.py similarity index 100% rename from herreweb_backend/project/serializers.py rename to obsolete/herreweb_backend/project/serializers.py diff --git a/herreweb_backend/project/views.py b/obsolete/herreweb_backend/project/views.py similarity index 100% rename from herreweb_backend/project/views.py rename to obsolete/herreweb_backend/project/views.py diff --git a/herreweb_backend/static/GHIDRA_1.png b/obsolete/herreweb_backend/static/GHIDRA_1.png similarity index 100% rename from herreweb_backend/static/GHIDRA_1.png rename to obsolete/herreweb_backend/static/GHIDRA_1.png diff --git a/herreweb_backend/static/project_images/1.png b/obsolete/herreweb_backend/static/project_images/1.png similarity index 100% rename from herreweb_backend/static/project_images/1.png rename to obsolete/herreweb_backend/static/project_images/1.png diff --git a/herreweb_backend/static/project_images/.blob/GHIDRA_1.png b/obsolete/herreweb_backend/static/project_images/.blob/GHIDRA_1.png similarity index 100% rename from herreweb_backend/static/project_images/.blob/GHIDRA_1.png rename to obsolete/herreweb_backend/static/project_images/.blob/GHIDRA_1.png diff --git a/herreweb_backend/static/project_images/GHIDRA_1.png b/obsolete/herreweb_backend/static/project_images/GHIDRA_1.png similarity index 100% rename from herreweb_backend/static/project_images/GHIDRA_1.png rename to obsolete/herreweb_backend/static/project_images/GHIDRA_1.png diff --git a/herreweb_backend/static/project_images/GHIDRA_1_nL03hOP.png b/obsolete/herreweb_backend/static/project_images/GHIDRA_1_nL03hOP.png similarity index 100% rename from herreweb_backend/static/project_images/GHIDRA_1_nL03hOP.png rename to obsolete/herreweb_backend/static/project_images/GHIDRA_1_nL03hOP.png diff --git a/herreweb_backend/static/project_images/logo-600w.png b/obsolete/herreweb_backend/static/project_images/logo-600w.png similarity index 100% rename from herreweb_backend/static/project_images/logo-600w.png rename to obsolete/herreweb_backend/static/project_images/logo-600w.png diff --git a/herreweb_backend/static/project_images/tallies.jpeg b/obsolete/herreweb_backend/static/project_images/tallies.jpeg similarity index 100% rename from herreweb_backend/static/project_images/tallies.jpeg rename to obsolete/herreweb_backend/static/project_images/tallies.jpeg diff --git a/herreweb_backend/static/project_images/title/GHIDRA_1.png b/obsolete/herreweb_backend/static/project_images/title/GHIDRA_1.png similarity index 100% rename from herreweb_backend/static/project_images/title/GHIDRA_1.png rename to obsolete/herreweb_backend/static/project_images/title/GHIDRA_1.png diff --git a/herreweb_frontend/.gitignore b/obsolete/herreweb_frontend/.gitignore similarity index 100% rename from herreweb_frontend/.gitignore rename to obsolete/herreweb_frontend/.gitignore diff --git a/herreweb_frontend/.vscode/launch.json b/obsolete/herreweb_frontend/.vscode/launch.json similarity index 100% rename from herreweb_frontend/.vscode/launch.json rename to obsolete/herreweb_frontend/.vscode/launch.json diff --git a/herreweb_frontend/README.md b/obsolete/herreweb_frontend/README.md similarity index 100% rename from herreweb_frontend/README.md rename to obsolete/herreweb_frontend/README.md diff --git a/herreweb_frontend/package-lock.json b/obsolete/herreweb_frontend/package-lock.json similarity index 100% rename from herreweb_frontend/package-lock.json rename to obsolete/herreweb_frontend/package-lock.json diff --git a/herreweb_frontend/package.json b/obsolete/herreweb_frontend/package.json similarity index 100% rename from herreweb_frontend/package.json rename to obsolete/herreweb_frontend/package.json diff --git a/herreweb_frontend/public/favicon.ico b/obsolete/herreweb_frontend/public/favicon.ico similarity index 100% rename from herreweb_frontend/public/favicon.ico rename to obsolete/herreweb_frontend/public/favicon.ico diff --git a/herreweb_frontend/public/index.html b/obsolete/herreweb_frontend/public/index.html similarity index 100% rename from herreweb_frontend/public/index.html rename to obsolete/herreweb_frontend/public/index.html diff --git a/herreweb_frontend/public/logo192.png b/obsolete/herreweb_frontend/public/logo192.png similarity index 100% rename from herreweb_frontend/public/logo192.png rename to obsolete/herreweb_frontend/public/logo192.png diff --git a/herreweb_frontend/public/logo512.png b/obsolete/herreweb_frontend/public/logo512.png similarity index 100% rename from herreweb_frontend/public/logo512.png rename to obsolete/herreweb_frontend/public/logo512.png diff --git a/herreweb_frontend/public/manifest.json b/obsolete/herreweb_frontend/public/manifest.json similarity index 100% rename from herreweb_frontend/public/manifest.json rename to obsolete/herreweb_frontend/public/manifest.json diff --git a/herreweb_frontend/public/robots.txt b/obsolete/herreweb_frontend/public/robots.txt similarity index 100% rename from herreweb_frontend/public/robots.txt rename to obsolete/herreweb_frontend/public/robots.txt diff --git a/herreweb_frontend/src/components/App.js b/obsolete/herreweb_frontend/src/components/App.js similarity index 100% rename from herreweb_frontend/src/components/App.js rename to obsolete/herreweb_frontend/src/components/App.js diff --git a/herreweb_frontend/src/components/AppFooter.js b/obsolete/herreweb_frontend/src/components/AppFooter.js similarity index 100% rename from herreweb_frontend/src/components/AppFooter.js rename to obsolete/herreweb_frontend/src/components/AppFooter.js diff --git a/herreweb_frontend/src/components/AppHeader.js b/obsolete/herreweb_frontend/src/components/AppHeader.js similarity index 100% rename from herreweb_frontend/src/components/AppHeader.js rename to obsolete/herreweb_frontend/src/components/AppHeader.js diff --git a/herreweb_frontend/src/components/Projects.js b/obsolete/herreweb_frontend/src/components/Projects.js similarity index 100% rename from herreweb_frontend/src/components/Projects.js rename to obsolete/herreweb_frontend/src/components/Projects.js diff --git a/herreweb_frontend/src/index.js b/obsolete/herreweb_frontend/src/index.js similarity index 100% rename from herreweb_frontend/src/index.js rename to obsolete/herreweb_frontend/src/index.js diff --git a/herreweb_frontend/src/reportWebVitals.js b/obsolete/herreweb_frontend/src/reportWebVitals.js similarity index 100% rename from herreweb_frontend/src/reportWebVitals.js rename to obsolete/herreweb_frontend/src/reportWebVitals.js diff --git a/herreweb_frontend/src/setupTests.js b/obsolete/herreweb_frontend/src/setupTests.js similarity index 100% rename from herreweb_frontend/src/setupTests.js rename to obsolete/herreweb_frontend/src/setupTests.js diff --git a/herreweb_frontend/src/static/App.css b/obsolete/herreweb_frontend/src/static/App.css similarity index 100% rename from herreweb_frontend/src/static/App.css rename to obsolete/herreweb_frontend/src/static/App.css diff --git a/herreweb_frontend/src/static/AppFooter.css b/obsolete/herreweb_frontend/src/static/AppFooter.css similarity index 100% rename from herreweb_frontend/src/static/AppFooter.css rename to obsolete/herreweb_frontend/src/static/AppFooter.css diff --git a/herreweb_frontend/src/static/AppHeader.css b/obsolete/herreweb_frontend/src/static/AppHeader.css similarity index 100% rename from herreweb_frontend/src/static/AppHeader.css rename to obsolete/herreweb_frontend/src/static/AppHeader.css diff --git a/herreweb_frontend/src/static/Projects.css b/obsolete/herreweb_frontend/src/static/Projects.css similarity index 100% rename from herreweb_frontend/src/static/Projects.css rename to obsolete/herreweb_frontend/src/static/Projects.css diff --git a/herreweb_frontend/src/static/index.css b/obsolete/herreweb_frontend/src/static/index.css similarity index 100% rename from herreweb_frontend/src/static/index.css rename to obsolete/herreweb_frontend/src/static/index.css diff --git a/herreweb_frontend/src/static/logo.svg b/obsolete/herreweb_frontend/src/static/logo.svg similarity index 100% rename from herreweb_frontend/src/static/logo.svg rename to obsolete/herreweb_frontend/src/static/logo.svg