On 1/16/07, Isaac Alston <[EMAIL PROTECTED]> wrote:
> You do have to add to urls.py. I'm using stockphoto on one of my > sites, you can see my site's code here: > http://svn.jayparlar.com/website/trunk/awwca/ Thanks for this. What I meant was the urls.py in the stockphoto directory (sorry I didn't make it clear). I notice that you've not changed this (but you have changed the urls.py for the whole site, as was in the install :-) ). Here's my urls.py for the whole site, I can't see why it doesn't work: http://dpaste.com/4716/ The problem does not seem to occur when I go to /stockphoto (I get a TemplateSyntaxError (saying it can't find 'load markup'), but I think that's good because it shows it's finding a template ;-) :-)). The problem occurs when I go into the 'edit' part of an admin page, and the link to the photo is given as: http://127.0.0.1:8000/admin/stockphoto/photo/2/photos/2007/01/11/Family-2006-09-10_012.jpg for example. Here is my settings.py: http://dpaste.com/4717/ ; of particular note are STOCKPHOTO_BASE and STOCKPHOTO_URL which may be causing this. Any advice would be appreciated.
Your paste bin links don't seem to be working for me, but I'm going to guess that your STOCKPHOTO_BASE and STOCKPHOTO_URL aren't right. The link to the .jpg itself shouldn't have 'admin' in it anywhere, unless you have your media setup in a very odd way. For my site, for example, one of the .jpgs have the link: http://media.awwca.ca/site_media/stockphoto/2006/09/17/HPIM1621a.JPG Jay P. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---