Skip to content

Instantly share code, notes, and snippets.

@vishnun
Created February 17, 2017 00:09
Show Gist options
  • Save vishnun/1533580952ee3f388048188892eb5708 to your computer and use it in GitHub Desktop.
Save vishnun/1533580952ee3f388048188892eb5708 to your computer and use it in GitHub Desktop.
Installing django on mac

http://www.django-rest-framework.org/tutorial/quickstart/#project-setup

  1. install python
  2. install apache and mod_wsgi
  3. install pip
  4. install virtualenv
  5. create a virtual env in the directory where you want to build your app. cd /path/to/directory/where/app/will/reside virtualenv . source bin/activate
  6. Install django in this location pip install Django
  7. Create the app using startproject command django-admin startproject mysite
  8. Test if the server runs successfully django-admin startproject mysite
  9. Install the rest framework pip install djangorestframework
  10. Migrate python manage.py migrate
  11. Create super user python manage.py createsuperuser

to be continued...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment