Compare commits
7 Commits
33661e14da
...
pre-prod
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0380bdb4a6 | ||
| 65df741514 | |||
| 07d805788e | |||
| 12ed8e62f8 | |||
| df04350128 | |||
| b1f38cc9d9 | |||
|
|
99c0b4ae6d |
4
Makefile
4
Makefile
@@ -1,14 +1,14 @@
|
||||
.SHELLFLAGS := -ec
|
||||
|
||||
prod:
|
||||
docker compose down
|
||||
docker compose --env-file .env -f ./compose.yaml -f ./.docker-compose-files/compose.prod.yaml down
|
||||
docker compose --env-file .env -f ./compose.yaml -f ./.docker-compose-files/compose.prod.yaml up -d --build
|
||||
docker compose exec web python manage.py collectstatic --noinput
|
||||
docker compose exec web python manage.py check --deploy
|
||||
docker compose exec web python manage.py migrate
|
||||
|
||||
dev:
|
||||
docker compose down
|
||||
docker compose -f ./compose.yaml -f ./.docker-compose-files/compose.dev.yaml down
|
||||
docker compose -f ./compose.yaml -f ./.docker-compose-files/compose.dev.yaml up --build -d
|
||||
docker compose exec web python manage.py collectstatic --noinput
|
||||
docker compose exec -it web sh
|
||||
|
||||
@@ -43,6 +43,8 @@ To run the website 3 options have been provided
|
||||
For development purposes only as the src folder has been mounted in the container to allow for the making of changes without rebuilding the entire image.
|
||||
Properly utilising this also requires the DEBUG environment variable to be set to TRUE.
|
||||
|
||||
Setup to allow live-reloading without manual intervention after normal file changes (i.e. updates to css, html and python functions).
|
||||
|
||||
```shell
|
||||
make dev
|
||||
```
|
||||
|
||||
@@ -2,23 +2,59 @@
|
||||
|
||||
This document contains the wanted feature list and their current state.
|
||||
|
||||
## Basic Pages
|
||||
## Basic Templates
|
||||
- [] Nav-bar ~ Adjust based on permission status
|
||||
- [] Low-bar ~ KVK etc.
|
||||
- [] Basic page layout
|
||||
|
||||
-[] Homepage
|
||||
-[] Boards
|
||||
-[] Committee page
|
||||
-[] Contact page
|
||||
-[] Donator page/Friends of Quatsh
|
||||
-[] Membership page
|
||||
## Pages
|
||||
|
||||
## Main Features
|
||||
### Must
|
||||
|
||||
-[] Signup form with email SMTP link.
|
||||
-[] Gallery
|
||||
-[] Login page
|
||||
- [] Homepage
|
||||
- [] Signups
|
||||
- [] Contact
|
||||
- [] Contribution-Cost
|
||||
|
||||
### Should
|
||||
- [] Login page
|
||||
- [] Gallery
|
||||
- [] Boards
|
||||
|
||||
### Could
|
||||
- [] Committee page
|
||||
- [] Donator page/Friends of Quatsh
|
||||
|
||||
## Features
|
||||
|
||||
- [] Signup form with email SMTP link.
|
||||
- [] Gallery
|
||||
- [] Login page
|
||||
|
||||
## Security
|
||||
|
||||
- [] SSL implementation
|
||||
- [] ACME SSL certificate
|
||||
|
||||
## Extra's
|
||||
|
||||
-[] Allow google-workspace login with SSO?
|
||||
-[] Add Redis for Caching
|
||||
-[] Setup SMTP with automatic switching to in-mem email saving OR print to stdout when in DEBUG mode.
|
||||
- [] Allow google-workspace login with SSO?
|
||||
- [] Add Redis for Caching
|
||||
- [] Add [Celery](https://docs.celeryq.dev/en/stable/index.html#) for async background-[task](https://docs.djangoproject.com/en/6.0/topics/tasks/) completion.
|
||||
- [] Setup SMTP with automatic switching to in-mem email saving OR print to stdout when in DEBUG mode.
|
||||
- [] Split-Storage setup for authenticated-only file access, such as private gallery pictures.
|
||||
|
||||
## Priority List
|
||||
|
||||
- [] General layout template
|
||||
- [] Nav-bar
|
||||
- [] Homepage
|
||||
- [] Lower-bar ~ KVK
|
||||
- [] Signups page
|
||||
- [] Calender (Google calender)
|
||||
- [] Gallery
|
||||
- [] CCP page
|
||||
- [] Contact page
|
||||
- [] Boards
|
||||
- [] Committee page
|
||||
- [] Donator page/Friends of Quatsh
|
||||
|
||||
@@ -20,3 +20,12 @@ After running this command a Django Migration has to be run to remake the tables
|
||||
``` shell
|
||||
docker exec quatsh-website-web-1 python manage.py migrate
|
||||
```
|
||||
|
||||
## Make - errors
|
||||
|
||||
If you see an error looking as follows docker isn't actually running.
|
||||
```
|
||||
PS C:\*\Quatsh-Website> docker compose ls
|
||||
error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.50/containers/json?filters=%7B%22label%22%3A%7B%22com.docker.compose.config-hash%22%3Atrue%2C%22com.docker.compose.project%22%3Atrue%7D%7D": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
|
||||
```
|
||||
|
||||
|
||||
4
src/gallery/templates/gallery/index.html
Normal file
4
src/gallery/templates/gallery/index.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% block title %}Home{% endblock %}
|
||||
{% block content %}<h1>Welcome</h1>{% endblock %}
|
||||
9
src/gallery/urls.py
Normal file
9
src/gallery/urls.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
app_name = "gallery"
|
||||
|
||||
urlpatterns = [
|
||||
path("", views.index, name="index"),
|
||||
]
|
||||
@@ -1,3 +1,5 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
|
||||
def index(request):
|
||||
return render(request, "gallery/index.html")
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -2,6 +2,8 @@ from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
app_name = "polls"
|
||||
|
||||
urlpatterns = [
|
||||
# ex: /polls/
|
||||
path("", views.index, name="index"),
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
<nav>
|
||||
<a href="{% url 'core:index' %}">Home</a>
|
||||
<ul>
|
||||
<li><a href="{% url 'core:index' %}">Home</a></li>
|
||||
<li><a href="{% url 'polls:index' %}">Polls</a></li>
|
||||
<li><a href="{% url 'gallery:index' %}">Gallery</a></li>
|
||||
</ul>
|
||||
<!-- rest of your topbar -->
|
||||
</nav>
|
||||
|
||||
@@ -35,6 +35,7 @@ SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||
INSTALLED_APPS = [
|
||||
"polls.apps.PollsConfig",
|
||||
"core.apps.CoreConfig",
|
||||
"gallery.apps.GalleryConfig",
|
||||
"django.contrib.admin",
|
||||
"django.contrib.auth",
|
||||
"django.contrib.contenttypes",
|
||||
|
||||
@@ -23,6 +23,7 @@ from django.urls import include, path
|
||||
urlpatterns = [
|
||||
path("", include("core.urls")),
|
||||
path("polls/", include("polls.urls")),
|
||||
path("gallery/", include("gallery.urls")),
|
||||
path("admin/doc/", include("django.contrib.admindocs.urls")),
|
||||
path("admin/", admin.site.urls),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user