django.contrib.auth.decorators._checklogin didn't return an HttpResponse object.

2007-01-13 Thread rzimerman
I'm trying to use the 'login_required' decorator to limit access to some of my views of logged in users. However, when I connect to these views, I get the following error message: Request Method: GET Request URL:http://192.168.1.8/submitVote/ Exception Type: ValueError Except

Please help me use "views.django.views.static"

2007-01-13 Thread rzimerman
I want the Django development web server to serve the images located in '/var/www/images', so I added the following line to my urls.py file: (r'^images/(?P.*)$', 'django.views.static.serve', {'document_root': '/var/www/images'}), However, when I got to view the image, I get the following er

Re: Please help me use "views.django.views.static"

2007-01-14 Thread rzimerman
, rzimerman <[EMAIL PROTECTED]> wrote: > > I want the Django development web server to serve the images located in > '/var/www/images', so I added the following line to my urls.py file: > > (r'^images/(?P.*)$', 'django.views.static.serve', > {'

Re: django.contrib.auth.decorators._checklogin didn't return an HttpResponse object.

2007-01-14 Thread rzimerman
Honza, you're right again. The problem was with my function, which was being decorated, not how I was using the C{login_required} decorator. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Show fields from foreign keys in Django admin

2007-01-16 Thread rzimerman
I'm using Django's admin interface to view the fields of a table. One of these fields in a foreign key reference to another table named "Search". By default, Django's admin interface shows me "[Search Object]" in the foreign key column. I'd prefer to see some identifying information about the Sea

Re: Show fields from foreign keys in Django admin

2007-01-16 Thread rzimerman
Thanks Stefan...problem solved. Stefan Foulis wrote: > I'm using Django's admin interface to view the fields of a table. One > of these fields in a foreign key reference to another table named > "Search". By default, Django's admin interface shows me "[Search > Object]" in the foreign key colu

Passing values from Django to client-side JavaScript

2007-01-19 Thread rzimerman
I'd like to pass variable values from Django to client-side JavaScript at page load time. Currently I've use Django's templating system to dynamically rewrite the JavaScript code, such that the appropriate values get set. But, is there a less hackish way? If it helps, I'm already using MochKit.

Re: Passing values from Django to client-side JavaScript

2007-01-21 Thread rzimerman
Jeremy Dunck wrote: > On 1/19/07, rzimerman <[EMAIL PROTECTED]> wrote: > > > > I'd like to pass variable values from Django to client-side JavaScript > > at page load time. Currently I've use Django's templating system to > > dynamically rewrit

Debugging Django: print statements?

2007-01-22 Thread rzimerman
What's the best way to do debugging in Django? Usually when I program, I use "print" statements to identify problems. But Django seems to surpress all output to stdout. I read at djangobook.com that I could put "assert False" statements in problematic parts, and then I would see debugging output

Abstract model class?

2007-01-30 Thread rzimerman
Is there a way to create a parent class of several model classes, but that does not itself get a db table? In other words, I want the child classes to get all of the columns of their parent class, but I don't want the parent class to be generated in the database. Thanks, Robert --~--~---