Re: invalid literal for int() with base 10 trying to access uploaded image

2015-04-17 Thread Stephen J. Butler
On Fri, Apr 17, 2015 at 8:16 AM, Jyothi Naidu wrote: > > if 'audit_info_manage' in request.POST: > 192 #fullname = Employee.objects.get(emp_id=request.POST['emp_id']) > 193 audit_manage_key = request.POST.get('audit_info_getdata') > 194 if

Re: invalid literal for int() with base 10 trying to access uploaded image

2015-04-17 Thread Jyothi Naidu
Hi Kelvin, I am also having the similar issue where i am not able to solve it invalid literal for int() with base 10: '' Request Method:POSTRequest URL: http://172.19.7.125:8001/super-admin-dashboard/status-change/Django Version: 1.6Exception Type:ValueErrorException Value: invalid literal

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-10-01 Thread mrtot
Hi Kelvin, I just ran into that problem, too. However the hint to MEDIA_URL was correct! You must add the following to the very bottom of your urls.py: if settings.DEBUG: urlpatterns += patterns('', (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root':

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-20 Thread kelvin pompey
ok I've set the MEDIA_URL and MEDIA_ROOT, but when I click the link I get the 404 file not found error message. If i set ADMIN_MEDIA_PREFIX to a blank string then I can access the link. But there is a problem, when I try to change the image through the form I get a page does not exist error

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-20 Thread Srik
Make sure you have MEDIA_URL set :) Run into similar error, setting MEDIA_URL resolved it :) On Sep 18, 1:17 pm, "silk.odyssey" <[EMAIL PROTECTED]> wrote: > 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

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-19 Thread barbara shaurette
Try logging out your SQL and look for any suspicious INSERTs - I've run across this error a few times, under different circumstances, always because my code is trying to insert a string when the column is expecting an integer. --~--~-~--~~~---~--~~ You received

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-18 Thread kelvin pompey
Is there a way to modify the html for the admin form to display the image using the html img tag instead of having a link to the image? On Thu, Sep 18, 2008 at 11:50 AM, Lisa Dusseault <[EMAIL PROTECTED]>wrote: > I've seen the same problem with FileFields, so it's not just ImageFields. > I

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-18 Thread Lisa Dusseault
I've seen the same problem with FileFields, so it's not just ImageFields. I haven't figured it out yet. I can make a link to the file work from the main UI, but I don't know how the admin constructs its link in an unmodified admin form. Lisa On Thu, Sep 18, 2008 at 5:17 AM, silk.odyssey

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-18 Thread Picio
Here is mine, since I don't know how to reference dpaste... ;) Environment: Request Method: GET Request URL: http://localhost:8000/admin/tvsite/areas/1/areas/batzos.jpeg/ Django Version: 1.0-final-SVN-unknown Python Version: 2.5.2 Installed Applications: ['django.contrib.admin',

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-18 Thread Picio
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')),

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-18 Thread kelvin pompey
Everything is being handled by the admin application. Environment: Request Method: GET Request URL: http://localhost:8000/admin/grades/student/1/photos/desktop.png/ Django Version: 1.0-final-SVN-unknown Python Version: 2.5.2 Installed Applications: ['django.contrib.auth',

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-18 Thread Ross
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

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-18 Thread Picio
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

invalid literal for int() with base 10 trying to access uploaded image

2008-09-18 Thread silk.odyssey
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.