Flatpages only works when settings.DEBUG = True

2009-05-04 Thread Ronghui Yu
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&quo

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 <maskl...@masklinn.net> wrote: > > On 4 May 2009, at 17:28 , Ronghui Yu wrote: > > I don't quite understand why this happens, and how to solve i

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 <bgn...@gmail.com> wrote: > > On May 4, 10:28 am

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 <stone...@gmail.com> wrote: > Yes, 404.html and 500.html are there. But they extend from base.html, which > depends on some context

Re: Easy way to include Request Context always?

2009-07-05 Thread Ronghui Yu
ave 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 advice? > > Thanks in advance. &g

Re: Global custom tags

2009-07-05 Thread Ronghui Yu
gt;> that you can use a tag library from app X 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 ap

never_cache doesn't work for login page

2009-07-17 Thread Ronghui Yu
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 you are subscribed to the

Re: never_cache doesn't work for login page

2009-07-17 Thread Ronghui Yu
Michael ??: > 2009/7/17 Ronghui Yu <stone...@gmail.com <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,Firefo

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 <stone...@gmail.com > <mailto:stone...@gmail.com>> wrote: > > > > Michael 写道: >> 2009/7/17 Ronghui Yu <stone...@gmail.com <mailto:stone...@gmail.com>> >> >&g

Re: never_cache doesn't work for login page

2009-07-19 Thread Ronghui Yu
ient 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 <stone...@gmail.com> wrote: > >> Hi, All, >> >> I have a project that have CsrfMiddleware enable, all forms work fine, >&g

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. > > On Jul

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

2009-07-19 Thread Ronghui Yu
in(request, form.get_user()) >> >> Then you can handle the redirection however you like. >> > > > > -- Ronghui Yu <mailto:stone...@163.com> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

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 <stone...@gmail.com> wrote: > >> It proves that it is introduced by >> django.middleware.http.ConditionalGetMiddleware. It returns 304 when >>

Re: django-registration and RegistrationFormUniqueEmail subclass

2009-07-22 Thread Ronghui Yu
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 Google Groups "Django users" gro

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: 'str' object is not callable

2009-08-02 Thread Ronghui Yu
category details, i.e. "http://127.0.0.1:8000/weblog/categories/ > programming/", I get the above error. > > thanks. > > Eric > > > > -- === Regards Ronghui Yu --~--~-~--~~~---~--~~ You received this message because you

Re: Static content protection

2009-08-05 Thread Ronghui Yu
e in a url to a static image 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 > &g

Re: Static content protection

2009-08-05 Thread Ronghui Yu
used to display in files inline not just for download. > > 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 > > > > -- =

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

Re: My first Django project

2009-08-09 Thread Ronghui Yu
y 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

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, > > Kannan. R

Re: Register signal on all objects

2010-01-08 Thread Ronghui Yu
, 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 group, send em

Re: Code Review As a Service

2011-01-25 Thread Ronghui Yu
to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- === Regards Ronghui Yu -- You received this mes

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

2011-02-05 Thread Ronghui Yu
.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- === Regards Ronghui Yu -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Help on adding CSS to django project

2011-02-05 Thread Ronghui Yu
group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-user

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

2011-02-05 Thread Ronghui Yu
or 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 Google Groups > "Django users&q

Re: Dajax, what do you think about it?

2011-04-02 Thread Ronghui Yu
legroups.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 received this mes