Skip to content

chicolucio/django-resume

Repository files navigation

Django Resume

author contributions welcome Build Status

Simple CV / resume Django app. Available at: https://resumeflsb.herokuapp.com/

Usage

  1. clone the repo
  2. create a virtual environment with Python 3.8+ (Needed for Django 4.0)
  3. activate the virtual environment
  4. install dependencies
  5. configure instance .env
  6. run tests
git clone https://github.com/chicolucio/django-resume
cd django-resume
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp contrib/env-sample .env
pytest

The HTML/CSS files in this repo were adapted from this video.

Deploy and CI

  1. create a Heroku instance
  2. send config to Heroku
  3. define a SECRET_KEY to the instance
  4. set DEBUG=False
  5. send code to Heroku
heroku create nameyourinstance

heroku config:set SECRET_KEY='set your secret key'
heroku config:set DEBUG=False
heroku config:set ALLOWED_HOSTS=.herokuapp.com

git push heroku master --force

You can use the following function to generate your secret key:

from django.core.management.utils import get_random_secret_key  
get_random_secret_key()

Sure, you can use an oneliner in your terminal:

python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'

You can use the .travis.yml to config your Travis CI. And .pyup.yml to config PyUp.

More