Re: Мобильная версия

2010-08-29 Thread Aspontus
You probably mean http://code.google.com/p/djangobile/ But it seems it was last updated about a year ago. Anyway I hope it helps. Cheers On 28 Sie, 15:56, Sergey Panfilov wrote: > Замучаетесь поддерживать список user-agent. По-моему, я видел > приложение django-mobile, которое

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread Aspontus
Hi. If I understand your problem correctly, you are looking for a way to capture different optional parameters from the url, to use them in further url construction. Why not use /country/de/district/hf/observation/add/ with entries in urlconf like: urlpatterns += patterns('some.app.views',

Re: CSRF token is missing

2010-08-25 Thread Aspontus
Hi. I had such a problem lately and it turned out to be caused by using older template, from django 1.1, which didn't get deleted during upgrade. Hope it helps. Cheers On 25 Sie, 14:36, Jonas Geiregat wrote: > I'm using django-1.2.1 on Mac OS X. > > I'm trying out the

Re: Django admin not working with mod_python

2010-08-25 Thread Aspontus
Hi. Try putting your (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': 'static'}), line of urlconf in if clause. It works for me. This way you avoid confusion between your server and your django urlconf. The full solution requires you to import settings. The code should look

Re: overriding the admin save in admin.py?

2010-08-22 Thread Aspontus
Hi. Why don't you use save() method in model definition? See http://docs.djangoproject.com/en/1.2/ref/contrib/admin/#modeladmin-methods Maybe this will help you. Cheers. On 22 Sie, 14:27, gondor wrote: > i'm trying to override the save function so I can add set some values

Re: CSRF verification failures (admin)

2010-08-19 Thread Aspontus
Thanks for help. I've found the old template. I've asked server administrator to remove it and now it works. Best regards On 19 Sie, 13:06, Karen Tracey <kmtra...@gmail.com> wrote: > On Thu, Aug 19, 2010 at 5:33 AM, Aspontus <aspon...@gmail.com> wrote: > > It seems I hav

Re: CSRF verification failures (admin)

2010-08-19 Thread Aspontus
admin:password_change as password_change_url %} {% if password_change_url %} {% else %} {% endif %} {% trans 'Change password' %} Best regards On 19 Sie, 02:09, Russell Keith-Magee <russ...@keith-magee.com> wrote: > 2010/8/18 Aspontus <aspon...@gmail.com>: > > >

Re: CSRF verification failures (admin)

2010-08-18 Thread Aspontus
It seems, that the CSRF token is somehow missing in that second case. I hope it helps. Best regards On 18 Sie, 13:56, Russell Keith-Magee <russ...@keith-magee.com> wrote: > On Wed, Aug 18, 2010 at 3:05 PM, Aspontus <aspon...@gmail.com> wrote: > > Hi. > > I have run into a

Re: CSRF verification failures (admin)

2010-08-18 Thread Aspontus
Hi. I have run into a consistent CSRF error in admin. It occurs when user tries to change his/her password. Every single time it returns CSRF error. My admin templates are not modified. Best regards On 18 Sie, 08:32, James Saxon wrote: > I've run into a similar situation where