XMLRPC semms not work in 1.5.1

2013-04-10 Thread yillkid
Hi all I use XMLRPC with this link: https://code.djangoproject.com/wiki/XML-RPC and work fine in Django 1.4.3 But now I upgrade to 1.5.1 but not work error message as below: http://paste.ubuntu.com/5697269/ -- You received this message because you are subscribed to the Google Groups "Django

Signal handler not work

2013-01-17 Thread yillkid
Hi all I want save B model when A mode has been saved, my code as below : http://codepad.org/4ogGh6ru But not works, anybody help me ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Sharing Django Users Across Projects

2012-09-06 Thread yillkid
Hi all ! I want to share user across projects. And after I follow this document : http://dustinfarris.com/2012/2/sharing-django-users-and-sessions-across-projects/ I got error message: http://dpaste.com/797286/ Seems duplicate key with two databases, so how I should do ? -- You received this

Authentication across projects

2012-09-05 Thread yillkid
Hi all . I have two projects (A and B), different django installation, database, but same host. I want the B projects share A project User database table. So A user account can login into B project site, but we don't create any user account in B project. and I have already search many

to_field can not use primary key of related object.

2012-08-23 Thread yillkid
HI all. I write a model: class UserGroup(models.Model): groups = models.ForeignKey(Group, to_field='id') and when I into admin backend: According to the Django document the

Django form save failed.

2012-07-17 Thread yillkid
Hi all. I want to extend my "/admin/auth/group/add/" interface. Now widget is show correctly, but can't write into DB. Show my code ... models.py: # Set default encoding, 2012/06/26, add by suskind import sys reload(sys) sys.setdefaultencoding('utf8') from django.db import models from

Re: Extend groups admin interface

2012-07-16 Thread yillkid
upload a screen shut I want to extend it: https://picasaweb.google.com/lh/photo/WF1hH23eRHse3IsmmERcDdMTjNZETYmyPJy0liipFm0?feat=directlink yillkid於 2012年7月16日星期一UTC+8下午3時35分23秒寫道: > > Hi all ! > > I want to extend my group admin interface, > url is "/admin/auth/group/add/&q

Extend groups admin interface

2012-07-16 Thread yillkid
Hi all ! I want to extend my group admin interface, url is "/admin/auth/group/add/" Now my interface have 2 fields 1. name 2. permissions And now I want to add a country field. In UserProfile extend I just follow this link and work very good:

SimpleListFilter filter UserProfile

2012-06-28 Thread yillkid
Hi all ! I want filter a field of UserProfile (field name: timestamp), models.py: http://dpaste.com/764723/ admin.py: http://dpaste.com/764724/ But when I press the filter, browser show: http://dpaste.com/764725/ --- --- --- --- --- --- --- --- --- --- According the error message, I

Does UserProfile any changed in new version ?

2012-06-25 Thread yillkid
Hi all ! When I use UserProfile/UserCreationForm in Django 1.1, everything is OK! But in Django 1.4, seems I can not hook my User Profile in Django User model, when my UserProfile register into admin.site, I need reload the browser 2nd times or error message will be show:

autodiscover problem in Django 1.4

2012-06-22 Thread yillkid
Hi all ! When I use admin.autodiscover() in urls.py, browser will show "The model User is not registered",but reload again, show normally, just happen in version 1.4 without 1.1, something wrong? -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Make a number range filter in change list

2012-06-11 Thread yillkid
anybody give me a hint ? I find this: http://djangosnippets.org/snippets/1104/ But ... how to use that in change list ? yillkid於 2012年6月8日星期五UTC+8下午5時37分20秒寫道: > > Hi all, I want to add a filter in my change list, > user can input maximum and minimum number, > after press ok butt

Make a number range filter in change list

2012-06-08 Thread yillkid
Hi all, I want to add a filter in my change list, user can input maximum and minimum number, after press ok button, template will render output data in change list. There is my model.py : class test(models.Model): odd_even = models.DecimalField(max_digits = 2, decimal_places = 2) I have

Re: Checkbox becomes combox ... why ?

2012-05-30 Thread yillkid
Thanks, but not main problems. Even if I remove "maybe" items, same incorrect outputs. Dennis Lee Bieber於 2012年5月31日星期四UTC+8上午12時09分44秒寫道: > > On Wed, 30 May 2012 02:24:53 -0700 (PDT), yillkid <yill...@gmail.com> > declaimed the following in gmane.comp.python.djang

Checkbox becomes combox ... why ?

2012-05-30 Thread yillkid
Hi all. I want to create a checkbox in my user register page, all of my code as below: from django.utils.translation import ugettext as _ import sys import datetime reload(sys) sys.setdefaultencoding('utf8') from django.db import models from django.contrib.auth.admin import UserAdmin from

Auto increase number number

2012-05-16 Thread yillkid
Hi all . I want to add a Field "no" for assign numbers to user. The content what I need as below ( user change page): nouser name --- 1 root 2 user_1 3 user_2 But "no" is different with "pk" of the user, because it's a

Add user page extend.

2012-03-18 Thread yillkid
I can add new field to the UserProfile class, for example I add a integer field to take down the account valid days. But, if I want to add this filed to "/admin/auth/user/add/" page, then admin can modify the value when add user (link user_name/password input), how should I do ? -- You

Re: Add customize app filed to add user page

2012-03-16 Thread yillkid
31分13秒寫道: > > On Fri, Mar 16, 2012 at 4:52 AM, yillkid <yill...@gmail.com> wrote: > > Hi all: > > > > I want add a filed in app to add user page (/admin/auth/user/ ), > > > > or > > > > Actually I just want to add a valid date (DateTIme Filed)

Re: Add customize app filed to add user page

2012-03-16 Thread yillkid
ta when I add a new user. And the data have add in UserProfile already, but if I want to add the filed on "add user" page, how I should do ? yillkid於 2012年3月16日星期五UTC+8下午4時52分47秒寫道: > > Hi all: > > I want add a filed in app to add user page (/admin/auth/user/ ), > >

Add customize app filed to add user page

2012-03-16 Thread yillkid
Hi all: I want add a filed in app to add user page (/admin/auth/user/ ), or Actually I just want to add a valid date (DateTIme Filed) in add user page, and this Filed I have create in UserProfile class already, then how I should do ? thanks. -- You received this message because you are

Pass model filed to add user page

2012-03-16 Thread yillkid
Hi all : I want to pass a DateTime Filed to the "add user page" ( /admin/auth/user/ ), anyone could give me a clue ? thanks . -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit