Re: Django, nginx, Passenger

2012-03-03 Thread
is proxy_send_timeout too small ? I newer 2012/3/3 赵帅 > I suggest you do a pressure test on the url that have triggered the > problem to see whether it will show up again.If yes, to see the system > status such as the number of sockets being used and the number of > connections from nginx to fa

issues with file upload

2012-08-21 Thread
I now work with mongoengine, mongoForm and set this in setting.py DEFAULT_FILE_STORAGE = 'mongoengine.django.storage.GridFSStorage' I need to upload a picture, and I wrote a form like this: from django.forms import ImageField from mongoforms import MongoForm from documents

Re: issues with file upload

2012-08-21 Thread
finished sorry, I clone the new source( for review) but use an old source on python environment 在 2012年8月21日星期二UTC+8下午6时36分46秒,软刀写道: > > > I now work with mongoengine, mongoForm > and set this in setting.py > DEFAULT_FILE_STORAGE = 'mongoengine.django.storage.GridFSSt

how to change form field in method is_valid()

2011-12-24 Thread
I have two model class Friend(models.Model): me = models.ForeignKey(User) friend = models.ForeignKey(User) remark = models.CharField(max_length=15) def __unicode__(self): return self.remark class Message(models.Model): from_user = models.ForeignKey(Us

Re: question about django-admin.py

2011-12-25 Thread
I don't know why u get this I run it well maybe u can reinstall it -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+u

Re: sorting of foreign key elements

2011-12-30 Thread
may be attribute ModelAdmin.ordering can work for you , it was in docs/ref/contrib/admin/index.txt attribute:: ModelAdmin.ordering Set ordering to spcify how lists of objects should be ordered in the Django admin views. This should be a list or tuple in the same format as a models's django.db

Re: Please help me with django form 2.

2012-01-11 Thread
as I unflod your code I think may be you should create a Form-class like this: class RegisterForm(ModelForm): class Meta: model = Register and in your view should be: @csrf_exempt def welcome(request): if request.method=='POST': form=RegisterForm(request.POST) new_