static media serve weird behavior

2010-01-27 Thread Vladimir Shulyak
Hello everyone! Really strange problem with serving static files with django.views.static.serve(): So I've got media/css dir with show_indexes=True for serve() method. It gives me list like this: Index of css/ # ../ # default.css # general.css ... It means that the script is able to locate both

Re: Is IP address caching built into the Django Framework?

2009-06-29 Thread Vladimir Shulyak
> > > which would not require users to create accounts on my site.  I > > > appreciate your feedback though. > > > > On Jun 28, 4:58 am, Vladimir Shulyak wrote: > > > > > Try django-votinghttp://code.google.com/p/django-votingifyouwant > > > >

Re: models.ManyToManyField subclass, problem with getting values by form.

2009-06-28 Thread Vladimir Shulyak
Well... Problem closed. I was trying to override things that I shouldn't. Now I got the idea of returning manager by __get__ and everything is just fine :) On Jun 27, 11:13 pm, Vladimir Shulyak wrote: > Hello, > > I am trying to develop sublcass of models.ManyToManyField. This

Re: Is IP address caching built into the Django Framework?

2009-06-28 Thread Vladimir Shulyak
Try django-voting http://code.google.com/p/django-voting if you want digg-like voting. This app stores all votes in database, so it prevents user to "vote up" multiple times. Alternatively, you can develop it yourself. It's pretty straightforward to implement imo. IP address comes with request ob

Re: Tagging, parse_lookup what is the Right current method to implement "tagging"

2009-06-28 Thread Vladimir Shulyak
> It still surprises me that the tagging module does not live with the > rest of Django as opposed to within Python. Nothing unusual. Your django app lives in PYTHONPATH and other modules/ apps may live in libs directory as it is also in PYTHONPATH. You could create any directory you like (with y

models.ManyToManyField subclass, problem with getting values by form.

2009-06-27 Thread Vladimir Shulyak
Hello, I am trying to develop sublcass of models.ManyToManyField. This class should return text representations of objects to forms.TextField (like TagField from django-tagging). The reason to make my own representation is because: - I don't need content types - I need "front face" to ManyToManyF

Re: Session variables

2009-02-03 Thread Vladimir Shulyak
Any progress on this problem? I've got exactly the same problem with sessions on ubuntu/database- backend sessions. But the most interesting thing that variables like instances of large classes are deleted while simple instances like integers are fine. class Cart(): items = {} to