Skip to content

Instantly share code, notes, and snippets.

@jyr
Created June 23, 2009 04:03
Show Gist options
  • Save jyr/134351 to your computer and use it in GitHub Desktop.
Save jyr/134351 to your computer and use it in GitHub Desktop.
Instalar mysqldb
* Descargar mysqldb y hacer lo propio.
* Ubicar el path de mysql_config y cambiarlo en setup_posfix.py en la variable mysql_path
* Es necesario tener gcc, en caso de no tenerlo instalarlo desde los ports
port install gcc43
* editar _mysql.c para borrar las lineas 37-39:
#ifndef uint
#define uint unsigned int
#endif
* cambiar
uint port = MYSQL_PORT;
uint client_flag = 0;
por
unsigned int port = MYSQL_PORT;
unsigned int client_flag = 0;
* Ejecutar
#python setup.py build
#python setup.py install
Instalar django
Listo, correr el servidor y entrar a http://0.0.0.0:8000
python manage.py runserver 0.0.0.0:800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment