Created
June 22, 2018 14:49
-
-
Save mgmanalili/e60dbe61e8fd4ed29cac126e0295da2c to your computer and use it in GitHub Desktop.
Install Django locally
This file contains 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
brew install python3 | |
pip install argparse (optional) | |
pip install virtualenv | |
mkdir <your_fancy_project> | |
cd <your_fancy_project> | |
mkdir <your_fancy_repo> | |
virtualenv -p /usr/local/bin/python3 env | |
source env/bin/activate | |
source activate | |
*source deactivate | |
pip install django | |
django-admin startproject <your_fancy_repo> | |
python manage.py runserver | |
cd <your_fancy_repo> | |
python manage.py startapp howdy | |
python manage.py runserver | |
Go to (http://127.0.0.1:8000/) | |
#---------Re-run server after closing browser------------------# | |
cd <your_fancy_project> | |
virtualenv -p /usr/local/bin/python3 env | |
source env/bin/activate (your terminal should have (env) prefix) | |
cd <your_fancy_repo> | |
python manage.py runserver | |
#-----------Changing admin username / password---------------# | |
python manage.py migrate | |
python manage.py createsuperuser | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment