Re: File Uploading

2009-02-12 Thread 1234
enctype 2009/2/12 huw_at1 > > Yep I just found the thread about the enctype and indeed it was this > and not my comp catching fire!!! Many thanks :) > > On Feb 12, 2:48 pm, Alex Gaynor wrote: > > On Thu, Feb 12, 2009 at 9:38 AM, Karen Tracey > wrote: > > > On Thu, Feb 12, 2009 at 8:02 AM, huw_

Re: __unicode__(self):

2008-04-13 Thread 1234
add"self" 2008/4/14, Malcolm Tredinnick <[EMAIL PROTECTED]>: > > > > On Sun, 2008-04-13 at 22:04 -0700, Brandon Taylor wrote: > > Hello everyone, > > > > I'm pretty new to Django, so please bear with me. > > > > When I'm defining a model, and I want to return a value to use in the > > admin fo

Re: "get next" and "get last" on any field?

2008-04-05 Thread 1234
*get next* = Info.objects.filter(id__gt=newsid).order_by('id')[:1] *get last* = Info.objects.filter(id__lt=newsid).order_by('id')[:1] 2008/4/5, SlowLearner <[EMAIL PROTECTED]>: > > > Hi, I am hoping there is a better solution to my problem than the one > I have come up with, or one built in to

Re: JSON serializers.serialize raises DoesNotExist on recursive data structures

2008-04-01 Thread 1234
Is this model work on in admin? 2008/4/1, Legioneer <[EMAIL PROTECTED]>: > > > My data model is very similar to your: > > class Category(models.Model): > name = models.CharField(max_length=64) > descr = models.CharField(max_length=255, blank=True) > rank = models.PositiveIn

Re: JSON serializers.serialize raises DoesNotExist on recursive data structures

2008-04-01 Thread 1234
this is my example class Type(models.Model): type = models.CharField('分类名称',maxlength=50,core=True) path = models.CharField('url地址',maxlength=250,blank=True,editable=False) typename = models.CharField('分类名称',maxlength=200,editable=False) parent = models.ForeignKey('self',related_na

Re: Announce: 7days7apps.com

2008-01-27 Thread 1234
good~~~ it's very cool~~ 2008/1/28, shabda <[EMAIL PROTECTED]>: > > > Hi Every one, > > Just wanted to let everyone know of www.7days7apps.com , where I am > trying to build and deploy 7 small but useful apps in 7 days. By now I > have completed 5 apps. All of them are released under GPL, and th

Re: "ImportError: No module named django" persists...

2008-01-15 Thread 1234
django is in your sys.path? 2008/1/16, Scott <[EMAIL PROTECTED]>: > > > Thank you to anyone who may be of help... > > PROBLEM: > > ImportError: No module named django > > MY SETTINGS: > > /Working/django/django/__init__.py (file exists) > /Working/projects/ (my main

Re: TemplateDoesNotExist at /admin/

2008-01-15 Thread 1234
settings.py TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. #"./templates/", "E:/myproject/wedding/templates/", ) you

how to form the admin of django. Only users can administrate the informations which published by themselves.

2007-12-08 Thread 1234
how to form the admin of django. Only users can administrate the informations which published by themselves. How to perform this without using "newforms-admin"? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

django admin 中 如何实现用自己添加的信息自己管理?

2007-12-08 Thread 1234
django admin 中 如何实现用自己添加的信息自己管理? 查了不少资料,newforms admin 分支对定制admin进行了加强可以实现,但因为问题较多不敢使用 ,不知道直接使用目前的 model 不知道能否实现,或者有没有其他的方法来实现? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr