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
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
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
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
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
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
>>
>>> 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
> 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
;
> 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
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
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
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
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
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
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',
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
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
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 =
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:
>>
>>
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
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
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
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
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
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"
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
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
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
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.
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
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
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
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
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
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
>
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
>>
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
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
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
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
>
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
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
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,
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
> >
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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.
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
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
67 matches
Mail list logo