sudo pip3.6 install Django==1.11.7
follow the instructions https://docs.djangoproject.com/en/1.11/intro/tutorial01/
cd ~
vi .bash_profile
insert this line:
alias python=python3.6
source .bash_profile
django-admin startproject mysite
cd mysite/
python manage.py runserver
Performing system checks... System check identified no issues (0 silenced). You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. Run 'python manage.py migrate' to apply them. November 22, 2017 - 19:02:58 Django version 1.11.7, using settings 'mysite.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C.
in your browser enter http://127.0.0.1:8000/
No comments:
Post a Comment