It happens inside the admin interface, so I've little control on It (AFAIK).
This what i have in my urls.py:

from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/(.*)', admin.site.root),
)

I've pasted a traceback on dpaste.com

2008/9/18 Ross <[EMAIL PROTECTED]>:
>
> The error looks like you are passing '1/photos/desktop.png' to int(),
> which converts a string to an integer. How are you creating the link
> to the picture?
>
> Your urls.py could be capturing that entire string and passing it as a
> parameter that you are trying to cast to an integer.
>
> A bigger stack trace would be easier to track down the problem.
>
> On Sep 18, 8:34 am, Picio <[EMAIL PROTECTED]> wrote:
>> I have the same issue, tried:
>> Django 1.0 with sqlite3 (Wiindows)
>> Django 1.0 with Mysql 5.0 (Windows)
>> Django 1.0 with sqlite3 (Mac OS X)
>>
>> Daniele
>>
>> 2008/9/18 silk.odyssey <[EMAIL PROTECTED]>:
>>
>>
>>
>> > I am using an imagefield from the admin interface. I can upload images
>> > without problems but when I click the link to view the image, I get
>> > the following error.
>>
>> > invalid literal for int() with base 10: '1/photos/desktop.png'
>>
>> > Any idea what's wrong? I am using django 1.0.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to