join email group

2012-04-27 Thread fei li
i want to know everything about django. -- 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+unsubscr...@googlegroups.com.

Re: Why can't "directly" change array elements of model objects in Django shell?

2011-10-12 Thread fei
Instead, you can use the get() function, x = MyModel.objects.get(id=3) x.some_field = "new value" x.save() The difference between all() and get() is that all() will do a lazy evaluation and get() will hit the physical database. Fei On Oct 12, 11:57 pm, Tom Evans wrote: > On Fri

Re: forum and blog for developers

2011-05-22 Thread fei
ople will know the blog and will write their own articles. Having a central place is far better than searching google to find scattered articles to read. Having a blog can also bridge between people inside and outside the Django committee. Cheers, Fei -- You received this message because you are subsc

forum and blog for developers

2011-05-21 Thread fei
I have been using Django for a while. The documentation for the Django official web page is great, plus the free online django book. There are enough documentations to get started using Django. However, I feel there is a missing blog for Django developers. Having a blog for developers is very usef

including emotion images using tinyMCE

2010-12-18 Thread fei
this problem. Thanks! Fei -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. F

Re: How to use django-command-extentions dumpscript?

2010-12-08 Thread fei
Have you successfully installed django-extensions into python? Here are the detailed instructions http://code.google.com/p/django-command-extensions/wiki/InstallationInstructions Fei On Dec 8, 6:30 am, mongoose wrote: > Hi all, > > I'm trying out django-command-extensions I w

Re: Using foreignkey data as a primary key

2010-11-19 Thread fei
If you really want to have a separate table for Tag, You can do this: class CurrentTag(models.Model): tag = models.OneToOneField(Tag, primary_key=True) def __unicode__(self): return self.tag On Nov 20, 12:10 am, JE wrote: > Thanks for the replies. > I simplified the problem a bit

Re: Downloading files

2010-11-12 Thread fei
It took me a while how to do this. Figured it by reading several sites returned by Google. Actually it's quite simple and easy. Here is my sample code (using django server): # assume you have an Attachment class and each row in the class # has a FileField called 'stored_file'. def attachment(reque