Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread skam
Thank you all for the great work done! Django is the best web framework ever written, it's really time to spread the word and use it everywhere! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

FilePathField and get_FIELD_url

2008-04-23 Thread skam
It seems that get_FIELD_url accessor method is not available while using FilePathField into my models. Is there any reason why it hasn't been implemented? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: FilePathField and get_FIELD_url

2008-04-23 Thread skam
Okay, that's a valid reason, but I really want these files to be into MEDIA_ROOT and get file's absolute url using a get_FIELD_url method. Is subclassing the field and implementing contribute_to_class method a good idea? On 23 Apr, 18:47, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > FilePathF

Re: FilePathField and get_FIELD_url

2008-04-23 Thread skam
Nice one! That's better than implementing a new field because I am using FilePathField in one model only --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: Calling System Commands

2007-06-26 Thread skam
On 26 Giu, 16:24, "va:patrick.kranzlmueller" <[EMAIL PROTECTED]> wrote: > see:http://code.djangoproject.com/wiki/PyCallTag > > patrick > Really really bad (and OT). Please don't encourage the use of this tag, it breaks MVC. Never mix html with programming logic. --~--~-~--~~

Re: Django + newforms + jQuery

2007-07-14 Thread skam
On 12 Lug, 08:42, Przemek Gawronski <[EMAIL PROTECTED]> wrote: > Hi, any one willing to share some examples of django newforms with > jQuery? Few months ago I posted on djangosnippets.org a widget that uses the jquery autocomplete plugin written by Jörn Zaefferer, have a look at http://www.django

Re: JavaScript in template

2007-07-14 Thread skam
It's better to have the MEDIA_URL settings available in the request context. Write your own template context processor, so you could have {{ media_url }}/js/foo.js instead of hardcoding urls in templates. If you need to serve admin media from a separate server or change media directory you'll be a

Re: URL design for security?

2007-07-14 Thread skam
Are you using authentication? It's better to handle security policies in your application instead of hiding informations in URLs Have a look at http://www.djangoproject.com/documentation/authentication Bye, Massimo --~--~-~--~~~---~--~~ You received this message

Re: Email processing

2007-07-14 Thread skam
On 14 Lug, 21:43, Joe Beharriell <[EMAIL PROTECTED]> wrote: > Has anyone worked with processing inbound email messages through > Django? If so, can you offer any tips, tricks, or examples that may > help me with developing this further? Hello Joe, The email module of the python standard library a

Re: JavaScript in template

2007-07-14 Thread skam
use > {{ MEDIA_URL }} in your templates. > > On Jul 14, 6:43 am, skam <[EMAIL PROTECTED]> wrote: > > > It's better to have the MEDIA_URL settings available in the request > > context. Write your own template context processor, so you could have > > {{ media_ur

Re: access session out of view, howto find out sessionkey?

2007-10-19 Thread skam
You should be able to build a middleware similar to http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser , getting request.session instead of request.user --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: User statistics.

2007-12-27 Thread skam
I've already built this stuff, you have to build a database model and a middleware to track user visit and then calculate how long user was online. For online users please have a look at the following posts: http://groups.google.it/group/django-users/browse_thread/thread/4ba5652bcbd1f958/958c6e77