OK, after trying to setting up my virtual environment for django I was struggling working with mysql.
What I was getting is after running:
$ pip install MySQL-python EnvironmentError: mysql_config not found …63 more words
... urlpatterns = patterns('', url(r'^login/$', views.login, name='login'), ... )
from django.contrib.auth import (login as auth_login, authenticate) from django.shortcuts import render from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse ... 411 more words
I finally got the time to write a Django tutorial. In this tutorial we are building URL Shortener. If you are confused with what we are building then we are building something similar to ( 2,589 more words
$ sudo apt-get install gettext $ sudo pip3 install -U Django $ pwd ~/Projects/django/mysite/mysite $ vi settings.py
MIDDLEWARE_CLASSES = ( … 'django.middleware.locale.LocaleMiddleware', ) ... LANGUAGE_CODE = 'ko-KR' ... 45 more words