references.
Kindly help me to sort out this error.
Error:
kwargs["port"] = int(settings_dict["PORT"])
^^^^^^
ValueError: invalid literal for int() with base 10:
'127.0.0.1:3306'
As the error message clearly states, the
\Anaconda3\lib\site-packages\django\db\models\query.py" in
>>>> _filter_or_exclude
>>>> 862. clone.query.add_q(Q(*args, **kwargs))
>>>>
>>>> File
>>>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.py&
t; 1287. split_subq=split_subq,
>>>
>>> File
>>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.py"
>>> in build_filter
>>> 1225. condition = self.build_lookup(lookups, col, value)
>>
Your problem is, in url you are passing id to detailview, but in views.py
you have done anything with that...
Check this again.
On Wed, 26 Jun, 2019, 4:01 AM onyilimba martins mclaren tochukwu, <
tochimcla...@gmail.com> wrote:
> I guess it's Django 2.2?
>
> --
> You received this message because
I guess it's Django 2.2?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-u
t; File
>>>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\query.py" in
>>>> _filter_or_exclude
>>>> 862. clone.query.add_q(Q(*args, **kwargs))
>>>>
>>>> File
>>>> "C:\ProgramDat
"
>>> in add_q
>>> 1263. clause, _ = self._add_q(q_object, self.used_aliases)
>>>
>>> File
>>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.py"
>>> in _add_q
>>> 1287. split_subq=spl
t; "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.py"
>> in build_lookup
>> 1096. lookup = lookup_class(lhs, rhs)
>>
>> File
>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\lookups.py" in
>> _
; File
> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\lookups.py" in
> get_prep_lookup
> 70. return self.lhs.output_field.get_prep_value(self.rhs)
>
> File
> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\fields\__init__.py&q
a\Anaconda3\lib\site-packages\django\db\models\fields\__init__.py"
in get_prep_value
965. return int(value)
Exception Type: ValueError at /admin/
Exception Value: invalid literal for int() with base 10: 'admin'
--
You received this message because you are subscribed to the Goog
Try this instead:
cart_obj, new_obj = Cart.objects.get_or_create(user=request.user)
You originally had:
cart_obj, new_obj = Cart.objects.new_or_get(request)
There is no .new_or_get method in the Django QuerySet API:
https://docs.djangoproject.com/en/dev/ref/models/querysets/#get-or-create
Als
it all is not working, i guess i have to write another independent function
for reomving products from the cart
but thx. though i thought, it would workout
On Sat, Jun 22, 2019 at 9:00 PM Alejandro Pena wrote:
> Which error are you seeing now? Try making this change and let us know
> what the re
Which error are you seeing now? Try making this change and let us know what the
results are.
cart_obj, new_obj = Cart.objects.get(user=request.user)
if product_obj in cart_obj.products.all():
cart_obj.products.remove(product_obj)
added = False
Context:
ht
but the remove function is supposed to work yet it returns the error but
add works
def update(request):
product_id = request.POST.get("product_id")
if product_id is not None :
print(product_id)
product_id = int(product_id)
try:
product_id = int(product_id)
Sweet, looks like your code is working!
You’re still seeing the ‘2’ and that the type of product_id is a string because
your print statements are placed before you convert product_id into an int and
then use it to search for product_obj.
The evidence that it’s working is that it didn’t raise an
This is what happens in the terminal when i use int(product_id)
2
2
[22/Jun/2019 16:56:33] "POST /carts/update/ HTTP/1.1" 302 0
[22/Jun/2019 16:56:33] "GET /carts/ HTTP/1.1" 200 8245
On Sat, Jun 22, 2019 at 7:50 PM Alejandro Pena wrote:
> I feel you, figuring out such errors for the first tim
kk will do that,
On Sat, Jun 22, 2019 at 7:29 PM Amiya Dash
wrote:
> Can u send me the full project.share me the github link
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from
I feel you, figuring out such errors for the first time can be infinitely
frustrating.
I believe that the form is sending you product id numbers as strings, or 1 as
‘1’.
If the product_id = ‘1’ then product_id is not None.
However, you have defined product_id in the model for Product as an in
Can u send me the full project.share me the github link
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to thi
Of course,
Share your source code and stack trace through pastebin
El vie., 21 jun. 2019 a las 13:34, Lutalo Bbosa joseph ()
escribió:
> am trying to figure it out but when i
> print(product_id)
> print(type(product_id)) i get this output
> 1
> , so probably its because i cant iterate over a s
am trying to figure it out but when i
print(product_id)
print(type(product_id)) i get this output
1
, so probably its because i cant iterate over a string but am
still failing to figure it out
On Fri, Jun 21, 2019 at 10:16 PM Lutalo Bbosa joseph
wrote:
> hi hector, can u help me fix it, coz am
hi hector, can u help me fix it, coz am kinda puzzled
On Fri, Jun 21, 2019 at 9:56 PM Héctor Alonso Lozada Echezuría <
ima...@gmail.com> wrote:
> Apparently product_id has no value
>
> product_id = request.POST.get("product_id")
> print(product_id)
> print(type(product_id))
>
>
> El vie., 21 j
Apparently product_id has no value
product_id = request.POST.get("product_id")
print(product_id)
print(type(product_id))
El vie., 21 jun. 2019 a las 6:33, Lutalo Bbosa joseph ()
escribió:
> hi guys, am working on an ecommerce system, which has cart as an app, but
> i keep on getting this error
ValueError at /carts/update/
invalid literal for int() with base 10: '' thats the error
On Fri, Jun 21, 2019 at 7:46 PM Jorge Gimeno wrote:
> Would you be able to copy and paste the stack trace here? Without that,
> it's really hard to see where this exception is co
Would you be able to copy and paste the stack trace here? Without that,
it's really hard to see where this exception is coming from.
-Jorge
On Fri, Jun 21, 2019 at 9:13 AM Lutalo Bbosa joseph
wrote:
> here is my template that handles that bit, and i have as well attached
> atemplate in which it
Does the stack trace mention a template variable name? It looks like a
template variable that is expected to have integer value is not properly
initialized.
Regards,
Aldian Fazrihady
On Fri, 21 Jun 2019, 22:42 Lutalo Bbosa joseph, wrote:
> i as well have a models.py file for carts, and produc
on pressing remove the product is supposed to be removed from the cart, but
it instead displays an error
On Fri, Jun 21, 2019 at 6:34 PM Lutalo Bbosa joseph
wrote:
> well here is apic of what am doing,
>
> On Fri, Jun 21, 2019 at 6:20 PM Ahmed Ishtiaque
> wrote:
>
>> Hi Lutalo,
>>
>> Could you
Hi Lutalo,
Could you also share the stacktrace of the error and when it happens? It
would help us decipher what's really going on in relation to what you're
trying to do.
Best,
Ahmed
On Fri, Jun 21, 2019 at 8:33 AM Lutalo Bbosa joseph
wrote:
> hi guys, am working on an ecommerce system, which
Hello lutalo
I am also facing the same issue. If you find any solution please let me
know . It would be very helpful.
Thank you
hi guys, am working on an ecommerce system, which has cart as an app, but i
keep on getting this error and cant move on any help, here is my views.py ,
from the commandlin
Hi,
See my comments below.
Regards,
Andréas
2018-08-10 5:29 GMT+02:00 mounikesh mintu :
> hey guys when i tried to like a post in drf i have got in to an error
>
> models.py
>
> class status(models.Model):
> user=models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE,
> null
hey guys when i tried to like a post in drf i have got in to an error
models.py
class status(models.Model):
user=models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE,
null=False)
# user=models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE)
content=mod
Can you please post your view?
On Tue, Jul 24, 2018 at 9:02 PM, Nitesh Chaudhary
wrote:
> I got the error on "Writinh your first Django app, part4, in the view of
> vote.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe
e
> their_company field. The entire error is *"invalid literal for int()
> with base 10: 'NewCor'"* NewCor is a company in the contacts table. Thanks
>
>
>
> On Wednesday, July 26, 2017 at 1:27:28 PM UTC-6, Tim Chase wrote:
>>
>> On 2017-07-26 11:52,
Hi, thanks for the reply, however when I take out the 'their_company' field
altogether everything works fine. Also in the error it references the
their_company field. The entire error is *"invalid literal for int() with
base 10: 'NewCor'"* NewCor is a company
On 2017-07-26 11:52, Alexander Joseph wrote:
> "*ValueError: invalid literal for int() with base 10:*" after I
> made a field in my models.py a ForeignKey. Below is my models.py
The problem lies in this line:
> new_invoice_num = int(last_invoice_num) +
Hello, I came across this error:
"*ValueError: invalid literal for int() with base 10:*" after I made a
field in my models.py a ForeignKey. Below is my models.py
from django.conf import settings
from django.db import models
from django.core.urlresolvers import reverse
from django.ut
On 07/08/2016 04:58 PM, James Schneider wrote:
> The polls,detail.html is:
>
> {{ question.question_text }}
>
> {% if error_message %}{{ error_message }}
> {% endif %}
>
> http://question.id>
%}" method="post">
> {% csrf_token %}
>
> {% for choice in question.choice_set.all %}
>
> The polls,detail.html is:
>
> {{ question.question_text }}
>
> {% if error_message %}{{ error_message }}
> {% endif %}
>
>
> {% csrf_token %}
>
> {% for choice in question.choice_set.all %}
> id="choice{{forloop.counter }}"
> value"{{ choice.id }}" />
It
File
"/opt/python-virtual-environments/py3.5dj1.9.7/lib/python3.5/site-packages/django/db/models/fields/__init__.py",
line 976, in get_prep_value
return int(value)
ValueError: invalid literal for int() with base 10: 'on'
[07/Jul/2016 16:21:41] "POST /polls/1/vote/ H
o Forum
> I'm working on a web application that has a page with form set that
requires file upload. When I upload the files I get:
> Django Version:1.9.1
> Exception Type:ValueError
> Exception Value:
>
> invalid literal for int() with base 10: ''
>
> Excepti
Hi Django Forum
I'm working on a web application that has a page with form set that
requires file upload. When I upload the files I get:
Django Version:1.9.1Exception Type:ValueErrorException Value:
invalid literal for int() with base 10: ''
Exception
Location:C:\desarrollo\Py
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:
inval
Finally - FIXED!
After a some experimenting with the command line I found out that I can not
access the foreign key field if there is no actual record.
So this throws the error as well:
>>> doc = main_documents.objects.create(doc_name="test",
doc_description="description")
>>> doc.created_by
one more thing, this is the user model setting from settings.py:
AUTH_USER_MODEL = 'accounts.UserAccount'
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to djang
et(**params)
> File
> "D:\Python27\.virtualenvs\djellis\lib\site-packages\django\db\models\query.py"
>
> in get
> 379. clone = self.filter(*args, **kwargs)
> File
> "D:\Python27\.virtualenvs\djellis\lib\site-packages\django\db\models\query.py&qu
Just so you know, it is bad practice to use "import * " when importing
modules in python.
With many modules being used, you can run into conflicting definitions.
Plus, it increases overhead - potentially an exponential decrease in
performance!
--
You received this message because you are subs
error output if it helps.
ValueError at /favs/Reddit/sysadmin/
invalid literal for int() with base 10: 'sysadmin'
Request Method: GET
Request URL: http://127.0.0.1:8000/favs/Reddit/sysadmin/
Django Version: 1.4
Exception Type: ValueError
Exception Value:
invalid literal for int() with base 10:
ack
www.jonblack.org
On Thu, Jul 5, 2012, at 02:17, Barry Morrison wrote:
Apologies, here is the error output if it helps.
ValueError at /favs/Reddit/sysadmin/
invalid literal for int() with base 10: 'sysadmin'
Request Method: GET
Request URL: http://127.0.0.1:8000/favs/Reddit/sysa
Apologies, here is the error output if it helps.
ValueError at /favs/Reddit/sysadmin/
invalid literal for int() with base 10: 'sysadmin'
Request Method: GET Request URL:
http://127.0.0.1:8000/favs/Reddit/sysadmin/ Django Version: 1.4 Exception
Type: ValueError Excep
I'm not sure without running it, which I can't do now. I have
noticed that your slug is not and id, but the field PostSubReddit
is a foerignkey which might expect an id.
Unrelated, I think your models shouldn't be pluralised (e.g. Post
instead of Posts). If you want the table name to be plural, us
I've been beating my head against this all night and now into the
morning...I have NO idea what I'm doing wrong and Google and Stack Overflow
haven't been as helpful as I had hoped.
https://gist.github.com/7dc0b98a2fe056379ae8
Any help or guidance would be greatly appreciated!
Thanks!!
--
djtrunk/django/db/models/fields/__init__.py", line 882,
> in get_prep_lookup
> return super(IntegerField, self).get_prep_lookup(lookup_type, value)
> File "/home/hari/djtrunk/django/db/models/fields/__init__.py", line 292,
> in get_prep_lookup
> return self.g
uot;, line 882,
in get_prep_lookup
return super(IntegerField, self).get_prep_lookup(lookup_type, value)
File "/home/hari/djtrunk/django/db/models/fields/__init__.py", line 292,
in get_prep_lookup
return self.get_prep_value(value)
File "/home/hari/djtrunk/djan
/docs.djangoproject.com/en/dev/ref/forms/fields/#choicefield
[2]- http://docs.djangoproject.com/en/dev/ref/forms/fields/#typedchoicefield
hth,
Nuno
On Tue, Apr 13, 2010 at 6:47 PM, geraldcor wrote:
> Hello all,
>
> I know the error "invalid literal for int() with base 10: '
ok
i resolved ..
primary key was the problem
i was using name as pk instead of id
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email t
*I am unable to resolve this issue .. please help me*
ValueError at /pages/About/
invalid literal for int() with base 10: 'About'
Request Method: GET
Request URL: http://localhost:8000/pages/About/
Exception Type: ValueError
Exception Value:
invalid literal for int() with base
That was a very good guess. I tried it but it didn't work.
On Apr 13, 12:46 pm, johan sommerfeld
wrote:
> You could try using initial=0.
>
> /J
>
> On Tuesday, April 13, 2010, geraldcor wrote:
> > Hello all,
>
> > I know the error "invalid literal f
You could try using initial=0.
/J
On Tuesday, April 13, 2010, geraldcor wrote:
> Hello all,
>
> I know the error "invalid literal for int() with base 10: '' " has
> been discussed a lot in the past, but this seems to be unique to my
> situation.
>
> I
I happened to be stopping by to post my own question, and I don't know
if this is the answer or not, but have you tried adding the argument
blank=True to your model field?
http://docs.djangoproject.com/en/dev/ref/models/fields/#blank
--
You received this message because you are subscribed to the
Hello all,
I know the error "invalid literal for int() with base 10: '' " has
been discussed a lot in the past, but this seems to be unique to my
situation.
I have 2 choice fields as defined below for both the model and form:
models.py
class Checkin(models
rking as client server. Problem is this: When I send a string say
> > '121ABC' from client as parameter to server file, it catch perfectly
> > but when I assign to any veriable it raise this error " Server raised
> > fault: 'invalid literal for int() with base
tring say
> '121ABC' from client as parameter to server file, it catch perfectly
> but when I assign to any veriable it raise this error " Server raised
> fault: 'invalid literal for int() with base 10: '211ABC' ' ".
>
> Please help in this regard.
ign to any veriable it raise this error " Server raised
fault: 'invalid literal for int() with base 10: '211ABC' ' ".
Please help in this regard. If there is anything missing please let me
know.
Thanks in Advance!!!
--
You received this message because you are subscr
did not find it's
> > > > solution.
> >
> > > > Sometimes system is sent an error:
> >
> > > > File
> > > "/usr/lib/python2.5/site-packages/django/db/models/fields/__init__.py",
> > > > line 353, in get_db_prep_
; Sometimes system is sent an error:
>
> > > File
> > "/usr/lib/python2.5/site-packages/django/db/models/fields/__init__.py",
> > > line 353, in get_db_prep_value
> > > return int(value)
>
> > > ValueError: invalid literal for i
> "/usr/lib/python2.5/site-packages/django/db/models/fields/__init__.py",
> > line 353, in get_db_prep_value
> >return int(value)
> >
> > ValueError: invalid literal for int() with base 10:
> > '42596/img/admin/icon_calendar.gif'
> >
quot;,
> line 353, in get_db_prep_value
> return int(value)
>
> ValueError: invalid literal for int() with base 10:
> '42596/img/admin/icon_calendar.gif'
>
> 42596 is a product id and
>
> 'HTTP_REFERER':
> 'http://example.com./admin/pr
lid literal for int() with base 10:
'42596/img/admin/icon_calendar.gif'
42596 is a product id and
'HTTP_REFERER':
'http://example.com./admin/product/product/42596/<http://www.emall.com.tr/admin/product/product/42596/>
',
'SCRIPT_URI': '
http://e
ew view. My model lives at admin/gcalendar/event, so I'm
> > guessing I need to visit admin/gcalendar/event/my_view. When I do
> > that, I get this error:
>
> > ValueError at /admin/gcalendar/event/my_view/
>
> > invalid literal for int() with base 10: 'my_view
t; > this new view. My model lives at admin/gcalendar/event, so I'm
> > guessing I need to visit admin/gcalendar/event/my_view. When I do
> > that, I get this error:
>
> > ValueError at /admin/gcalendar/event/my_view/
>
> > invalid literal for int() with base 10:
endar/event/my_view. When I do
> that, I get this error:
>
> ValueError at /admin/gcalendar/event/my_view/
>
> invalid literal for int() with base 10: 'my_view'
>
> With this traceback: http://dpaste.com/6649/
>
> For reference, here is my models.py: http://dpaste.c
I'm kind of guessing here about the URL I need to visit to trigger
this new view. My model lives at admin/gcalendar/event, so I'm
guessing I need to visit admin/gcalendar/event/my_view. When I do
that, I get this error:
ValueError at /admin/gcalendar/event/my_view/
invalid literal fo
On Tue, 2008-12-09 at 16:12 -0800, Chr1s wrote:
>
> ValueError at /vote/add/
>
> invalid literal for int() with base 10: 'AA'
>
> Request Method: POST
> Request URL: http://localhost:8000/vote/add/
> Exception Type: ValueError
> Exceptio
ValueError at /vote/add/
invalid literal for int() with base 10: 'AA'
Request Method: POST
Request URL:http://localhost:8000/vote/add/
Exception Type: ValueError
Exception Value:
invalid literal for int() with base 10: 'AA'
Exception Location: /us
Oh for $hit's sake - how can I be so blind?!
Thanks Malcom,
Brandon
On Oct 7, 7:48 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Tue, 2008-10-07 at 16:01 -0700, Brandon Taylor wrote:
> > Hi everyone,
>
> > Here is my code:
>
> > entry_info_dict = {
> > 'queryset' : Entry.live.all(),
On Tue, 2008-10-07 at 16:01 -0700, Brandon Taylor wrote:
> Hi everyone,
>
> Here is my code:
>
> entry_info_dict = {
> 'queryset' : Entry.live.all(),
> 'date_field' : 'pub_date',
> 'allow_future' : True
> }
>
> urlpatterns = patterns('django.views.generic.date_based',
> url(r'^
c.date_based',
>> url(r'^blog/(?P)\d{4}/$', 'archive_year', entry_info_dict,
>> name='archive_year'),
>> )
>>
>>
That pattern should be
r'^blog/(?P\d{4})/$
As it is you are passing the null string as your "
'date_field' : 'pub_date',
> 'allow_future' : True
>
> }
>
> urlpatterns = patterns('django.views.generic.date_based',
> url(r'^blog/(?P)\d{4}/$', 'archive_year', entry_info_dict,
> name='archive_year'),
&g
'archive_year', entry_info_dict,
name='archive_year'),
)
So, when I hit: http://localhost:8000/blog/2008/sep/
I get: invalid literal for int() with base 10: ''
I know these values are valid, as I have an Entry in the database and
my URL param is populated form the D
y" <[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 get
> > > the following error.
>
> > > invalid literal for int() with base 10:
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 ide
k 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 subsc
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
]>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 get
>> the following error.
>>
>> invalid literal
:17 AM, 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 get
> the following error.
>
> invalid literal for int() with base 10: '1/photos/d
return [self.get_db_prep_value(value)]
File "C:\Python25\Lib\site-packages\django\db\models\fields\__init__.py"
in get_db_prep_value
353. return int(value)
Exception Type: ValueError at /admin/tvsite/areas/1/areas/batzos.jpeg/
Exception Value: invalid literal for int() with b
>:
>>
>>
>>
>> > 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: &
et_db_prep_lookup
202. return [self.get_db_prep_value(value)]
File "/usr/lib/python2.5/site-packages/django/db/models/fields/__init__.py"
in get_db_prep_value
353. return int(value)
Exception Type: ValueError at /admin/grades/student/1/photos/desktop.png/
Exception
>
> 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() w
lems 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.
>
> >
>
--~--~-~--~~~---~--~~
Yo
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 u
oing in circles, when i change to
> DATABASE_ENGINE = 'postgresql_psycopg2'
>
> it works.
>
> but i get
> > ValueError: invalid literal for int() with base 10: '1,'
>
> instead
>
This ValueError was reported a couple of months ago:
http://code.djangoproject.com/t
rror: invalid literal for int() with base 10: '1,'
instead
--~--~-~--~~~---~--~~
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
in s
> > yncdb
> > cursor = connection.cursor()
> > File "C:\Python25\lib\site-packages\django\db\backends
> > \postgresql_psycopg2\bas
> > e.py", line 57, in cursor
> > postgres_version = [int(val) for val in cursor.fetchone()
> > [0].split()[
\django\core\management.py", line
> 504, in s
> yncdb
> cursor = connection.cursor()
> File "C:\Python25\lib\site-packages\django\db\backends
> \postgresql_psycopg2\bas
> e.py", line 57, in cursor
> postgres_version = [int(val) for val in cursor.fetchone()
&g
Python25\lib\site-packages\django\core\management.py", line
504, in s
yncdb
cursor = connection.cursor()
File "C:\Python25\lib\site-packages\django\db\backends
\postgresql_psycopg2\bas
e.py", line 57, in cursor
postgres_version = [int(val) for val in cursor.fetchone()
[0].split(
Jun 2, 3:42 pm, [EMAIL PROTECTED] wrote:
>
> > when running syncdb i get:
>
> > postgres_version = [int(val) for val in cursor.fetchone()[0].split()
> > [1].split('.')]
>
> > invalid literal for int() with base 10: '1,'
--~--~-~--~
42 pm, [EMAIL PROTECTED] wrote:
> when running syncdb i get:
>
> postgres_version = [int(val) for val in cursor.fetchone()[0].split()
> [1].split('.')]
>
> invalid literal for int() with base 10: '1,'
--~--~-~--~~~---~--~~
You r
when running syncdb i get:
postgres_version = [int(val) for val in cursor.fetchone()[0].split()
[1].split('.')]
invalid literal for int() with base 10: '1,'
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
100 matches
Mail list logo