diff --git a/herreweb_backend/herreweb_backend/settings.py b/herreweb_backend/herreweb_backend/settings.py index cd45a28..504652b 100644 --- a/herreweb_backend/herreweb_backend/settings.py +++ b/herreweb_backend/herreweb_backend/settings.py @@ -125,6 +125,10 @@ USE_TZ = True STATIC_URL = 'static/' +STATICFILES_DIRS = [ + BASE_DIR / "static", +] + # Default primary key field type # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field diff --git a/herreweb_backend/project/models.py b/herreweb_backend/project/models.py index 571b747..3458eee 100644 --- a/herreweb_backend/project/models.py +++ b/herreweb_backend/project/models.py @@ -5,7 +5,7 @@ class Project(models.Model): title = models.CharField(max_length=100) description = models.TextField(default="No description added") status = models.IntegerField(default=ProjectStatus.RUNNING) - image = models.ImageField(null=True, blank=True) + image = models.ImageField(upload_to="static/project_images/", null=True, blank=True) rtd_url = models.CharField(max_length=200, null=True, blank=True) url = models.CharField(max_length=200, null=True, blank=True) visible = models.BooleanField(default=False) diff --git a/herreweb_backend/project/views.py b/herreweb_backend/project/views.py index 38e9ca3..a384dfa 100644 --- a/herreweb_backend/project/views.py +++ b/herreweb_backend/project/views.py @@ -5,4 +5,4 @@ from .models import Project class ProjectView(viewsets.ModelViewSet): serializer_class = ProjectSerializer - queryset = Project.objects.all() \ No newline at end of file + queryset = Project.objects.all() diff --git a/herreweb_backend/static/GHIDRA_1.png b/herreweb_backend/static/GHIDRA_1.png new file mode 100644 index 0000000..659c3f9 Binary files /dev/null and b/herreweb_backend/static/GHIDRA_1.png differ diff --git a/herreweb_backend/static/project_images/GHIDRA_1.png b/herreweb_backend/static/project_images/GHIDRA_1.png new file mode 100644 index 0000000..659c3f9 Binary files /dev/null and b/herreweb_backend/static/project_images/GHIDRA_1.png differ diff --git a/herreweb_backend/static/project_images/GHIDRA_1_nL03hOP.png b/herreweb_backend/static/project_images/GHIDRA_1_nL03hOP.png new file mode 100644 index 0000000..659c3f9 Binary files /dev/null and b/herreweb_backend/static/project_images/GHIDRA_1_nL03hOP.png differ diff --git a/herreweb_backend/static/project_images/logo-600w.png b/herreweb_backend/static/project_images/logo-600w.png new file mode 100644 index 0000000..9932dcc Binary files /dev/null and b/herreweb_backend/static/project_images/logo-600w.png differ diff --git a/herreweb_backend/static/project_images/tallies.jpeg b/herreweb_backend/static/project_images/tallies.jpeg new file mode 100644 index 0000000..75acfbc Binary files /dev/null and b/herreweb_backend/static/project_images/tallies.jpeg differ