Skip to content

Instantly share code, notes, and snippets.

@djstein
Last active September 25, 2018 19:31
Show Gist options
  • Save djstein/45f8403d55919eeaaff88a2f59839c9b to your computer and use it in GitHub Desktop.
Save djstein/45f8403d55919eeaaff88a2f59839c9b to your computer and use it in GitHub Desktop.
Simple Django Install
!/usr/bin/env bash
# Install Brew and Python3
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew install python3
# Install Python3 Manually
curl https://www.python.org/ftp/python/3.7.0/python-3.7.0-macosx10.9.pkg > python-3.7.0-macosx10.9.pkg
sudo installer -store -pkg python-3.7.0-macosx10.9.pkg -target /
# Install Pipenv
brew install pipenv
# New Django Project
mkdir test-app
cd mkdir
pipenv --three
pipenv install django
pipenv shell
django-admin startproject backend
python manage.py migrate
python manage.py createsuperuser --username user@mail.com --email user@mail.com
python manage.py runserver
# second terminal
open http://localhost:8000/admin/login
# Extras
pipenv install djangorestframework
pipenv install black=18.6b4 --dev
pipenv install pylint --dev
pipenv install ipdb --dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment