Skip to content

Instantly share code, notes, and snippets.

@fzrhrs
Last active November 9, 2016 03:28
Show Gist options
  • Save fzrhrs/721844cbaf30aa3c209458ce12cc496a to your computer and use it in GitHub Desktop.
Save fzrhrs/721844cbaf30aa3c209458ce12cc496a to your computer and use it in GitHub Desktop.
Setup django on Mac

Python 2.7 django pip install django

to use mysql pip install MySQL-Python or maybe pip install mysqlclient

database example:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'helloworldp',
        'USER': 'root',
        # 'PASSWORD': '',
        # 'HOST': '',
        # 'PORT': '',
    }
}

Ubuntu

sudo apt-get install python-dev sudo pip install mysqlclient

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