new installations tryout problem

2015-06-25 Thread Elim Qiu
Installed django recently, followed the django tutorial pdf to some where arround page 20. But got problems... It's on ubuntu 14.04, I have ipython installed and the following command some how brings up ipython. And it will raise exception for command

How to specify utf8 in models.py

2012-05-17 Thread Elim Qiu
In the tutorial poll app, we have models.py like from django.db import models # Create your models here. class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): poll =

Re: django and unicode

2011-10-12 Thread Elim Qiu
Thanks refreegrata. I know PostgreSQL is a good RDBMS, but tough on encoding... I'll start django with MySQL. By doing this, mysql shell cannot do much data manipulation already... In php, utf8 tables is not enough. Every time connect to mysql database, you need to say mysql_query("SET

Re: django and unicode

2011-10-11 Thread Elim Qiu
Elim Qiu <elim@gmail.com> wrote: >> I just start try django 1.3.1, still in the step I of the tutorial, >> but noticed that the tables created is in latin1 encoding while I >> prefer utf8 for the entire app. > > This https://docs.djangoproject.com/en/dev/

django and unicode

2011-10-11 Thread Elim Qiu
I just start try django 1.3.1, still in the step I of the tutorial, but noticed that the tables created is in latin1 encoding while I prefer utf8 for the entire app. I don't want to set the database default char encoding to be utf8 since I have other non-django apps. What is the proper way of

Re: Why Django Apps Suck

2010-09-22 Thread Elim Qiu
Thanks Russell Keith-Magee's comments. Very helpful. I think the main question is still about the whole architecture. I'm a WebObjects developer for many years. I think WebObjects' architecture is great: (1) EOModel: a set of propertyList files describes the mapping of database tables to

Re: mod_wsgi, apache, windows XP

2010-09-06 Thread Elim Qiu
I followed a installation instruction and got Apache/2.2.15 (Win32) SVN/1.6.12 mod_wsgi/3.3 Python/2.7 PHP/5.2.5 DAV/2 installed OK. Meaning that I inserted the following lines to my httpd.conf: LoadModule wsgi_module modules/mod_wsgi.so WSGIScriptAlias /wsgi "F:/Apache/appwsgi/wsgi_handler.py"

Re: set utf8 as default database char set

2010-08-31 Thread Elim Qiu
, then it's fine and I'll move forward:) Thanks Karen On Tue, Aug 31, 2010 at 5:10 AM, Karen Tracey <kmtra...@gmail.com> wrote: > On Tue, Aug 31, 2010 at 3:14 AM, Elim Qiu <elim@gmail.com> wrote: > >> I'm in tutorial 2. Looks like I did something wrong. Please help.

Re: set utf8 as default database char set

2010-08-30 Thread Elim Qiu
Thanks Rolando Espinoza La Fuente ! On Mon, Aug 30, 2010 at 8:27 PM, Rolando Espinoza La Fuente < dark...@gmail.com> wrote: > On Mon, Aug 30, 2010 at 1:58 PM, elim wrote: > > In my MySQL's my.ini, I have > > > > default-character-set=latin1 > > > > But I like to use utf-8