Skip to content

Instantly share code, notes, and snippets.

View sundeo1's full-sized avatar

Sunday Deogratias sundeo1

View GitHub Profile
@sundeo1
sundeo1 / models.py
Created November 3, 2022 13:02 — forked from niktto/models.py
Using Django Rest Framework to ease csv generation
from django.db import models
class SomeModel(models.Model):
email = models.EmailField()
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
@sundeo1
sundeo1 / django_deploy.md
Created February 10, 2022 05:38 — forked from bradtraversy/django_deploy.md
Django Deployment - Digital Ocean

Django Deployment to Ubuntu 18.04

In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc

Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server

Create A Digital Ocean Droplet

Use this link and get $10 free. Just select the $5 plan unless this a production app.