IT-info > Python

Python

Python info

PyPI - the Python Package Index

Python, Django, & MySQL on Windows 7, Part 1: Installing Python, Pip, and iPython
Why use pip over easy_install?

Django - MySQL notes

pip installation

Install pip (pip is included dy default in Python 3.4 and later)

To install pip, securely download get-pip.py. [2]

Then run the following (which may require administrator access):

python get-pip.py

pip install error: Unknown archive format: .whl

Django - Quick install guide
Starting a Django Project
Django - Databases
How do I remove packages installed with Python's easy_install?

sing MongoDB as your primary Django database

pip install mongoengine==0.8.0

MONGODB_USER = 'mongouser'
_MONGODB_PASSWD = 'password'
_MONGODB_HOST = 'thehost'
_MONGODB_NAME = 'thedb'
_MONGODB_DATABASE_HOST = \
    'mongodb://%s:%s@%s/%s' \
    % (_MONGODB_USER, _MONGODB_PASSWD, _MONGODB_HOST, _MONGODB_NAME)

mongoengine.connect(_MONGODB_NAME, host=_MONGODB_DATABASE_HOST)