https://github.com/bilgeswe/swe573
Building a website from scratch: Django, Python > Backend | HTML & CSS > Frontend | API | PostgreSQL > DB | Learning GitHub, Issue Management and Version&Release Management along the way
https://github.com/bilgeswe/swe573
api css django git github-action html json project-management python python3 release version-control
Last synced: 4 months ago
JSON representation
Building a website from scratch: Django, Python > Backend | HTML & CSS > Frontend | API | PostgreSQL > DB | Learning GitHub, Issue Management and Version&Release Management along the way
- Host: GitHub
- URL: https://github.com/bilgeswe/swe573
- Owner: bilgeswe
- Created: 2024-09-27T13:51:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-20T12:15:53.000Z (over 1 year ago)
- Last Synced: 2025-07-11T22:03:19.239Z (11 months ago)
- Topics: api, css, django, git, github-action, html, json, project-management, python, python3, release, version-control
- Language: HTML
- Homepage:
- Size: 681 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Initialize the venv
python3 -m venv venv
# Activate venv
source venv/bin/activate
# Install requirements
pip3 install -r requirements.txt
# Migrate database
python3 forum/manage.py migrate
# Create admin user
python3 forum/manage.py createsuperuser
# Collect static files
python3 forum/manage.py collectstatic
# Run server
python3 forum/manage.py runserver
# Login trough admin panel
http://127.0.0.1:8000/admin/
## When Docker is the prefered way to deploy
# Docker compose up and build
docker-compose up -d --build
# Docker run migrations
docker-compose exec web python forum/manage.py migrate
# Docker compose down
docker-compose down
# Docker create superuser
docker-compose exec web python forum/manage.py createsuperuser
## When running tests, make sure you're in where manage.py is located
python manage.py test --settings forum.settings_dev