Skip to content

Instantly share code, notes, and snippets.

View koushikromel's full-sized avatar
🐍
Python | FastAPI | Django

Koushik Romel koushikromel

🐍
Python | FastAPI | Django
View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@koushikromel
koushikromel / deploy-django.md
Created February 10, 2023 04:53 — forked from rmiyazaki6499/deploy-django.md
Deploying a Production ready Django app on AWS

Deploying a Production ready Django app on AWS

In this tutorial, I will be going over to how to deploy a Django app from start to finish using AWS and EC2. Recently, my partner Tu and I launched our app Hygge Homes (a vacation home rental app for searching and booking vacation homes based off Airbnb) and we wanted to share with other developers some of the lessons we learned along the way.

Following this tutorial, you will have an application that has:

  • An AWS EC2 server configured to host your application
  • SSL-certification with Certbot
  • A custom domain name
  • Continuous deployment with Github Actions/SSM Agent
@koushikromel
koushikromel / addMultipleTimes.py
Created December 2, 2022 10:51
Add multiple times in python
import datetime
timeList = ['10:00:00', '0:49:00']
mysum = datetime.timedelta()
for i in timeList:
(h, m, s) = i.split(':')
d = datetime.timedelta(hours=int(h), minutes=int(m), seconds=int(s))
mysum += d
print(str(mysum))