Skip to content

bweez/try-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn Django tutorial

Purpose

I am learning Django. This is a practice project.

Reference Guides

Activate a virtual env in the current directory for Mac

source bin/activate

Run tests

python manage.py test

Run server locally

python manage.py runserver

Generate a Django Secret Key

Here is a one-liner that can be run from the cli.

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

Run Migrations to Add or Update DB models

# create new migrations based on model changes
python manage.py makemigrations
# then run migrations
python manage.py migrate

Deploy to Digital Ocean

Reference blog post

About

Learning Django repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors