filers into generic views

2006-09-22 Thread Allan Henderson
Hi all, Currently I have a setup whereby a user navigating to a product category is met with the list of products in that category using generic views. In urls.py I have the 'info_dicts' handling the categories so that in the generic view the correct category is presented to user. That a

Re: serving static images

2006-09-11 Thread Allan Henderson
That's so obvious now that you point that out, I don't know how I could have missed that. Really thanks a million Jay! it all works perfectly now. Allan On 11 Sep 2006, at 18:14, Jay Parlar wrote: > > On 9/11/06, Allan Henderson <[EMAIL PROTECTED]> wrote: >> &

Re: Re: serving static images

2006-09-11 Thread Allan Henderson
ls' TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates". # Always use forward slashes, even on Windows. "/Users/whitebook/django/django_projects/myproject/templates/" ) INSTALLED_APPS = ( 'django.contrib.auth', 'dja

Re: serving static images

2006-09-11 Thread Allan Henderson
Removed the path bit, navigating to http://localhostL:8000/static gets me: ViewDoesNotExist at /static/ Could not import janeraven.products.views.django.views.static. Error was: No module named django.views.static Allan On 11 Sep 2006, at 14:57, Jay Parlar wrote: > > On 9/12/06,

Re: Re: serving static images

2006-09-11 Thread Allan Henderson
Thanks Jay but that doesn't appear to make any difference. I wonder is it how i have settings.py set up but nothing jumps out at me when trying to find where I've gone wrong. Don't know if its important but I'm on a mac and I'm trying to accomplish this through the built-in dev server. Not much

serving static images

2006-09-10 Thread Allan Henderson
Complete newbie problem here but i can't seem to get django to show any images or stylesheets etc. In urls.py: (r'^images/(?P.*)$', 'django.views.static.serve', {'document_root': '/Users/whitebook/django/django_projects/mysite/ media/images'}), In the template I have . So when ope