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: invalid literal for int() with base 10: 'admin'

2019-06-27 Thread Harshit
clone.query.add_q(Q(*args, **kwargs)) >>>> >>>> File >>>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.py" >>>> in add_q >>>> 1263. clause, _ = self._add_q(q_object, self.used_aliases) >>>

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

2019-06-26 Thread Piotr Duda
lib\site-packages\django\db\models\sql\query.py" >>> in build_filter >>> 1225. condition = self.build_lookup(lookups, col, value) >>> >>> File >>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.py" >

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

2019-06-26 Thread Sipum Mishra
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

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

2019-06-25 Thread onyilimba martins mclaren tochukwu
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

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

2019-06-25 Thread Harshit
t;>>> File >>>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.py" >>>> in add_q >>>> 1263. clause, _ = self._add_q(q_object, self.used_aliases) >>>> >>>> File >>>> &quo

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

2019-06-25 Thread Sipum Mishra
t;> File >>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.py" >>> in _add_q >>> 1287. split_subq=split_subq, >>> >>> File >>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.p

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

2019-06-25 Thread Harshit
lookup = lookup_class(lhs, rhs) >> >> File >> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\lookups.py" in >> __init__ >> 20. self.rhs = self.get_prep_lookup() >> >> File >> "C:\ProgramData\Ana

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

2019-06-25 Thread Sipum Mishra
; 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

invalid literal for int() with base 10: 'admin'

2019-06-24 Thread Harshit Agarwal
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 Google Grou

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

2019-06-22 Thread Alejandro Pena
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

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

2019-06-22 Thread Lutalo Bbosa joseph
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: invalid literal for int() with base 10: ''

2019-06-22 Thread Alejandro Pena
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:

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

2019-06-22 Thread Lutalo Bbosa joseph
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)

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

2019-06-22 Thread Alejandro Pena
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

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

2019-06-22 Thread Lutalo Bbosa joseph
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

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

2019-06-22 Thread Lutalo Bbosa joseph
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

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

2019-06-22 Thread Alejandro Pena
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

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

2019-06-22 Thread Amiya Dash
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

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

2019-06-21 Thread Héctor Alonso Lozada Echezuría
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

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

2019-06-21 Thread Lutalo Bbosa joseph
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

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

2019-06-21 Thread Lutalo Bbosa joseph
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

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

2019-06-21 Thread Héctor Alonso Lozada Echezuría
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

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

2019-06-21 Thread Lutalo Bbosa joseph
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 coming from. >

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

2019-06-21 Thread Jorge Gimeno
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

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

2019-06-21 Thread Aldian Fazrihady
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

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

2019-06-21 Thread Lutalo Bbosa joseph
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

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

2019-06-21 Thread Ahmed Ishtiaque
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

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

2019-06-21 Thread anchal agarwal
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

Re: ValueError at /api/list/ invalid literal for int() with base 10: '35/like'

2018-08-10 Thread Andréas Kühne
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, >

ValueError at /api/list/ invalid literal for int() with base 10: '35/like'

2018-08-09 Thread 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=False) # user=models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE)

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

2018-07-25 Thread Jorge Gimeno
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

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

2017-07-26 Thread Alexander Joseph
ompany 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, Alexander Joseph wrote: >&

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

2017-07-26 Thread Alexander Joseph
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 in the contacts tab

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: invalid literal for int() with base 10: '' using FormSet with File Upload

2016-01-12 Thread Luis Zárate
: > 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.1 > Exception Type:ValueError > Exception Value: > > invalid literal for int() with base 10: '' > > Exceptio

invalid literal for int() with base 10: '' using FormSet with File Upload

2016-01-12 Thread Néstor Boscán
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\Python27\lib\site

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: Suddenly I keep getting this error: invalid literal for int() with base 10: ''

2013-08-11 Thread DJ-Tom
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

Re: Suddenly I keep getting this error: invalid literal for int() with base 10: ''

2013-08-11 Thread DJ-Tom
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

Suddenly I keep getting this error: invalid literal for int() with base 10: ''

2013-08-11 Thread DJ-Tom
\query.py" > > in add_q > 1266. can_reuse=used_aliases, > force_having=force_having) > File > "D:\Python27\.virtualenvs\djellis\lib\site-packages\django\db\models\sql\query.py" > > in add_filter > 1197.

Re: invalid literal for int() with base 10

2012-10-22 Thread Nathan Knight
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

Re: DetailView - invalid literal for int() with base 10:

2012-07-05 Thread Jon Black
. 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: 'sysadmin' Exception Location: /home

Re: DetailView - invalid literal for int() with base 10:

2012-07-05 Thread Jon Black
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/sysadmin/ Django Version: 1.4 Exception

Re: DetailView - invalid literal for int() with base 10:

2012-07-05 Thread Barry Morrison
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 Exception Value

Re: DetailView - invalid literal for int() with base 10:

2012-07-05 Thread Jon Black
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,

DetailView - invalid literal for int() with base 10:

2012-07-05 Thread Barry Morrison
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!! --

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: ChoiceField invalid literal for int() with base 10: ''

2010-04-15 Thread Nuno Maltez
/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 <gregco...@gmail.com> wrote: > Hello all, > > I know the error "invalid literal for int() with base 10: '' " h

Re: invalid literal for int() with base 10

2010-04-13 Thread Pankaj Singh
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

invalid literal for int() with base 10

2010-04-13 Thread Pankaj Singh
*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 10: 'About

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

2010-04-13 Thread geraldcor
, > > > 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 &g

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

2010-04-13 Thread johan sommerfeld
You could try using initial=0. /J On Tuesday, April 13, 2010, geraldcor <gregco...@gmail.com> 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 > situat

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

2010-04-13 Thread bfrederi
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

ChoiceField invalid literal for int() with base 10: ''

2010-04-13 Thread geraldcor
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.Model): .

Re: invalid literal for int with base 10

2010-04-01 Thread sim
;two scripts" ? > > > and > > working 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 > > faul

Re: invalid literal for int with base 10

2010-04-01 Thread bruno desthuilliers
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 10: '211ABC' ' ". > > Please help in this regard. If t

invalid literal for int with base 10

2010-04-01 Thread sim
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 subscribed to the Google Groups &qu

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Ğ
id 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://example.com/admin/product/product/42596/img/admin/i

Re: ModelAdmin get_urls w/ invalid literal for int() with base 10

2009-03-05 Thread Brian Neal
o 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 for int() with base

Re: ModelAdmin get_urls w/ invalid literal for int() with base 10

2009-03-04 Thread Brian Neal
isit 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 for int()

Re: ModelAdmin get_urls w/ invalid literal for int() with base 10

2009-03-04 Thread Brian Neal
_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.com/6650/ > >

ModelAdmin get_urls w/ invalid literal for int() with base 10

2009-03-04 Thread Brian Neal
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 for int() with base 10: 'my_view

Re: I got 'invalid literal for int() with base 10: 'AA'' error, please help

2008-12-09 Thread Malcolm Tredinnick
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 > Exception Value: &

I got 'invalid literal for int() with base 10: 'AA'' error, please help

2008-12-09 Thread Chr1s
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: /usr/lib/python2.5/site

Re: generic.date_based.archive_year throws "invalid literal for int() with base 10: ''

2008-10-07 Thread Brandon Taylor
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' :

Re: generic.date_based.archive_year throws "invalid literal for int() with base 10: ''

2008-10-07 Thread Malcolm Tredinnick
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', >

Re: generic.date_based.archive_year throws "invalid literal for int() with base 10: ''

2008-10-07 Thread Steve Holden
, >> name='archive_year'), >> ) >> >> That pattern should be r'^blog/(?P\d{4})/$ As it is you are passing the null string as your "year" view argument: >>> int('') Traceback (most recent call last): File "", line 1, in ValueErro

Re: generic.date_based.archive_year throws "invalid literal for int() with base 10: ''

2008-10-07 Thread Brandon Taylor
' : True > > } > > urlpatterns = patterns('django.views.generic.date_based', >     url(r'^blog/(?P)\d{4}/$', '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 ba

generic.date_based.archive_year throws "invalid literal for int() with base 10: ''

2008-10-07 Thread Brandon Taylor
, 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 DB. I have also visually verified that the values are correct. What can I possibly be doing

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

2008-10-01 Thread mrtot
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. > >

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

2008-09-20 Thread kelvin pompey
face. 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. > > >

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

2008-09-20 Thread Srik
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 subscribed to th

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

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

2008-09-18 Thread Lisa Dusseault
<[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/desktop.png' > > Any

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

2008-09-18 Thread Picio
\__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 base 10: '1/areas/batzos.jpeg' 2008/9/18 kelvin pompey <[EMAIL PROTECTED]>: > Everything is be

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

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

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

2008-09-18 Thread kelvin pompey
on2.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 Value: invalid literal for int() with base 10: '1/photos/desktop.png' On Thu, Sep 18, 2008 at

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

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

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

2008-09-18 Thread Picio
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. > > > > --~--~-~--~~~---~--~~ You receiv

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

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread Karen Tracey
s going 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/ticket/6987 and fixe

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread circularfunc
lid 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 unsubscribe from thi

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread circularfunc
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()[

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread neuro_damage
\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

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread circularfunc
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(

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread circularfunc
TED] 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 received this m

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread neuro_damage
: > 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

syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread circularfunc
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 Google Groups "D