Skip to content

kjon-life/kjon_django

Repository files navigation

Hello! Should we talk?

This is a quasi-realistic exercise with Fillerama in Django for jonhwilliams.com. You might notice the content seems disconnected, but edgy, irreverent, with a subtle undercurrent of poignancy. One of these weekends we might decide to put real content in there, but then we'ld have to charge you a subscription, implement modals, and assure you we respect your privacy and would *never* accidentally sell your address.
  • 👀 build: python venv managed w asdf
  • 🌱 version control: github
  • 💞️ deploy: cost-effective serverless hosting
A Maia

kjon · django

GitHub commit activity GitHub License GitHub top language W3C Validation

I love meeting new people. To connect:

Project Overview:

  • Gunicorn is a Python WSGI HTTP Server for UNIX, perfect for serving Django projects in production
  • Postgres
  • WhiteNoise to serve static files
  • Authenticate with 2FA
  • GitHub Actions deploys main to dev automatically

Tech stack:

  • requirements
    • django-environ - separate local,dev,prod (in practice had to use environment variables to avoid commiting things to github which should not be there)
  • Postgres
  • Docker - to package Django apps as image (this is a fly.io thing)
  • flyctl - to build images, config toml, and deploy
  • GitHub Actions - for CI/CD (just because you can)
  • Fly.io - for the serverless hosting platform (turns off for the 99.99999 percent of the time that no one is visiting the site)

flyctl is a CLI tool from Fly.io You can read about it here.

History:

Serverless hosted Django w Postgres

2024-04-07 2231 HRS

fly secrets set CSRF_TRUSTED_ORIGINS='https://kjon-django.fly.dev'
fly secrets set ALLOWED_HOSTS='kjon-django.fly.dev'

Local Django

  • Postgres
  • Using a templatemo-scholar template

Acknowledgements:

This project depends on the copious contributions of others and is possible because of the following services:

  • Porkbun - Domain registration and DNS management
  • Fly.io - Application hosting platform

About

django developer portfolio

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published