Re: django seems does not support mysql 5.7.9

2015-11-17 Thread Pengfei Xue
thanks, i reinstall mysql-python, it's working now, very frustrating. On Tuesday, November 17, 2015 at 9:27:03 PM UTC+8, Tom Evans wrote: > > On Tue, Nov 17, 2015 at 11:44 AM, Pengfei Xue <pen...@gmail.com > > wrote: > > yesterday, i upgraded my local mysql server to 5.

Re: django seems does not support mysql 5.7.9

2015-11-17 Thread Pengfei Xue
thanks, i reinstall mysql-python, it's working now, very frustrating. On Tuesday, November 17, 2015 at 9:27:03 PM UTC+8, Tom Evans wrote: > > On Tue, Nov 17, 2015 at 11:44 AM, Pengfei Xue <pen...@gmail.com > > wrote: > > yesterday, i upgraded my local mysql server to 5.

django seems does not support mysql 5.7.9

2015-11-17 Thread Pengfei Xue
yesterday, i upgraded my local mysql server to 5.7.9 (mysql Ver 14.14 Distrib 5.7.9, for osx10.11 (x86_64) using EditLine wrapper), and found i can not make my app run anymore, find this error, is there some one else get this error before? MySQL-python==1.2.5 Django==1.8.6 File

回复: Customizing session id strings?

2012-08-16 Thread Pengfei Xue
git://github.com/martinrusev/django-redis-sessions.git take a look at this implementation for redis I think that's what you want -- Sincerely, Pengfei Xue 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 在 2012年8月17日星期五,上午12:12,Roy

回复: Stuck on "ViewDoesNotExist" last step of tutorial part 4

2012-08-15 Thread Pengfei Xue
there's no function in views.py, you should define that 'index' handler -- Sincerely, Pengfei Xue 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 在 2012年8月15日星期三,上午11:16,Sky 写道: > I've having a similar problem here using Django

回复: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Pengfei Xue
http://peng-fei-xue.blogspot.com/2012/06/howto-create-django-application-in.html check this post -- Sincerely, Pengfei Xue 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 在 2012年8月12日星期日,下午7:54,surya 写道: > I am really fed

回复: log file will be overwrite when use prefork?

2012-08-10 Thread Pengfei Xue
you are using TimedRotatingFileHandle, so it will rotate your log into a new file with the name as xxx.20120810, and start store new entries in 'filename'( stat.txt, error.txt) -- Sincerely, Pengfei Xue 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 已使用 Sparrow (http

回复: login or login_decorator issue

2012-08-09 Thread Pengfei Xue
http://www.djangobook.com/en/2.0/chapter14/ take a quick look at this article, i think it will help you out -- Sincerely, Pengfei Xue 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 在 2012年8月9日星期四,下午3:39,mapapage 写道

回复: login or login_decorator issue

2012-08-09 Thread Pengfei Xue
-- Sincerely, Pengfei Xue 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 在 2012年8月9日星期四,下午2:33,mapapage 写道: > > I wrote this custom authentication backend: > > from django.contrib.auth.models import User, check_pas

回复: login or login_decorator issue

2012-08-08 Thread Pengfei Xue
I think what you need is a new auth backend which return a user object -- Sincerely, Pengfei Xue 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 在 2012年8月8日星期三,下午6:17,mapapage 写道:I > for the login I do (username must be the id field