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
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
, 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',
> {'
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
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
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
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.
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
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
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
--~--~---
10 matches
Mail list logo