https://github.com/j3rrryy/school_464
Modern school website. Written using Django
https://github.com/j3rrryy/school_464
certbot django docker nginx postgresql school-website
Last synced: 4 months ago
JSON representation
Modern school website. Written using Django
- Host: GitHub
- URL: https://github.com/j3rrryy/school_464
- Owner: j3rrryy
- License: mit
- Created: 2023-07-13T23:53:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-12-26T15:12:20.000Z (6 months ago)
- Last Synced: 2025-12-28T03:23:09.260Z (6 months ago)
- Topics: certbot, django, docker, nginx, postgresql, school-website
- Language: Python
- Homepage: https://school-464-spb.ru
- Size: 3.05 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# School website
## :book: Key features
- RSS
- PWA
- Dynamic menu
- Dynamic footer
- Supports XML maps
- Custom error pages
- In-memory caching
- Database - PostgreSQL
- Easy editing of HTML pages
- Version for the visually impaired
- Automatic conversion of images to WebP
- Automatic cleaning of unused media files
## :computer: Requirements
- Docker
## :hammer_and_wrench: Getting started
- Copy `.env` file from `examples/dev/` to `dev/` folder and fill it in
- **(For prod)** Copy `.env` file from `examples/prod/` to `prod/` folder and fill it in
- **(For prod)** Copy `nginx.conf` file from `examples/prod/` to `prod/` folder and fill it in
- **(For prod)** Copy `docker-compose.cert.yml` file from `examples/prod/` to `prod/` folder and fill it in
### :rocket: Start
- Run the **dev ver.**
```shell
docker compose -f docker-compose.dev.yml up --build -d
```
- Run the **prod ver.** and get a SSL certificate
- Create the directory on the server
```shell
mkdir -p ./school_464/
```
- Use SCP to copy the prod files to the server
```shell
scp -r ./prod/. @:./school_464/
```
- Run the deploy script
```shell
bash deploy.sh
```
### :construction_worker: Maintenance
- Create superuser
- Get access to the container
```shell
docker exec -it sh
```
- Use this command
```shell
uv run python manage.py createsuperuser
```
### :x: Stop
```shell
docker compose -f docker-compose..yml stop
```