Re: I was facing Type Error

2022-11-03 Thread Mario Shaya
atas in database in list format. >> >> Now i was facing this type error >> >> [image: Screenshot (22).png][image: Screenshot (21).png] >> >> -- >> > You received this message because you are subscribed to the Google Groups >> "Django users&q

Re: class based view Type error

2021-12-07 Thread Bazil M H
Have you changed the urls.py file accordingly? On Thursday, 18 November 2021 at 09:02:55 UTC+5:30 Trippy Samurai wrote: > Hello, > I have my function based writted like this > > > @login_required > def accept_tickets_view(request,pk): > ticket = get_object_or_404(Ticket,id=pk) > if

Re: type error

2020-08-18 Thread 'Amitesh Sahay' via Django users
Hi,  I have developed a django website for my company. Its schoolnskill.com. For now its not much to look at. But due to other work I am not able to add enhancements to it.  1) I need to add payment gateway(Paytm and Paypal)2) Create one more model and then create respective forms.py and

Re: type error

2020-08-18 Thread Liu Zheng
hi, What’s the type and value of that variable “value”? It would be helpful to print out value and type(value) right in front of this line where error occurs. Best Zheng On Tue, 18 Aug 2020 at 9:21 PM, Rostislav Kornatsky < info.send.o...@gmail.com> wrote: > Hi, my name is Rostislav and I'm

Re: type error

2020-08-18 Thread Rostislav Kornatsky
Hi, my name is Rostislav and I'm learning Django too, We could collaborate and learn it together:) пт, 14 авг. 2020 г. в 21:50, Peter Kirieny : > hello, can somebody help with this please > > match = datetime_re.match(value) > TypeError: expected string or bytes-like object > > I've made

type error

2020-08-14 Thread Peter Kirieny
hello, can somebody help with this please match = datetime_re.match(value) TypeError: expected string or bytes-like object I've made migrations but now i can't migrate, it brings the above error instead -- You received this message because you are subscribed to the Google Groups "Django

Re: TYPE ERROR at /login/: ; Help me Resolve

2020-05-23 Thread Madhav Nandan
>> >>> I was making an eCommerce web application using Django 2.X. >>> >>> I'm getting TYPE ERROR at /login/: >>> here screenshots are attached, help me resolve issues: >>> >>> I did make all the required changes, however, I don't find h

Re: TYPE ERROR at /login/: ; Help me Resolve

2020-05-23 Thread Anubhav Madhav
> Remove the parenthesis, print(request.user.is_autheticated) > > Le samedi 23 mai 2020 07:06:08 UTC, Madhav Nandan a écrit : >> >> Hello all, >> >> I was making an eCommerce web application using Django 2.X. >> >> I'm getting TYPE ERROR at /login/: &g

Re: TYPE ERROR at /login/: ; Help me Resolve

2020-05-23 Thread Ousseynou Diop
; > I'm getting TYPE ERROR at /login/: > here screenshots are attached, help me resolve issues: > > I did make all the required changes, however, I don't find how to get rid > of this. > > for all docs, please follow this link: > > https://drive.google.com

Re: TYPE ERROR at /login/: ; Help me Resolve

2020-05-23 Thread Kasper Laudrup
Hi Madhav, On 23/05/2020 09.03, Madhav Nandan wrote: Hello all, I was making an eCommerce web application using Django 2.X. I'm getting TYPE ERROR at /login/: here screenshots are attached, help me resolve issues: I did make all the required changes, however, I don't find how to get rid

Re: TYPE ERROR at /login/: ; Help me Resolve

2020-05-23 Thread LGBS fine soul coders
Py manage. py makemigrations On May 23, 2020 10:04, "Madhav Nandan" wrote: > Hello all, > > I was making an eCommerce web application using Django 2.X. > > I'm getting TYPE ERROR at /login/: > here screenshots are attached, help me resolve issues: > > I

Django Type Error with POST method

2020-05-01 Thread Mayank Tripathi
Hi All, I am working on small hands-on project.. and having an issue when calling the POST method with form.py Below is the code. Here i have two models.. one is Category and another is SubCategory. For SubCategory i have created form "SubCategoryFormv2" in forms.py... where i am checking if

Re: type error issue

2017-06-19 Thread jon stan
That was it. thanks Andreas. -- 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: type error issue

2017-06-12 Thread Andréas Kühne
In your urls.py file you have to add the variable you want to add to the URL You currently have : url(r'^region', views.region, name='region'), But it should be: url(r'^region/(?P[\w-]+)/$', views.region, name='region'), Otherwise the url doesn't know where to get the cnty variable from

type error issue

2017-06-12 Thread jon stan
So i keep getting this error every time i try to pass a variable in http. in my template i have a link that contains the variable of a county in a state: *template.html* {{ cnty }} when you click the link i guess it goes to the urls file: *urls.py* url(r'^region',

Re: I have error like Type Error save() takes at least 2 arguments (1 given) in Django project.

2015-08-31 Thread Florian Schweikert
On 31/08/15 12:10, Remaze Vs wrote: > def save(self,request,*args,**kwargs): You defined save to take a second positional argument, so it's no wonder it crashes if you call .save() If you need the request in the save method you have to pass it, otherwise remove the request parameter. See docs

Re: I have error like Type Error save() takes at least 2 arguments (1 given) in Django project.

2015-08-31 Thread Markus Holtermann
On Mon, Aug 31, 2015 at 03:10:09AM -0700, Remaze Vs wrote: view.py file class DealsForm(ModelForm): class Meta: model = Product fields = ['title','description','category','price','sale_price','slug','active','update_defaults','user'] exclude = ('user',) model.py

I have error like Type Error save() takes at least 2 arguments (1 given) in Django project.

2015-08-31 Thread Remaze Vs
view.py file class DealsForm(ModelForm): class Meta: model = Product fields = ['title','description','category','price','sale_price','slug','active','update_defaults','user'] exclude = ('user',) model.py file class Product(models.Model): title =

Re: Pip type error.

2014-10-30 Thread sasidhar puranam
Thank you ..it helped ! On Saturday, 21 June 2014 12:19:09 UTC+5:30, Timmy Blumberg wrote: > > This is a much needed solution to a problem that has been plaguing my > development cycle for weeks. Many "thankyous", stranger. > > On Thursday, March 27, 2014 7:06:00 AM UTC-7, Dylan F. wrote: >> >>

Re: Pip type error.

2014-06-21 Thread Timmy Blumberg
This is a much needed solution to a problem that has been plaguing my development cycle for weeks. Many "thankyous", stranger. On Thursday, March 27, 2014 7:06:00 AM UTC-7, Dylan F. wrote: > > Thanks Brian! The out-file command with ascii encoding specified fixed > this for me. > > On

Re: Pip type error.

2014-03-27 Thread Dylan F.
Thanks Brian! The out-file command with ascii encoding specified fixed this for me. On Wednesday, September 26, 2012 1:55:31 AM UTC-4, Brian Peiris wrote: > > Thanks John, that was useful. > This happens because powershell outputs UTF-16 by default. Another way to > fix it is by using the

Re: Pip type error.

2013-07-10 Thread Mark Liu
Googled this problem and came here. I was also using powershell but everything worked after I converted the requirments file to utf-8 On Wednesday, May 1, 2013 8:43:13 AM UTC-4, il...@app-loader.com wrote: > > Brilliant ! > I was using powershell. > When I switched back to good old cmd.exe pip

Re: Pip type error.

2013-05-01 Thread ilan
Brilliant ! I was using powershell. When I switched back to good old cmd.exe pip freeze worked fine On Saturday, July 21, 2012 9:00:50 AM UTC+3, Jauharul Fuady wrote: > > > > On Sunday, 11 March 2012 15:17:59 UTC+7, John W. wrote: >> >> I know it's weird to reply to myself, but just in case that

Re: Pip type error.

2012-09-26 Thread Brian Peiris
Thanks John, that was useful. This happens because powershell outputs UTF-16 by default. Another way to fix it is by using the out-file command with an ascii encoding specified: pip freeze | out-file -enc ascii requirements.txt On Sunday, March 11, 2012 4:17:59 AM UTC-4, John W. wrote: > > I

Re: Pip type error.

2012-07-21 Thread Jauharul Fuady
On Sunday, 11 March 2012 15:17:59 UTC+7, John W. wrote: > > I know it's weird to reply to myself, but just in case that somebody has > the same problem. > > It seems that the problem it is in the requirements.txt, i created it > using powershell and "pip.exe freeze > requirements.txt"

Re: Pip type error.

2012-03-11 Thread John W.
I know it's weird to reply to myself, but just in case that somebody has the same problem. It seems that the problem it is in the requirements.txt, i created it using powershell and "pip.exe freeze > requirements.txt" command, which creates a file with a name that has nullbytes in it. I was

Re: on latest svn am getting a type error TypeError: argument 1 must be str, not unicode

2010-02-02 Thread Kenneth Gonsalves
On Wednesday 03 Feb 2010 1:02:34 pm Russell Keith-Magee wrote: > On Wed, Feb 3, 2010 at 2:41 PM, Kenneth Gonsalves wrote: > > On Wednesday 03 Feb 2010 11:44:36 am Russell Keith-Magee wrote: > >> Ok - seriously - if you want help debugging this, you need to get your > >> story

Re: on latest svn am getting a type error TypeError: argument 1 must be str, not unicode

2010-02-02 Thread Russell Keith-Magee
On Wed, Feb 3, 2010 at 2:41 PM, Kenneth Gonsalves wrote: > On Wednesday 03 Feb 2010 11:44:36 am Russell Keith-Magee wrote: >> Ok - seriously - if you want help debugging this, you need to get your >> story straight. > > please believe me - I *am* trying. Ok, lets try to be

Re: on latest svn am getting a type error TypeError: argument 1 must be str, not unicode

2010-02-02 Thread Kenneth Gonsalves
On Wednesday 03 Feb 2010 11:44:36 am Russell Keith-Magee wrote: > Ok - seriously - if you want help debugging this, you need to get your > story straight. > please believe me - I *am* trying. Ok, lets try to be straight: 1. site used for testing: http://bitbucket.org/lawgon/csrftest/src/ 2.

Re: on latest svn am getting a type error TypeError: argument 1 must be str, not unicode

2010-02-02 Thread Russell Keith-Magee
On Wed, Feb 3, 2010 at 1:46 PM, Kenneth Gonsalves wrote: > On Wednesday 03 Feb 2010 10:09:44 am Russell Keith-Magee wrote: >> > Exception Type: NameError at / >> > Exception Value: global name 'query' is not defined >> >> This isn't the same problem that you originally

Re: on latest svn am getting a type error TypeError: argument 1 must be str, not unicode

2010-02-02 Thread Kenneth Gonsalves
On Wednesday 03 Feb 2010 10:09:44 am Russell Keith-Magee wrote: > > Exception Type: NameError at / > > Exception Value: global name 'query' is not defined > > This isn't the same problem that you originally reported. This > particular problem was logged as #12732, and fixed in [12359]. this

Re: on latest svn am getting a type error TypeError: argument 1 must be str, not unicode

2010-02-02 Thread Russell Keith-Magee
On Wed, Feb 3, 2010 at 12:03 PM, Kenneth Gonsalves wrote: > On Tuesday 02 Feb 2010 5:10:27 pm Russell Keith-Magee wrote: >> >> traceback is this: >> > >> > I went back to 12300 - same problem, but 12200 is ok. >> >> Kenneth - we need two things: >> >>  * A specific revision

Re: on latest svn am getting a type error TypeError: argument 1 must be str, not unicode

2010-02-02 Thread Kenneth Gonsalves
On Wednesday 03 Feb 2010 9:33:34 am Kenneth Gonsalves wrote: > > * The input that is causing things to break. "Sporadic error" and a > > stack trace doesn't really help us identify a problem. The problem > > isn't sporadic for the case that is causing it to fail. We just don't > > know what that

Re: on latest svn am getting a type error TypeError: argument 1 must be str, not unicode

2010-02-02 Thread Kenneth Gonsalves
On Tuesday 02 Feb 2010 5:10:27 pm Russell Keith-Magee wrote: > >> traceback is this: > > > > I went back to 12300 - same problem, but 12200 is ok. > > Kenneth - we need two things: > > * A specific revision that breaks things. You only need to do 8 > checks to find a specific revision between

Re: on latest svn am getting a type error TypeError: argument 1 must be str, not unicode

2010-02-02 Thread Kenneth Gonsalves
On Tuesday 02 Feb 2010 5:10:27 pm Russell Keith-Magee wrote: > > I went back to 12300 - same problem, but 12200 is ok. > > Kenneth - we need two things: > > * A specific revision that breaks things. You only need to do 8 > checks to find a specific revision between 12300 and 12200 if you do a >

Re: on latest svn am getting a type error TypeError: argument 1 must be str, not unicode

2010-02-02 Thread Russell Keith-Magee
On Tue, Feb 2, 2010 at 7:29 PM, Kenneth Gonsalves wrote: > On Tuesday 02 Feb 2010 4:04:15 pm Kenneth Gonsalves wrote: >> on upgrading to the latest svn I am getting a sporadic error like this: >> TypeError: argument 1 must be str, not unicode. On runserver, the full >>

Re: on latest svn am getting a type error TypeError: argument 1 must be str, not unicode

2010-02-02 Thread Kenneth Gonsalves
On Tuesday 02 Feb 2010 4:04:15 pm Kenneth Gonsalves wrote: > on upgrading to the latest svn I am getting a sporadic error like this: > TypeError: argument 1 must be str, not unicode. On runserver, the full > traceback is this: > I went back to 12300 - same problem, but 12200 is ok. -- regards

on latest svn am getting a type error TypeError: argument 1 must be str, not unicode

2010-02-02 Thread Kenneth Gonsalves
hi, on upgrading to the latest svn I am getting a sporadic error like this: TypeError: argument 1 must be str, not unicode. On runserver, the full traceback is this: Traceback (most recent call last): File

Re: Type Error str is not callable in base.py

2009-06-08 Thread grElement
Thanks Karen - I think I will start doing that from now on. Thanks everyone else - For now I'm just rolling back a bit before I started getting the error and go from there. It seems that my project scope has changed a bit midstream anyway so I guess this really isn't the end of the world. If I

Re: Type Error str is not callable in base.py

2009-06-07 Thread Karen Tracey
On Sun, Jun 7, 2009 at 5:42 PM, grElement wrote: > > Alex > > Sorry I wasn't more clear, but I wasn't suggesting that the fact I'm > getting the error is a bug, but it seems as though this error message > results in an uncaught error and that is something they are working on >

Re: Type Error str is not callable in base.py

2009-06-07 Thread grElement
Alex Sorry I wasn't more clear, but I wasn't suggesting that the fact I'm getting the error is a bug, but it seems as though this error message results in an uncaught error and that is something they are working on already - see this http://code.djangoproject.com/ticket/6442 Here is the entire

Re: Type Error str is not callable in base.py

2009-06-07 Thread grElement
Paul Actually this is what I already have in all my model definitions - as suggested in some of the documentation and it's been working so far on several different projects. def __unicode__(self): return u'%s' % (self.title) Please also note that no changes were made to

Re: Type Error str is not callable in base.py

2009-06-07 Thread pkenjora
Hi, I just got this error a few days back. It was resulting from a OnetoOne model referencing 'user' in one of the admin display_fields. I thought user would resolve to the __unicode__ value of the user model, for some reason (django bug?) it does not. THE FIX This is more like a patch,

Re: Type Error str is not callable in base.py

2009-06-07 Thread Alex Gaynor
On Sun, Jun 7, 2009 at 5:53 AM, Daniel Roseman < roseman.dan...@googlemail.com> wrote: > > On Jun 7, 9:33 am, grElement wrote: > > Yeah, I couldn't figure it out either since the error message is not > > so helpful and it seems that this is actually a django bug that they > >

Re: Type Error str is not callable in base.py

2009-06-07 Thread Daniel Roseman
On Jun 7, 9:33 am, grElement wrote: > Yeah, I couldn't figure it out either since the error message is not > so helpful and it seems that this is actually a django bug that they > are currently working on, but according to the documentation of the > error reporting bug it

Re: Type Error str is not callable in base.py

2009-06-07 Thread grElement
Yeah, I couldn't figure it out either since the error message is not so helpful and it seems that this is actually a django bug that they are currently working on, but according to the documentation of the error reporting bug it should be coming from my view file. Weird thing is I've used this

Re: Type Error str is not callable in base.py

2009-06-06 Thread Alex Gaynor
On Sat, Jun 6, 2009 at 11:05 PM, grElement wrote: > > I found the tickets regarding this error on the bug reports and > noticed that it comes up when there is something wrong with your view, > but I can't seem to find anything off. Here is my view.py in that app. > Weird thing

Type Error str is not callable in base.py

2009-06-06 Thread grElement
I found the tickets regarding this error on the bug reports and noticed that it comes up when there is something wrong with your view, but I can't seem to find anything off. Here is my view.py in that app. Weird thing is I'm just copying this over from another project and it was working fine

type error in form after upgrade from beta to stable

2008-09-04 Thread Genis Pujol Hamelink
Hello, After upgrading from Django version 1.0-beta_1-SVN-unknown to the Django 1.0 stable, I am getting this error: Exception Type: TypeError Exception Value: 'NoneType' object is not callable Exception Location: /usr/lib/python2.5/site-packages/django/forms/models.py in __init__, line 197

Re: raising HttpResponseBadRequest throws Exception Type error?

2008-07-06 Thread Rob Hudson
On Jul 5, 7:33 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Having an exception > for every possible response code is really overkill here, since it means > you'll be raising status-code-related exceptions instead of more > semantic ones. Ah, makes sense. > > * Shouldn't Django be

Re: raising HttpResponseBadRequest throws Exception Type error?

2008-07-05 Thread Malcolm Tredinnick
On Sat, 2008-07-05 at 18:58 -0700, Rob Hudson wrote: [...] > * Shouldn't all HTTP error code raising function similarly? Shouldn't > I be able to raise a 400 error the same as a 404? Not really. Django has a 404 exception as a quick bail out for when something is missing and it and

raising HttpResponseBadRequest throws Exception Type error?

2008-07-05 Thread Rob Hudson
s: 1) raise Http404("Error message here.") 2) raise Http404, "Error message here." I tried both for my `HttpResponseBadRequest` and still got a type error. Following the logic that this is just a subclasses HttpResponse I changed it to a return: return HttpResponseBadRequest

Re: Type error: Cannot resolve keyword 'name' into field

2008-07-05 Thread roj
the following link might be helpful http://django.freelancernepal.com/topics/errors/ Cheers! On Jul 4, 11:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm having troubles with an admin portion. I am brand new at django, > so any help would be greatly appreciated. I am trying to make a

Re: Type error: Cannot resolve keyword 'name' into field

2008-07-04 Thread Karen Tracey
On Fri, Jul 4, 2008 at 6:02 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm having troubles with an admin portion. I am brand new at django, > so any help would be greatly appreciated. I am trying to make a class > of family members. > > This works correctly when I use the admin to add

Type error: Cannot resolve keyword 'name' into field

2008-07-04 Thread [EMAIL PROTECTED]
I'm having troubles with an admin portion. I am brand new at django, so any help would be greatly appreciated. I am trying to make a class of family members. This works correctly when I use the admin to add new names to it. But when I try to change an element I get this error: TypeError at

Re: just starting out with django along with the tutorial - getting a type error

2007-12-11 Thread l5x
Thank you Malcolm, you are very helpful today :) --~--~-~--~~~---~--~~ 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 this

Re: just starting out with django along with the tutorial - getting a type error

2007-12-11 Thread l5x
Oops, Malcolm answered first :) --~--~-~--~~~---~--~~ 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 this group, send email to

Re: just starting out with django along with the tutorial - getting a type error

2007-12-11 Thread l5x
I don't know if it could help, but anyway you should: 1) add the following line at the beggining of models.py # -*- coding: utf8 -*- 2) change the order of stuff in models, at first fields: CharField etc, then classes (Admin, Meta) and methods at the end (__unicode__ etc). 3) add after

Re: just starting out with django along with the tutorial - getting a type error

2007-12-11 Thread Malcolm Tredinnick
On Tue, 2007-12-11 at 04:21 -0800, [EMAIL PROTECTED] wrote: [...] > Exception Type: TypeError at /admin/trak/ticket/add/ > Exception Value: coercing to Unicode: need string or buffer, int found That error usually means you're trying to return something that isn't a string from a __str__ or

just starting out with django along with the tutorial - getting a type error

2007-12-11 Thread [EMAIL PROTECTED]
Hi All, I'm just starting out with django. I want to get familiar with it to do some inhouse development for myself. I'm following along the tutorial, but using my own data and examples - i'm trying to create a very simple request-ticket system. I have got up to the admin interface part of the

Re: Unicode Type Error when adding M2M field

2007-09-05 Thread wolfds
wolfds schrieb: > Your class Alert should have defined a method __unicode__() to return > a Unicode represantation. If so, you can use > > def __unicode__(self): > return smart_unicode(self.advert) > > in the class Rank_alert. sorry for typos - again: Your class Advert should have defined

Re: Unicode Type Error when adding M2M field

2007-09-05 Thread wolfds
Your class Alert should have defined a method __unicode__() to return a Unicode represantation. If so, you can use def __unicode__(self): return smart_unicode(self.advert) in the class Rank_alert. --~--~-~--~~~---~--~~ You received this message because you

Unicode Type Error when adding M2M field

2007-09-05 Thread Merric Mercer
I have the following model:- class Rank_Advert(models.Model):     advert = models.ForeignKey(Advert)     brand = models.ForeignKey(Brand,verbose_name="brand_owner")     rank= models.IntegerField(default=1,blank=True)     def __unicode__(self):     return self.advert     class Admin:  

Re: extending user model, but keep getting type error for user.id

2007-01-12 Thread hotani
One more thing: If I do what it says, and send it the user in the form of a class, it will continue, but after running "newprofile.save()", nothing is written to the db table. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

extending user model, but keep getting type error for user.id

2007-01-12 Thread hotani
I'm using the 'one to one' method of creating a user profile which extends django's built-in user model. This is a workaround suggested by James Bennett on his b-list blog, and I think several other people are using this or something similar. My problem is that I have a database I am importing.

Re: Type Error __str__returned non-string(type long) - while using Admin

2006-10-19 Thread MerMer
I've managed to sort it... I had inadvertantly set one of the classes to def __str__(self): return self.id which obviously caused the conflict. Apologies for wasting anybody's time. MerMer --~--~-~--~~~---~--~~ You received this message because you

Type Error __str__returned non-string(type long) - while using Admin

2006-10-19 Thread MerMer
All of a sudden I am getting the following errors (see below), when I try and select "Promotions" from the admin area. I've no idea what this means or how to fix it... can anybody provide any suggestions? It's turning into a bad day for me and Django. As a newbie to Django and Python and and