Re: ValueError: save() prohibited to prevent data loss due to unsaved related object

2015-10-17 Thread Tim Graham
Do you have code that worked before (didn't result in data loss) but doesn't work now? If so, it could be a bug in Django. On Friday, October 16, 2015 at 8:30:07 PM UTC-4, Mike Dewhirst wrote: > > I think I understand this error and I like what it does. My question is > ... > > What is the nece

ValueError: save() prohibited to prevent data loss due to unsaved related object

2015-10-16 Thread Mike Dewhirst
I think I understand this error and I like what it does. My question is ... What is the necessary coding paradigm when you have all sorts of m:1, 1:m and m:m relationships and need to create those objects when they don't exist when saving a new central object? I'm moving from 1.7.x to 1.8.5 a

Re: ValueError: Dependency on unknown app

2015-06-26 Thread Filipe Ximenes
ns=True) >> File "c:\Python34\lib\site-packages\django\db\migrations\loader.py", >> line 47, >> in __init__ >> self.build_graph() >> File "c:\Python34\lib\site-packages\django\db\migrations\loader.py", >> line 287, >

Re: ValueError: Dependency on unknown app

2015-06-25 Thread James Schneider
er(None, ignore_no_migrations=True) > File "c:\Python34\lib\site-packages\django\db\migrations\loader.py", > line 47, > in __init__ > self.build_graph() > File "c:\Python34\lib\site-packages\django\db\migrations\loader.py", > line 287, > in build_graph &g

ValueError: Dependency on unknown app

2015-06-25 Thread MamEshe5minPlz
key(parent, key[0]) File "c:\Python34\lib\site-packages\django\db\migrations\loader.py", line 165, in check_key raise ValueError("Dependency on unknown app: %s" % key[0]) ValueError: Dependency on unknown app: cw_auth cw_auth/models.py code bellow: from django.d

Re: ValueError: No JSON object could be decoded

2015-06-22 Thread Bill Freeman
>> >> #logger.debug("%s",recJSON['SenderID']) >> >> logger.debug("%s",request.body) >> >> >> #print 'Raw Json "%s"' % request.body >> >> return HttpResponse(json.dumps

Re: ValueError: No JSON object could be decoded

2015-06-21 Thread Vijay Khemlani
.debug("%s",request.body) > > > #print 'Raw Json "%s"' % request.body > > return HttpResponse(json.dumps(request.body),content_type= > "application/json") > > > > > But getting an error at json.loads. ValueErro

ValueError: No JSON object could be decoded

2015-06-21 Thread Dhaval M
uot;%s",recJSON['SenderID']) logger.debug("%s",request.body) #print 'Raw Json "%s"' % request.body return HttpResponse(json.dumps(request.body),content_type= "application/json") But getting an error at js

Re: ValueError during migrations.RunPython to create OneToOne records in new model

2015-06-17 Thread Gergely Polonkai
lf.used_aliases) > > File > > >"/home/polesz/Projects/dem/venv/lib/python2.7/site-packages/django/db/models/sql/query.py", > >line 1333, in _add_q > >current_negated=current_negated, connector=connector, > >allow_joins=allow_joins) > > File > > >&

Re: ValueError during migrations.RunPython to create OneToOne records in new model

2015-06-17 Thread Markus Holtermann
ins) > File >"/home/polesz/Projects/dem/venv/lib/python2.7/site-packages/django/db/models/sql/query.py", >line 1175, in build_filter >self.check_related_objects(field, value, opts) > File >"/home/polesz/Projects/dem/venv/lib/python2.7/site-packages/django/db/mo

ValueError during migrations.RunPython to create OneToOne records in new model

2015-06-17 Thread Gergely Polonkai
, line 1070, in check_related_objects self.check_query_object_type(value, opts) File "/home/polesz/Projects/dem/venv/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1054, in check_query_object_type (value, opts.object_name)) ValueError: Cannot query "pole

Re: Django 1.8 tutorial-Chapter4: ValueError at /polls/1/vote/

2015-05-14 Thread Charito Romeo
Hi Alasdair, Thanks a lot for the help. It's working now. Cheers :) Charito On Thu, May 14, 2015 at 7:57 PM, Alasdair Nicol wrote: > On 14/05/15 02:50, charito.romeo wrote: > >> | >> > value="{{ >> choice.id }}"/> >> | >> > > The problem is that there is a new line in the middle of >

Re: Django 1.8 tutorial-Chapter4: ValueError at /polls/1/vote/

2015-05-14 Thread Alasdair Nicol
On 14/05/15 02:50, charito.romeo wrote: | | The problem is that there is a new line in the middle of "{{ choice.id }}". Change it to: value="{{ choice.id }}"/> Cheers, Alasdair -- Alasdair Nicol Developer, MEMSET mail: alasd...@memset.com web: http://www.memset.com/ Memset Lt

Django 1.8 tutorial-Chapter4: ValueError at /polls/1/vote/

2015-05-14 Thread charito.romeo
I am following the django 1.8 tutorial and I currently finished Part 4. My problem is when I tried to click on one of the radio buttons to vote, it gave me a ValueError below: ValueError at /polls/1/vote/ invalid literal for int() with base 10: '{{ choice.id }}'

Python csv Module ValueError Exception

2015-04-13 Thread Henry Versemann
e python object throwing the ValueError exception.). It doesn't appear to have many new characters which might be causing the problem, except that it seems to have comma characters as part of some of the field values. So I'm wondering if that could be the problem? Would using the cs

Re: Django ReverseSingleRelatedObjectDescriptor.__set__ ValueError

2015-03-18 Thread Simon Charette
ing(db_alias).create( > content_type=content_type, > object_id=house.id) > > > > class Migration(migrations.Migration): > > > dependencies = [ > ('simpleapp', '0010_location') > ] > > >

Django ReverseSingleRelatedObjectDescriptor.__set__ ValueError

2015-03-18 Thread Bradford Wade
] When I run this (Django 1.7.4) I get File ".../django/db/models/fields/related.py", line 597, in __set__ self.field.rel.to._meta.object_name, ValueError: Cannot assign "": "Place.content_type" must be a "ContentType" instance. If I comment out t

Why am I getting ValueError: Unable to configure logger 'django_request': Unable to add handler 'request_handler': 'request_handler'?

2015-02-24 Thread Deanna Robertazzi
-packages/Django-1.7.4-py2.7.egg/django/utils/log.py", line 87, in configure_logging logging_config_func(logging_settings) File "/usr/lib/python2.7/logging/config.py", line 794, in dictConfig dictConfigClass(config).configure() File "/usr/lib/python2.7/logging/config

Re: Django bug? FieldFile.save() accesses content.size after self.storage.save() has closed content; ValueError is raised when file is BytesIO

2014-05-22 Thread Hodza Nassredin
this)? > > I'm using Django 1.7 on Python 3.4. > > I'm new to Django but a longtime Python programmer. I've been digging > into a ValueError I get when I supply a BytesIO instance as the `file` > parameter to an ImageFile instance, then supply that ImageFile inst

Django bug? FieldFile.save() accesses content.size after self.storage.save() has closed content; ValueError is raised when file is BytesIO

2014-05-14 Thread James Boyden
Hi all, Can anyone confirm that the following is a bug in Django (and that I'm not simply missing the correct way to do this)? I'm using Django 1.7 on Python 3.4. I'm new to Django but a longtime Python programmer. I've been digging into a ValueError I get when I supply a

Re: Django manage.py returns ValueError: zero length field name in format

2014-01-06 Thread Jaimin Patel
manage.py* > > I get: > > *Traceback (most recent call last): > File "manage.py", line 12, in > print('Your environment > is:"{}"'.format(os.environ['DJANGO_SETTINGS_MODULE'])) > ValueError: zero length field name in** format* &g

Re: Django manage.py returns ValueError: zero length field name in format

2014-01-06 Thread Jaimin Patel
>> File "manage.py", line 12, in >> print('Your environment >> is:"{}"'.format(os.environ['DJANGO_SETTINGS_MODULE'])) >> ValueError: zero length field name in** format* >> >> Any idea what is wrong? I am also runnin

Re: Django manage.py returns ValueError: zero length field name in format

2014-01-05 Thread Mario Gudelj
Sounds like you need 2.7 or at least 3. Check out this answer on SO http://stackoverflow.com/questions/10054122/valueerror-zero-length-field-name-in-format-python Can't have print('Your environment is:"{}"'.format(os.environ['DJANGO_SETTINGS_MODULE'])) Should

Django manage.py returns ValueError: zero length field name in format

2014-01-05 Thread Carlos Quiros
Hi, I am trying to run a Django application in Python 2.6.6 Django==1.5.5 . But when I try to run *python manage.py* I get: *Traceback (most recent call last): File "manage.py", line 12, in print('Your environment is:"{}"'.format(os.environ['DJANGO_S

django_tables2: TemplateSyntaxError: Caught ValueError while rendering: Expected table or queryset

2013-12-30 Thread Elan Kugelmass
into this problem in the future. http://stackoverflow.com/questions/20843067/django-tables2-templatesyntaxerror-caught-valueerror-while-rendering-expected Would very much appreciate your thoughts! Happy New Year's. -- You received this message because you are subscribed to the Google Groups

Django migrate model with user in a foreignkey fails (ValueError: Related model u'auth.User' cannot been resolved)

2013-09-04 Thread Tomas Jacobsen
n foreign_related_fields return tuple(rhs_field for lhs_field, rhs_field in self.related_fields) File "/home/USER/.virtualenvs/PROJECT/src/django-trunk/django/db/models/fields/related.py", line 958, in related_fields self._related_fields = self.resolve_related_fields() File "/ho

Re: ValueError at / Empty module name

2013-09-04 Thread Kelvin Wong
Your MEDIA_ROOT setting is also suspect. As-is you will be writing user submitted files into your shared site-packages folder. Hopefully you won't be running Django as root and you'll get a permission error. K -- You received this message because you are subscribed to the Google Groups "Djan

Re: ValueError at / Empty module name

2013-09-04 Thread Satinderpal Singh
On Wed, Sep 4, 2013 at 11:28 PM, Mantas Zilinskis wrote: > your problem is in TEMPLATE_CONTEXT_PROCESSORS = ( > 'django.contrib.messages.context_processors.messages' > 'django.contrib.auth.context_processors.auth' > ) > it's a tuple, you have to have a comma after messages proccesor Thanks a lot

Re: ValueError at / Empty module name

2013-09-04 Thread Satinderpal Singh
in get_standard_processors() + processors: File "/usr/local/lib/python2.7/dist-packages/django/template/context.py" in get_standard_processors 152. mod = import_module(module) File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in import_mod

Re: ValueError at / Empty module name

2013-09-04 Thread Mantas Zilinskis
your problem is in TEMPLATE_CONTEXT_PROCESSORS = ( 'django.contrib.messages.context_processors.messages' 'django.contrib.auth.context_processors.auth' ) it's a tuple, you have to have a comma after messages proccesor On Wed, Sep 4, 2013 at 12:53 PM, Mantas Zilinskis wrote: > and also all your t

Re: ValueError at / Empty module name

2013-09-04 Thread Mantas Zilinskis
and also all your traceback On Wed, Sep 4, 2013 at 12:45 PM, Satinderpal Singh < satinder.goray...@gmail.com> wrote: > On Wed, Sep 4, 2013 at 11:11 PM, Mantas Zilinskis > wrote: > > can you post your settings.py > > Here it is: > > # Django settings for nanaksar project. > > DEBUG = True > TEMP

Re: ValueError at / Empty module name

2013-09-04 Thread Satinderpal Singh
On Wed, Sep 4, 2013 at 11:11 PM, Mantas Zilinskis wrote: > can you post your settings.py Here it is: # Django settings for nanaksar project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_em...@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': {

Re: ValueError at / Empty module name

2013-09-04 Thread Mantas Zilinskis
can you post your settings.py On Wed, Sep 4, 2013 at 12:26 PM, Satinderpal Singh < satinder.goray...@gmail.com> wrote: > I face this error after configuring admin.py file in my project: > > ValueError at / > > Empty module name > > Request Method:GET > Request

ValueError at / Empty module name

2013-09-04 Thread Satinderpal Singh
I face this error after configuring admin.py file in my project: ValueError at / Empty module name Request Method:GET Request URL:http://localhost/nanaksar/ Django Version:1.5.2 Exception Type:ValueError Exception Value: Empty module name Exception Location:/usr/local/lib/python2.7/dist

Re: ValueError: Cannot create form field for 'room_setup' yet, because its related model 'main_page.roomsetup' has not been loaded yet

2013-09-04 Thread DJ-Tom
I have now separated the form definitions into forms.py and import the models from models.py... so this is fixed -- 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

ValueError: Cannot create form field for 'room_setup' yet, because its related model 'main_page.roomsetup' has not been loaded yet

2013-09-04 Thread DJ-Tom
Hi, given the following models and model form I get the error in the subject, apparently because the related model "roomsetup" is defined *after* the "RoomsForm" form and is not loaded at the time the form is created. class rooms(models.Model): [ lots of other fields] *room_setup* =

ValueError at /admin/flatpages/flatpage/1/

2013-02-08 Thread frocco
If I add a record and do not select the sites dropdown, I get ValueError at /admin/flatpages/flatpage/1/ Cannot use None as a query value Request Method:POSTRequest URL: http://127.0.0.1:8000/admin/flatpages/flatpage/1/Django Version:1.4.3Exception Type:ValueErrorException Value: Cannot use

Re: an elusive ValueError: 'str' object not callable -- lost.

2013-01-31 Thread Tom Evans
On Wed, Jan 30, 2013 at 6:59 PM, Maurice Asimov wrote: > Hey guys. > > I recently started getting a ValueError complaining that an str is not > callable -- in a very wierd place. > > This happens to some calls to messages.info(request, 'somethingsomething'), > in

an elusive ValueError: 'str' object not callable -- lost.

2013-01-30 Thread Maurice Asimov
Hey guys. I recently started getting a ValueError complaining that an str is not callable -- in a very wierd place. This happens to some calls to messages.info(request, 'somethingsomething'), in one of those cases __inside the django console__ Traceback: Traceback: File "/app

Re: ValueError: unknown locale: UTF-8

2012-05-02 Thread Timothy Makobu
The Fix: http://patrick.arminio.info/blog/2012/02/fix-valueerror-unknown-locale-utf8/ On Tue, May 1, 2012 at 3:08 PM, Timothy Makobu wrote: > Update: > > When I downgraded to 1.3, everything worked ok. So I'll be using 1.3 for a > while now to avoid surprises. > > >

Re: ValueError: unknown locale: UTF-8

2012-05-01 Thread Timothy Makobu
le >> default_username = get_default_username() >> File >> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py", >> line 105, in get_default_username >> default_username = get_system_username() >> File >> &qu

Re: ValueError: unknown locale: UTF-8

2012-04-29 Thread Timothy Makobu
ault_username = get_system_username() > File > "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py", > line 85, in get_system_username > return getpass.getuser().decode(locale.getdefaultlocale()[1]) > File "/opt/local/lib/python2.7/

ValueError: unknown locale: UTF-8

2012-04-29 Thread Timothy Makobu
, in get_system_username return getpass.getuser().decode(locale.getdefaultlocale()[1]) File "/opt/local/lib/python2.7/locale.py", line 503, in getdefaultlocale return _parse_localename(localename) File "/opt/local/lib/python2.7/locale.py", line 435, in _parse_localenam

Re: ValueError at /login/ Unknown password hashing algorithm 'yara'. Did you specify it in the PASSWORD_HASHERS setting?

2012-04-20 Thread chuwy
ot;Your account is not active, please contact > the site admin." > else: > state = "Your username and/or password were incorrect." > > return render_to_response('auth.html',{'state':state, 'username': > user

ValueError at /login/ Unknown password hashing algorithm 'yara'. Did you specify it in the PASSWORD_HASHERS setting?

2012-04-20 Thread Mai
e site admin." else: state = "Your username and/or password were incorrect." return render_to_response('auth.html',{'state':state, 'username': username}) every time i try to enter username and password its keeps on sending me thi

ValueError raised when deleting inline objects

2011-05-26 Thread Renato Garcia Pedigoni
Hello I'm trying to delete inline objects within the admin interface (the delete checkboxes on change_form) but its raising "ValueError": 'ProductVariant' instance needs to have a primary key value before a many-to-many relationship can be used I'd like some help t

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
but > lookups only succeed with integer fields . The original database has integer > and non-integer values for this field. Only Non-int fields throw a > ValueError when I try to use the filter in django. > > > here is my test case: > > I have a Parent table and a child table.

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

2011-02-25 Thread hari jayaram
original database has integer and non-integer values for this field. Only Non-int fields throw a ValueError when I try to use the filter in django. here is my test case: I have a Parent table and a child table. Both parent and child have their own primary keys. The child table has the parent

Re: ValueError.

2011-01-12 Thread Shawn Milochik
On Jan 12, 2011, at 12:14 PM, delegb...@dudupay.com wrote: > How can I work around this ValueError: too many values to unpack. > I am actually trying to extract certain portion of a csv file. > I just need an insight into what could be causing such error and I should be > able t

ValueError.

2011-01-12 Thread delegbede
How can I work around this ValueError: too many values to unpack. I am actually trying to extract certain portion of a csv file. I just need an insight into what could be causing such error and I should be able to figure out the rest. Thanks. Sent from my BlackBerry wireless device from MTN

ValueError: Empty module name

2010-11-16 Thread ErritG
s/2.7/lib/python2.7/ site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) ValueError: Empty module name If found several posts but none so far addressed this problem in particular. Thanks for kind coop in advance! Errit. -- You received this message because yo

Re: ValueError: Cannot import the required field 'tagging.fields.TagField'

2010-07-25 Thread Martin Lundberg
t; > > I'm having problems with running ./manage.py test. When it is running > > some South migrations I'm getting this error: ValueError: Cannot > > import the required field 'tagging.fields.TagField'. I don't know how > > to fix it. > > >

Re: ValueError: Cannot import the required field 'tagging.fields.TagField'

2010-07-25 Thread Martin Lundberg
gt; > I'm having problems with running ./manage.py test. When it is running > some South migrations I'm getting this error: ValueError: Cannot > import the required field 'tagging.fields.TagField'. I don't know how > to fix it. > > -Martin -- You received t

ValueError: Cannot import the required field 'tagging.fields.TagField'

2010-07-23 Thread Martin Lundberg
Hi, I'm having problems with running ./manage.py test. When it is running some South migrations I'm getting this error: ValueError: Cannot import the required field 'tagging.fields.TagField'. I don't know how to fix it. -Martin -- You received this message because

Re: ValueError with multi-table inheritance in Django Admin

2010-05-16 Thread Jori
Thanks a lot! It didn't cross my mind to check the "hidden" relations as this was the first time for me with multi-table inheritance. -Jori On May 16, 2:26 pm, Karen Tracey wrote: > On Sun, May 16, 2010 at 4:58 AM, Jori wrote: > > The problem seems to be that you have named a field in your Comm

Re: ValueError with multi-table inheritance in Django Admin

2010-05-16 Thread Karen Tracey
On Sun, May 16, 2010 at 4:58 AM, Jori wrote: > Hi, > > I have a problem when using MIT in my models. I created two new > classes which inherit model Entry: > >class Entry(models.Model): >LANGUAGE_CHOICES = settings.LANGUAGES > >language = models.CharField(max_length=2, > verbo

ValueError with multi-table inheritance in Django Admin

2010-05-16 Thread Jori
dmin via admin.site.register I'm getting ValueError when trying to create a comment or a discount via admin. Adding entries works fine thou. Error msg: ValueError at /admin/reviews/discount/add/ Cannot assign "''": "Discount.discount" must be a "Discount&qu

Re: ValueError on deleting a model object with an ImageField through Admin Interface

2010-05-13 Thread ryan west
I found the solution to my own problem. When the page was reloading, I am guessing that the actual entity had not been deleted yet, and the method __unicode__(self) was being called, requesting access of self.image (which did not exist, because that HAD been deleted). A simple modification to the

ValueError on deleting a model object with an ImageField through Admin Interface

2010-05-13 Thread ryan west
get a value error saying: "ValueError at /admin/projects/project/1/ The 'image' attribute has no file associated with it." The entry correctly deletes from my DB (on successive loads of the admin page, I no longer see the entry), the file does not delete from my directory howeve

Re: ValueError, The view django_bookmarks.bookmarks.views.user_page didn't return an HttpResponse object.

2010-03-10 Thread Daniel Roseman
On Mar 8, 4:24 pm, Naveen Reddy wrote: > def user_page(request, username): >     try: >         user = User.objects.get(username=username) >     except: >             raise Http404('Requested user not found.') >         bookmarks = user.bookmark_set.all() >         template = get_template('user_p

Re: ValueError, The view django_bookmarks.bookmarks.views.user_page didn't return an HttpResponse object.

2010-03-08 Thread Naveen Reddy
variables = Context({ 'username': username, 'bookmarks': bookmarks }) output = template.render(variables) return HttpResponse(output) On Sun, Mar 7, 2010 at 11:19 PM, Daniel Roseman wrote: > On Mar 7,

Re: ValueError, The view django_bookmarks.bookmarks.views.user_page didn't return an HttpResponse object.

2010-03-07 Thread Daniel Roseman
On Mar 7, 2:42 pm, Naveen Reddy wrote: > Why am i getting this error: > ValueError at /user/naveen_admin/ > The view django_bookmarks.bookmarks.views.user_page didn't return an > HttpResponse object. > Request Method: GET > Request URL:    http://localhost:8000/user/naveen_

ValueError, The view django_bookmarks.bookmarks.views.user_page didn't return an HttpResponse object.

2010-03-07 Thread Naveen Reddy
Why am i getting this error: ValueError at /user/naveen_admin/ The view django_bookmarks.bookmarks.views.user_page didn't return an HttpResponse object. Request Method: GET Request URL:http://localhost:8000/user/naveen_admin/ Exception Type: ValueError Exception Value: The

Re: implementing login in application,gets ValueError

2010-02-09 Thread bruno desthuilliers
quot;redirect" response # XXX AND IF IT FAILS else: return a response displaying the login form > when I give a wrong username password combination ,I get this error > ValueError,.views.login_view didn't return an HttpResponse object. Indeed. See the big &

implementing login in application,gets ValueError

2010-02-09 Thread harryos
tterns('', url(r'^','myapp.views.login_view',name='myapp_login'), ) Also a login page login.html -- This is the login page Username: Password: when I give a wrong username password comb

Modelform edit on Production server throws : ValueError, The 'img' attribute has no file associated with it.

2009-09-10 Thread coolis_willis
Hey fellow Django users, I'm hoping someone has an answer to this problem that came up when moving my files to production. I have a form that has an ImageField for the usual profile image for members. The rest of the form updates, but the error is thrown when you try to change the image. A littl

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

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

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

2009-09-01 Thread Daniel Roseman
; 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

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/icon_calendar.gif' > >

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

2009-09-01 Thread Daniel Roseman
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

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: inva

Re: ValueError when uploading image

2009-08-06 Thread Malcolm MacKinnon
lib/python2.5/site-packages/django/core/handlers/base.py" > in get_response > 92. response = callback(request, *callback_args, > **callback_kwargs) > File "/home/malcolm/data1/orders1/../orders1/onhand/views.py" in > image_lo

ValueError when uploading image

2009-08-06 Thread Mac
in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "/home/malcolm/data1/orders1/../orders1/onhand/views.py" in image_loads 49. form.save() File "/usr/lib/python2.5/site-packages/django/forms/models.py" in save 407. fail_

Re: ValueError

2009-08-06 Thread Luke Seelenbinder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Could we have the full traceback? That really isn't enough information to determine your problem. Regards, Luke luke.seelenbin...@gmail.com rekha wrote: > Hi, im getting ValueError when try to redirect to an html page.. also > the vali

ValueError

2009-08-06 Thread rekha
Hi, im getting ValueError when try to redirect to an html page.. also the validation code in forms.py doesnt work when i test it with wrong inputs. it accepts the wrong input also.. what would be the bug? ===views.py code== def register(request): if request.method == '

Re: weird ValueError

2009-07-20 Thread V
stupid error, thank you On Jul 20, 12:23 pm, Daniel Roseman wrote: > On Jul 20, 11:13 am, Viktor wrote: > > > my view calls > > > survey = get_object_or_404(models.Survey, {'pk': int(survey_id)}) > > > and gives a ValueError: need more than 1 value to

Re: weird ValueError

2009-07-20 Thread Daniel Roseman
On Jul 20, 11:13 am, Viktor wrote: > my view calls > > survey = get_object_or_404(models.Survey, {'pk': int(survey_id)}) > > and gives a ValueError: need more than 1 value to unpack, the full > traceback is athttp://python.pastebin.com/m3f715909 > > I have

weird ValueError

2009-07-20 Thread Viktor
my view calls survey = get_object_or_404(models.Survey, {'pk': int(survey_id)}) and gives a ValueError: need more than 1 value to unpack, the full traceback is at http://python.pastebin.com/m3f715909 I have no clue what the problem might be, especially as I've seen that in the d

Re: help with ValueError

2009-05-29 Thread lperk
veForm() >   variables = RequestContext(request, { >      'form': form >   }) >   return render_to_response('bookmark_save.html', variables) > > ..and everything is working fine..I save url, title and tag normaly > and they can be seen on my web page..only option for "s

help with ValueError

2009-05-29 Thread lperk
rmaly and they can be seen on my web page..only option for "sharing on main page" is not working.. I got error: ValueError at /save/ Cannot assign "": "SharedBookmark.bookmark" must be a "bookmark" instance. Does anyone know what is the problem with this cod

Fixed: Why does form.is_valid() throw ValueError?

2009-05-23 Thread Rex
t; > self._meta.fields, fail_message, commit) > > > > File "/usr/lib/python2.5/site-packages/django/forms/models.py" in > > > > save_instance > > > >   42.                          " validate." % (opts.object_name, > > > > fail_mes

Re: Why does form.is_valid() throw ValueError?

2009-05-23 Thread R. Gorman
> > >   319.         return save_instance(self, self.instance, > > > self._meta.fields, fail_message, commit) > > > File "/usr/lib/python2.5/site-packages/django/forms/models.py" in > > > save_instance > > >   42.                          " validat

Re: Why does form.is_valid() throw ValueError?

2009-05-23 Thread Daniel Roseman
> > >   50.         if f.is_valid(): > > > File "/usr/lib/python2.5/site-packages/django/forms/models.py" in save > > >   319.         return save_instance(self, self.instance, > > > self._meta.fields, fail_message, commit) > > > File "/usr/lib/pytho

Re: Why does form.is_valid() throw ValueError?

2009-05-22 Thread Rex
s/models.py" in save > >   319.         return save_instance(self, self.instance, > > self._meta.fields, fail_message, commit) > > File "/usr/lib/python2.5/site-packages/django/forms/models.py" in > > save_instance > >   42.                          " valid

Re: Why does form.is_valid() throw ValueError?

2009-05-22 Thread R. Gorman
uot;/usr/lib/python2.5/site-packages/django/forms/models.py" in > save_instance >   42.                          " validate." % (opts.object_name, > fail_message)) > > Exception Type: ValueError at /games/pd/survey/ > Exception Value: The User could not be changed because the da

Why does form.is_valid() throw ValueError?

2009-05-21 Thread Rex
n save_instance 42. " validate." % (opts.object_name, fail_message)) Exception Type: ValueError at /games/pd/survey/ Exception Value: The User could not be changed because the data didn't validate. Based on the documentation I've read, I thought that is_valid() should just r

After upload ImageField in admin creates a 'Currently: /path/to/image' link which returns ValueError

2008-12-29 Thread dojuba
is like: Currently: /path/to/image When I click on it, I get an ValueError. I don't know actually what normally it is expected to return, but since it opens in a new tab, I assume it would bring up the image uploaded. Can someone help? Any ideas appreciated. Thanks --~--~-~--~~--

Re: capture form input even after ValueError exists

2008-10-01 Thread Donn
On Wednesday, 01 October 2008 08:59:00 Merrick wrote: > Also how do I access the form submission if not through > cleaned_data.get? I have found this works, but I can't say in what cases: name = form.data['fullname'] \d --~--~-~--~~~---~--~~ You received this mes

Re: capture form input even after ValueError exists

2008-09-30 Thread Merrick
get('url'). Any ideas how to get the url inputted > > and to clean it inside the ValueError branch of code above > > cleaned_data only gets produced if is_valid is true - so if you want > cleaned_data, do validation on the co

Re: capture form input even after ValueError exists

2008-09-30 Thread Kenneth Gonsalves
On Wednesday 01 October 2008 01:35:55 am Merrick wrote: > All is not lost if a user enters an invalid code I still want to do > something with just the url, but I cannot get > form.cleaned_data.get('url'). Any ideas how to get the url inputted > and to clean it inside th

capture form input even after ValueError exists

2008-09-30 Thread Merrick
My ModelForm has two input fields url and code, and I raise a ValidationError if the code contains anything other than letters, numbers and dashes. My logic looks something like this: if form.is_valid(): ... return render_to_response('new.html', {'code': new.code}) i

Re: ValueError at /pages/

2008-09-01 Thread Leaf
Well, as it turns out, my URLConf looked something like: urlpatterns = patterns('devsite.djpages.views', (r'(?P\w+)/$', 'display_page', 'dj_pages_display'), (r'$', 'display_page', 'dj_pages_default'), ) The default value for the second one was processed by putting "pagename=GET_DEFAULT_F

Re: ValueError at /pages/

2008-09-01 Thread Malcolm Tredinnick
On Mon, 2008-09-01 at 10:39 -0700, Leaf wrote: > All the info is at http://dpaste.com/75250/. I really have no idea > what this error is trying to tell me. Can anyone explain what it might > be? It's an internal Python error that is raised when you try to update a dictionary with bad data. What

ValueError at /pages/

2008-09-01 Thread Leaf
All the info is at http://dpaste.com/75250/. I really have no idea what this error is trying to tell me. Can anyone explain what it might be? Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: syncdb problem: ValueError: list.remove(x): x not in list

2008-01-01 Thread SmileyChris
On Jan 2, 2:06 pm, crybaby <[EMAIL PROTECTED]> wrote: > I have commented out this from settings.py, > #'django.contrib.contenttypes', > > and syncdb and fixtures are working. > > I am running python 2.4.3 on Fedora 6 and django svn revision # 6980. > > What impact commenting out contenttypes wou

Re: syncdb problem: ValueError: list.remove(x): x not in list

2008-01-01 Thread crybaby
I have commented out this from settings.py, #'django.contrib.contenttypes', and syncdb and fixtures are working. I am running python 2.4.3 on Fedora 6 and django svn revision # 6980. What impact commenting out contenttypes would have on django project? --~--~-~--~~~---

syncdb problem: ValueError: list.remove(x): x not in list

2007-12-18 Thread crybaby
;/usr/lib/python2.4/site-packages/django/dispatch/ dispatcher.py", line 358, in send sender=sender, File "/usr/lib/python2.4/site-packages/django/dispatch/ robustapply.py", line 47, in robustApply return receiver(*arguments, **named) File "/usr/lib/python2.4/site-packages/

Re: ValueError: Empty module name

2007-02-17 Thread cory
ng a very strange error in my latest Django project. It > > repeatedly sends back a ValueError saying 'Empty module name', but in > > the debug output all of the settings from the settings files are > > displayed correctly and the settings file that's listed is

Re: ValueError: Empty module name

2007-02-16 Thread Malcolm Tredinnick
On Fri, 2007-02-16 at 12:27 -0800, cory wrote: > Hello all, > > I keep getting a very strange error in my latest Django project. It > repeatedly sends back a ValueError saying 'Empty module name', but in > the debug output all of the settings from the settings files are

ValueError: Empty module name

2007-02-16 Thread cory
Hello all, I keep getting a very strange error in my latest Django project. It repeatedly sends back a ValueError saying 'Empty module name', but in the debug output all of the settings from the settings files are displayed correctly and the settings file that's listed is the co

<    1   2   3   >