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 audit_manage_key:
> 195
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 fo
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': 'd:sites/sgms/me
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
message
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 ge
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 this
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 haven'
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 <[EMAIL
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',
'django.contrib.
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')),
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',
'django.contrib.content
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 tr
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 cli
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.
--~--~-~--~~--
14 matches
Mail list logo