Last active
September 25, 2018 19:31
-
-
Save djstein/45f8403d55919eeaaff88a2f59839c9b to your computer and use it in GitHub Desktop.
Simple Django Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/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 [email protected] --email [email protected] | |
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