Re: ValueError: invalid literal for int() with base 10: '127.0.0.1:3306'

2022-11-14 Thread 'Kasper Laudrup' via Django users
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 string '12

Re: ValueError: invalid literal for int() with base 10:

2017-07-26 Thread Alexander Joseph
t;> >> For some reason last_invoice_num is an invalid value to pass to >> int(). You'd have to check what that actual value is that you're >> passing to the function. The error message *should* specify what >> that value is: >> >> >>> int("

Re: ValueError: invalid literal for int() with base 10:

2017-07-26 Thread Alexander Joseph
le. Thanks On Wednesday, July 26, 2017 at 1:27:28 PM UTC-6, Tim Chase wrote: > > 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

Re: ValueError: invalid literal for int() with base 10:

2017-07-26 Thread Tim Chase
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) +

ValueError: invalid literal for int() with base 10:

2017-07-26 Thread Alexander Joseph
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

Re: ValueError: invalid literal for int() with base 10: 'on'

2016-07-08 Thread Gary Roach
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 %} >

Re: ValueError: invalid literal for int() with base 10: 'on'

2016-07-08 Thread James Schneider
> 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 }}" />

ValueError: invalid literal for int() with base 10: 'on'

2016-07-08 Thread Gary Roach
"/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/ HTTP/1.1" 5

Re: Foreignkey troubles : some key look ups give me a ValueError: invalid literal for int() with base 10 error

2011-02-28 Thread hari jayaram
k/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.get_prep_value

Foreignkey troubles : some key look ups give me a ValueError: invalid literal for int() with base 10 error

2011-02-25 Thread hari jayaram
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/django/db/mode

Re: ValueError: invalid literal for int() with base 10: '42596/img/admin/icon_calendar.gif'

2009-09-01 Thread ANIL KARADAĞ
"/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

Re: ValueError: invalid literal for int() with base 10: '42596/img/admin/icon_calendar.gif'

2009-09-01 Thread Daniel Roseman
r a week. i did not resolve and i 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_value

Re: ValueError: invalid literal for int() with base 10: '42596/img/admin/icon_calendar.gif'

2009-09-01 Thread ANIL KARADAĞ
imes 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 int() with base 10: >

ValueError: invalid literal for int() with base 10: '42596/img/admin/icon_calendar.gif'

2009-09-01 Thread ANIL KARADAĞ
hello everbody, i have en error for a week. i did not resolve and i 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_value return int(value) ValueError: inval