Re: Dajax, what do you think about it?

2011-04-02 Thread Ronghui Yu
ngo-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- === Regards Ronghui Yu -- You

Re: Having trouble creating instances of another model in the __init__ of one model

2011-02-05 Thread Ronghui Yu
t; I have no idea what this error means, and I strongly suspect I'm Doing It > Wrong [tm] in the first place. There's probably a very easy way to do this > that I'm not seeing. > > > Thanks! > > -- > You received this message because you are subscribed to the

Re: Help on adding CSS to django project

2011-02-05 Thread Ronghui Yu
oup. > 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 > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- ==

Re: Best DRY practices for a view function that will be used by all other views.

2011-02-05 Thread Ronghui Yu
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 > . > For more options, visit this group at > http://gro

Re: Code Review As a Service

2011-01-25 Thread Ronghui Yu
t; > -- > 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: Register signal on all objects

2010-01-08 Thread Ronghui Yu
ignal, but I'm not sure if this is the best way to do it... Any comment appreciated... Thanks!! -- Ronghui Yu <mailto:stone...@163.com> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Re: My first Django project

2009-08-09 Thread Ronghui Yu
Hi friend... > I saw ur site.It is good. Congratulations for ur job. > Just i am started learning the Django.If u don't mind will u send the > project's souce code for my reference. > > > > With regards, > >

Re: My first Django project

2009-08-09 Thread Ronghui Yu
gt; by dynamicaly shown above */create another foo item/* with jquery. In > other sides i liked it.. > > > -- Ronghui Yu <mailto:stone...@163.com> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

My first Django project

2009-08-07 Thread Ronghui Yu
The first project I do by using Django, http://www.cvcenter.cn, please take a look, and enjoy. Any feedback will be appreciated. Thanks a lot -- === Regards Ronghui Yu --~--~-~--~~~---~--~~ You received this message because you are

Re: Static content protection

2009-08-05 Thread Ronghui Yu
ad. > > This does make things a little slower then just having them served > directly, but if your site is for internal company use only the > slowdown will be non-significant in my experiance > > > > -- === Regards Ronghui Yu --~--~-~--~

Re: Static content protection

2009-08-05 Thread Ronghui Yu
and get it. > Other than using directory auth on lighty or apache, how would you > control access to the static content without having the user enter > user/pass info every time them went to the site? > > Thanks > > > -- === Regards Ronghui Yu --~

Re: 'str' object is not callable

2009-08-02 Thread Ronghui Yu
the category list works ok and the get_absolute_url is rendering the > correct link, but when I click on the link or attempt to get specific > category details, i.e. "http://127.0.0.1:8000/weblog/categories/ > programming/", I get the above error. > > thanks. > > Eric > > > > -- ===

Re: which version of django should I choose?

2009-07-24 Thread Ronghui Yu
cation in google App engine. > there are so many different version of django. > which version should I beginn? thanks your help or advice > > -- > Xun Zhou > TU Berlin > > > -- Ronghui Yu <mailto:stone...@163.com> --~--~-~--~~~---~--~

Re: cannot store images into file system using Imageupload

2009-07-24 Thread Ronghui Yu
ut when i search in > my file system I could not find the image . > when i repeat the same in admin site i could see the file name with > the path i specified in Models.py and the actual image file is present > in the specified location . > I'm not sure why thi

Re: Django, multiple domains, multiple locales/languages

2009-07-24 Thread Ronghui Yu
se > > > middleware.py is attached just after SessionMiddleware as suggested in > the docs. > > The problem is that Django has some problems with it - it sometimes > shows some strings translated and some not. When I browse just one > site/domain everything is OK. But when I o

Re: django-registration and RegistrationFormUniqueEmail subclass

2009-07-22 Thread Ronghui Yu
idea what to do with this information. I am no > Django guru :( > > Could you hellp me with that? > > > > -- Ronghui Yu <mailto:stone...@163.com> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: never_cache doesn't work for login page

2009-07-21 Thread Ronghui Yu
Eugene Mirotin ??: > May be the order of middleware classes does matter here? > > On Jul 19, 4:08 pm, Ronghui Yu wrote: > >> It proves that it is introduced by >> django.middleware.http.ConditionalGetMiddleware. It returns 304 when >> requesting the same login pag

Re: looking for a clean, easy way to force user to change password on first login

2009-07-19 Thread Ronghui Yu
his without having to re- >> implementing the login. You will have to make a (very simple) login >> template, and write a login view that contains these: >> >> from django.contrib.auth import login >> login(request, form.get_user()

Re: never_cache doesn't work for login page

2009-07-19 Thread Ronghui Yu
Mirotin ??: > Isn't adding a timestamp to the url a workaround? > I mean making all links to /login/ look like /login/?_=timestamp > This can be easily done on the client side with some JS library, or, > on the server side. > > Not nice, but it should help, I guess. > > O

Re: never_cache doesn't work for login page

2009-07-19 Thread Ronghui Yu
done on the client side with some JS library, or, > on the server side. > > Not nice, but it should help, I guess. > > On Jul 17, 5:24 pm, Ronghui Yu wrote: > >> Hi, All, >> >> I have a project that have CsrfMiddleware enable, all forms work fine, >>

Re: never_cache doesn't work for login page

2009-07-19 Thread Ronghui Yu
Michael 写道: > On Fri, Jul 17, 2009 at 11:19 AM, Ronghui Yu <mailto:stone...@gmail.com>> wrote: > > > > Michael 写道: >> 2009/7/17 Ronghui Yu mailto:stone...@gmail.com>> >> >> Hi, All, >> >> I have a project tha

Re: never_cache doesn't work for login page

2009-07-17 Thread Ronghui Yu
Michael ??: > 2009/7/17 Ronghui Yu mailto:stone...@gmail.com>> > > Hi, All, > > I have a project that have CsrfMiddleware enable, all forms work > fine, but the login form doesn't, for all > browsers(IE,Chrome,Firefox,Safari). > Most o

never_cache doesn't work for login page

2009-07-17 Thread Ronghui Yu
x27;t work for me. I have no idea what's wrong with it. Has anybody ever encounted this situation? Or could anybody give me some hints? Thanks in advance. -- Ronghui Yu <mailto:stone...@163.com> --~--~-~--~~~---~--~~ You received this message because y

Re: Global custom tags

2009-07-05 Thread Ronghui Yu
in any template you use (no >> matter where it is located), as long as app X is in the installed >> apps. The downside of this is that you need to name your tag libraries >> wisely, because tags.py in app X and tags.py in app Y will conflict. >> >> Koen >> &

Re: Easy way to include Request Context always?

2009-07-05 Thread Ronghui Yu
t; It seems I have to pass RequestContext(request) everytime I call > render_to_response but I'm sure there's an easier way I'm missing. > I've read through the docs and apologize if I'm missing it but can > someone help with some

Re: Flatpages only works when settings.DEBUG = True

2009-05-05 Thread Ronghui Yu
It works now. That's because a typo error happens in my 404.html page. And it introduces 500.Thanks all. On Tue, May 5, 2009 at 9:17 AM, Ronghui Yu wrote: > Yes, 404.html and 500.html are there. But they extend from base.html, which > depends on some context variables. I will chang

Re: Flatpages only works when settings.DEBUG = True

2009-05-04 Thread Ronghui Yu
Yes, 404.html and 500.html are there. But they extend from base.html, which depends on some context variables. I will change them to a simple one and see if the problem still there.Thanks On Tue, May 5, 2009 at 12:06 AM, Brian Neal wrote: > > On May 4, 10:28 am, Ronghui Yu wrote: >

Re: Flatpages only works when settings.DEBUG = True

2009-05-04 Thread Ronghui Yu
That's something I didn't try. It is a good idea to figure out what the problem is.Thanks On Tue, May 5, 2009 at 12:01 AM, Masklinn wrote: > > On 4 May 2009, at 17:28 , Ronghui Yu wrote: > > I don't quite understand why this happens, and how to solve it. > >

Flatpages only works when settings.DEBUG = True

2009-05-04 Thread Ronghui Yu
, and how to solve it. Has anybody ever met this problem? And any suggestions? Thanks in advance. -- Ronghui Yu <mailto:stone...@163.com> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q