path depth problem

2009-09-15 Thread dijxtra
Hello everybody, Django keeps surprising me with neat solutions for common web programming problems (I must say I haven't felt this "where has it been all of my life" since the time I was exploring lisp), so I hope django has a trick up his sleeve for this one too. So, I made a calendar "widget"

Re: path depth problem

2009-09-16 Thread dijxtra
Thanks a bunch! On Sep 15, 10:57 pm, Tiago Serafim wrote: > Hi, > > The right way(TM) to do this is using named urls: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

date inside url

2009-09-18 Thread dijxtra
I'm sure I'll be hitting my head against the wall when I hear the answer, but before I do, I just can't get an idea how to solve this although it seems to me that the solution must be trivial. So, here is a line from my url patterns: url(r'^(?P\d+)/(?P\d+)/(?P\d+)/$', 'day', name='day'), and her

django forum

2009-09-20 Thread dijxtra
Is there a free robust django forum app? Or more precisely, a free and robust forum app which uses django.contrib.auth for authentication? Or should I just try out those several projects enabling django to access phpBB's user info and use phpBB3? --~--~-~--~~~---~--~--

Re: django forum

2009-09-20 Thread dijxtra
On Sep 20, 6:27 pm, Jonas Obrist wrote: > There's django-forum and a couple of others (google them). I'm also > working on a forum system in django which I plan to release one day. But > at the moment I fear it's too unstable and coupled to other parts of my app. I really did google before askin

Re: date inside url

2009-09-20 Thread dijxtra
Huh, thank you both for in-depth answers. I implemented Gonzalo's idea with context processors and it worked like a charm... and then I realised that I could achieve the same thing with: url(r'^today$', 'today', name='today'), + {% url today %} + def today(request): t = datetime.date.today()

Deploying to UserDir

2009-09-20 Thread dijxtra
I'm trying to deploy my first django app (oh no! :-D). I have a user account on a server with Apache2. That is: I don't have root access and I don't have access to apache2 config files. Our server has UserDir enabled, so http://my.server.url/~my_home/ maps to $HOME/ public_html. According to this:

HttpResponseRedirect(request.META["HTTP_REFERER"])

2009-09-24 Thread dijxtra
Is it safe to use HttpResponseRedirect(request.META["HTTP_REFERER"])? Can a session be stolen using this coed by spoofing HTTP_REFERER? Thanks in advance, nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

are django applications portable?

2009-09-25 Thread dijxtra
Hi everybody, Django applications, as I understood them should be pluginable on project basis. That is, I should be able to install them to my *project*, not to my django installation. So I downloaded django- tagging and run the python setup.py install. And it failed: n...@rilmir:~/code/my_projec

Re: are django applications portable?

2009-09-25 Thread dijxtra
On Sep 25, 7:54 pm, Javier Guerra wrote: > On Fri, Sep 25, 2009 at 11:59 AM, dijxtra wrote: > > > Hi everybody, > > > Django applications, as I understood them should be pluginable on > > project basis. That is, I should be able to install them to my > > *projec

'NoneType' object has no attribute 'widget'

2009-09-30 Thread dijxtra
I'm getting "'NoneType' object has no attribute 'widget'" exception and I just can't figure out where is the problem. Here is my error: Django Version: 1.1 Traceback: File "C:\Python26\lib\site-packages\django\core\handlers\base.py" in get_response 92. response = callback(reque

Re: 'NoneType' object has no attribute 'widget'

2009-10-01 Thread dijxtra
On Sep 30, 5:12 pm, Karen Tracey wrote: > On Wed, Sep 30, 2009 at 10:53 AM, dijxtra wrote: > > > I'm getting "'NoneType' object has no attribute 'widget'" exception > > and I just can't figure out where is the problem. Here is my e

Re: 'NoneType' object has no attribute 'widget'

2009-10-01 Thread dijxtra
g from model. > Why did you defined again in the forms? (remove it and check out > whether error is occurring or not) > > On Oct 1, 2:33 pm, dijxtra wrote: > > > On Sep 30, 5:12 pm, Karen Tracey wrote: > > > > On Wed, Sep 30, 2009 at 10:53 AM, dijxtra wro

Re: 'NoneType' object has no attribute 'widget'

2009-10-02 Thread dijxtra
On Oct 1, 2:54 pm, Karen Tracey wrote: > On Thu, Oct 1, 2009 at 5:33 AM, dijxtra wrote: > > Traceback: > > [snip] > > 234.             value = field.widget.value_from_datadict(self.data,> > self.files, self.add_prefix(name)) > > > Exception Value: '