presenting my new blog

2008-09-13 Thread Vikti
Hi,

finally I decided to (re)start blogging. As it's django based (actually runs
on byteflow) I thought I will present it here.

Besides django - as it was already told - I use byteflow [1], plus
django-contact-form [2] and my own postimage [1] app.

If you are interested in posts on standard setting, economics and my django
experiences you can meet me at http://viktornagy.com

Hope you will like it!
V

[1] http://byteflow.su/
[2] http://code.google.com/p/django-contact-form/
[2] http://code.google.com/p/django-postimage/

-- 
Viktor Nagy - viktornagy.com
Phd Student
Toulouse School of Economics

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



how to use never_cache?

2008-09-12 Thread Vikti
Hi!

I am trying to write a simple app on top of admin [1] that lists a
directories content using a FilePathField element.

It works kind of alright except that the list isn't updated. I presume that
this is something related to caching so I added @never_cache to the view
function, but it didn't solve my problem. Now the code is

@user_passes_test(lambda u: u.is_staff)
@never_cache
def select(request):
'''
Just pass back the form, we do only javascript magic
'''
t = loader.get_template('admin/postimage/attach.html')

form = AttachForm(initial={'file': request.GET.get('s')})
c = { 'title': _('Attach file'),
 'form': form,
 'media_url': STATIC_URL,
 'postimage_url': POSTIMAGE_URL,
 'postimage_root': POSTIMAGE_ROOT,
 'for': request.GET['for'], }
c = Context(c)
return HttpResponse(t.render(c))

Is there something obvious I miss?

[1] http://code.google.com/p/django-postimage/

V

-- 
Viktor Nagy - viktornagy.com
Phd Student
Toulouse School of Economics

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---