Re: Trouble with stockphoto

2007-01-17 Thread Isaac Alston
Ok, that's great, thanks for everything. -- Isaac --~--~-~--~~~---~--~~ 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

Re: Trouble with stockphoto

2007-01-17 Thread Jay Parlar
On 1/17/07, Isaac Alston <[EMAIL PROTECTED]> wrote: > The problem is most likely with your MEDIA_URL. Make sure it ends with a '/' Thank you very much. That seems to be it fixed :-D. First I had MEDIA_URL set to: ' ' then '127.0.0.1:8000', then '127.0.0.1:8000/' then '/', then finally

Re: Trouble with stockphoto

2007-01-17 Thread Isaac Alston
The problem is most likely with your MEDIA_URL. Make sure it ends with a '/' Thank you very much. That seems to be it fixed :-D. First I had MEDIA_URL set to: ' ' then '127.0.0.1:8000', then '127.0.0.1:8000/' then '/', then finally '/smedia' which got it working. I'm so happy :-). The only

Re: Trouble with stockphoto

2007-01-17 Thread Jay Parlar
On 1/17/07, Isaac Alston <[EMAIL PROTECTED]> wrote: Ok, I figured this part out. I looked at the stockphoto/models.py code, and discovered it was doing something like STOCKPHOTO_URL[-1], which was obviously causing the error, but I couldn't work out why. Then I realised that if STOCKPHOTO_URL

Re: Trouble with stockphoto

2007-01-17 Thread Isaac Alston
On 17/01/07, Isaac Alston <[EMAIL PROTECTED]> wrote: > Can you paste the full traceback for the string index error? That's the problem: there isn't one (that I can see), the error is given by runserver: $ python manage.py runserver Validating models... threeci.stockphoto: string index out of

Re: Trouble with stockphoto

2007-01-17 Thread Isaac Alston
Can you paste the full traceback for the string index error? That's the problem: there isn't one (that I can see), the error is given by runserver: $ python manage.py runserver Validating models... threeci.stockphoto: string index out of range 1 error found Is there elsewhere I can look? --

Re: Trouble with stockphoto

2007-01-16 Thread Jay Parlar
On 1/16/07, Isaac Alston <[EMAIL PROTECTED]> wrote: > Hmm, that MEDIA_URL worries me. Can you try setting that to something > more concrete? Ok, I tried setting it to "127.0.0.1:8000" (was the only thing I could think of) and it didn't do anything, so I decided to do a fresh install of

Re: Trouble with stockphoto

2007-01-16 Thread Isaac Alston
Hmm, that MEDIA_URL worries me. Can you try setting that to something more concrete? Ok, I tried setting it to "127.0.0.1:8000" (was the only thing I could think of) and it didn't do anything, so I decided to do a fresh install of stockphoto. Upon doing this, I now receive a new error:

Re: Trouble with stockphoto

2007-01-16 Thread Jay Parlar
On 1/16/07, Isaac Alston <[EMAIL PROTECTED]> wrote: > 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

Re: Trouble with stockphoto

2007-01-16 Thread Isaac Alston
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. This is strange, I'll paste them

Re: Trouble with stockphoto

2007-01-16 Thread Jay Parlar
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

Re: Trouble with stockphoto

2007-01-16 Thread Isaac Alston
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

Trouble with stockphoto

2007-01-14 Thread [EMAIL PROTECTED]
I'm having a bit of trouble with stockphoto http://www.carcosa.net/jason/software/django/stockphoto/ Basically, I've followed the install /exactly/ as it says in the readme file, and everything seems to go fine until I go to the admin and try to view one of the photos which has been uploaded