Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

JV-conseil-Internet-Consulting/How-to-run-Django-on-macOS-High-Sierra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Django Python 3.7.3 macOS High Sierra Donate with PayPal License BSD 3-Clause Follow JV conseil – Internet Consulting on Twitter

How To Install Django on macOS High Sierra

src: https://appdividend.com/2018/03/28/how-to-install-django-in-mac/#Step_1_Install_Python_on_Mac

Set up virtualenv

virtualenv ~/virtualenv

Launch virtualenv

source ~/virtualenv/bin/activate

Requirements

src: https://gist.github.com/Siltaar/9441a525d3a580311035fa2f3f431baa

requirements.txt file installs all the necessary modules for your project:

cd ~/virtualenv
sudo pip3 install -r ~/virtualenv/requirements.txt

Launch Django project

cd ~/virtualenv/rioanalytics
python3 ~/virtualenv/rioanalytics/manage.py runserver

Creating an admin user

src: https://docs.djangoproject.com/en/2.2/intro/tutorial02/

cd ~/virtualenv/rioanalytics
python3 ~/virtualenv/rioanalytics/manage.py createsuperuser
Username:
Email address:
Password:

Extract Sqlite Database

src: https://stackoverflow.com/questions/3034910/whats-the-best-way-to-migrate-a-django-db-from-sqlite-to-mysql

cd ~/virtualenv/rioanalytics
python3 ~/virtualenv/rioanalytics/manage.py dumpdata > ~/virtualenv/rioanalytics/datadump.json
References: