Skip to content

The django-rest-framework api for my personal site, connorkelley.in

Notifications You must be signed in to change notification settings

connork18/personal-site-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

personal-site-api

The django-rest-framework api for my personal site, connorkelley.in

pyenv activate blog-venv-2
python manage.py runserver

activate venv on the aws eb server

source /var/app/venv/*/bin/activate
export $(sudo cat /opt/elasticbeanstalk/deployment/env | xargs)
cd /var/app/current
python manage.py shell
from blog.models import Post
Post.objects.all().delete()
from blog.temp.post_migrator import migrate_posts
migrate_posts()

Deploy to elastic beanstalk

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html#python-django-configure-for-eb

Note--make sure you commit changes to git repo before deploying

Database

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-rds.html

Create admin superuser

About

The django-rest-framework api for my personal site, connorkelley.in

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages