Re: SessionStore attribute error

2022-09-21 Thread Basheer Olamilekan Balogun
I think this best way is to check which kind of id your are store, because the primary id by default is integer which is going to be added automatically, so in your code i can see that you specify company_id upon creation new company which i do not think you have such field in your JobDetail

Re: SessionStore attribute error

2022-09-20 Thread shiva singh
hello Dear Kasper Laudrup I am beginner sorry for this but my problem is not solve yet that's why I have sent my code for better solution of error I am not familiar about this file witch you are send me On Tuesday, September 20, 2022 at 12:22:12 PM UTC+5:30 Kasper Laudrup wrote: > On

Re: SessionStore attribute error

2022-09-20 Thread 'Kasper Laudrup' via Django users
On 20/09/2022 08.21, shiva singh wrote: hello everyone please help how can solve this problem? I suggest you ignore all the replies you've already gotten and then post the exact same question a third time. Kind regards, Kasper Laudrup -- You received this message because you are

SessionStore attribute error

2022-09-20 Thread shiva singh
hello everyone please help how can solve this problem? this is session code:- if user.password==password and user.role=="Company": com=Company.objects.get(user_id=user) request.session['id']=user.id request.session['role']=user.role

Re: session id attribute error

2022-09-19 Thread Mohammad Ehsan Ansari
Hi SessionStore is a model class? if yes you can use pk instant of id On Monday, 19 September 2022 at 22:48:02 UTC+5:30 aashishk...@gmail.com wrote: > Do this > > request.session.get(‘id’) > > On Mon, 19 Sep 2022 at 1:30 PM, shiva singh wrote: > >> hello everyone please help me how can solve

Re: session id attribute error

2022-09-19 Thread Aashish Kumar
Do this request.session.get(‘id’) On Mon, 19 Sep 2022 at 1:30 PM, shiva singh wrote: > hello everyone please help me how can solve this problem:-[image: > image.jpeg] > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

Re: session id attribute error

2022-09-19 Thread Muhammad Juwaini Abdul Rahman
That was user, so probably you need request.user.id, not session. On Mon, 19 Sept 2022 at 16:00, shiva singh wrote: > hello everyone please help me how can solve this problem:-[image: > image.jpeg] > > -- > You received this message because you are subscribed to the Google Groups > "Django

session id attribute error

2022-09-19 Thread shiva singh
hello everyone please help me how can solve this problem:-[image: image.jpeg] -- 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

Re: Attribute error

2021-05-18 Thread Peter Kirieny
tanks for this, it was helpfull On Thu, 13 May 2021 at 15:31, Ryan Nowakowski wrote: > It's likely that your instance of OrderItem has a product field that's > null. > > On May 12, 2021 3:50:42 AM CDT, Peter Kirieny > wrote: > >can somebody help with this please, am building an ecommerce web

Re: Attribute error

2021-05-13 Thread Ryan Nowakowski
It's likely that your instance of OrderItem has a product field that's null. On May 12, 2021 3:50:42 AM CDT, Peter Kirieny wrote: >can somebody help with this please, am building an ecommerce web and >when i >want to view my cart i get this error >AttributeError: 'NoneType' object has no

Attribute error

2021-05-12 Thread Peter Kirieny
can somebody help with this please, am building an ecommerce web and when i want to view my cart i get this error AttributeError: 'NoneType' object has no attribute 'price' here is my models.py class OrderItem(models.Model): product = models.ForeignKey(Product, on_delete=models.SET_NULL,

Re: Attribute Error

2020-02-17 Thread maninder singh Kumar
Have you tried putting a print statement in views.py RegisterStudent to get to an output in the server. Perhaps the problem is in the template and the get isn't even coming to the view Sent from my iPad > On 17-Feb-2020, at 6:30 PM, Adam Mičuda wrote: > > Hi, > you have to return instance of

Re: Attribute Error

2020-02-17 Thread Ayser shuhaib
Pleas provide the code for clickjacking.py On Mon, 17 Feb 2020 at 14:50, Ernest Thuku wrote: > Hello guys please help on the error. I have been stuck for days now. > I am Ernest from Kenya. > please look into these files below > > -- > You received this message because you are subscribed to the

Re: Attribute Error

2020-02-17 Thread Adam Mičuda
Hi, you have to return instance of `django.http.HttpResponse` class from you view `RegisterStudent` instead of string: *line 98* and *line 99*. see https://docs.djangoproject.com/en/3.0/ref/request-response/#django.http.HttpResponse Regards. Adam po 17. 2. 2020 v 13:49 odesílatel Ernest Thuku

Attribute Error 'NoneType' object has no attribute '_prefetch_related_lookups'

2019-07-11 Thread Warwick Lewarne
Hi all, I keep getting the above error and I am not sure what I need to do to correct it. An example will assist. my model: class Product_Group(models.Model): customer_id = models.ForeignKey(Customer, on_delete=models.CASCADE) prod_group = models.CharField(max_length=30, unique = True,

Attribute Error: 'None Type' object has no attribute 'split'

2018-12-17 Thread Richard Balwane
Using reverse to shortcut URLs, addressing compatibilities of sorts although am running the following; dj-database-url==0.5.0 Django==2.1.4 django-crispy-forms==1.7.2 gunicorn==19.9.0 mysqlclient==1.3.14 Pillow==5.3.0 psycopg2==2.7.6.1 pytz==2018.7 My problem is that now my "detail" isn't

Re: attribute error

2018-08-28 Thread Andréas Kühne
am getting attribute error past from 2 > days i got stuck in this error only i have attached the file also plz do > help me to resolve this error > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

attribute error

2018-08-28 Thread Imran Sharief
hi every one i am new to django am getting attribute error past from 2 days i got stuck in this error only i have attached the file also plz do help me to resolve this error -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: Attribute error

2018-05-30 Thread 岳贝
The date = models.DataTimeField() should be date = models.DateTimeFild() ? https://docs.djangoproject.com/en/2.0/ref/models/fields/#datetimefield Caleb Bryson 于2018年5月31日周四 上午9:45写道: > I am getting a attribute error when i try to run my server. does anyone > know what i can change in thi

Re: Attribute error

2018-05-30 Thread Spence Patrick
5/2018 11:45 AM, Caleb Bryson wrote: >> > I am getting a attribute error when i try to run my server. does >> > anyone know what i can change in this code to fix that? >> >> Try indenting the __str__ method so it is within the scope of the Post >> class >&

Re: Attribute error

2018-05-30 Thread Caleb Bryson
I think it was because i did not use camel casing so CharField instead of Charfield. I will continue the tutorial and see if that works On Wednesday, May 30, 2018 at 10:04:04 PM UTC-4, Mike Dewhirst wrote: > > On 31/05/2018 11:45 AM, Caleb Bryson wrote: > > I am getting a attribut

Re: Attribute error

2018-05-30 Thread Caleb Bryson
it is still saying "AttributeError: model 'django.db.models' has no attribute 'Charfeild' On Wednesday, May 30, 2018 at 10:04:04 PM UTC-4, Mike Dewhirst wrote: > > On 31/05/2018 11:45 AM, Caleb Bryson wrote: > > I am getting a attribute error when i try to run my server. does

Re: Attribute error

2018-05-30 Thread Mike Dewhirst
On 31/05/2018 11:45 AM, Caleb Bryson wrote: I am getting a attribute error when i try to run my server. does anyone know what i can change in this code to fix that? Try indenting the __str__ method so it is within the scope of the Post class from django.db import models class Post

Attribute error

2018-05-30 Thread Caleb Bryson
I am getting a attribute error when i try to run my server. does anyone know what i can change in this code to fix that? from django.db import models class Post(models.Model) : title = models.Charfield(max_length=140) body = models.Textfield() date = models.DataTimeField() def __str__(self

Re: Attribute error at /admin/ by Django

2018-04-06 Thread Melvyn Sopacua
On vrijdag 6 april 2018 09:05:20 CEST Hamroz Jumaev wrote: > http://dpaste.com/2GDFCG8 No middleware. -- Melvyn Sopacua -- 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

Attribute error at /admin/ by Django

2018-04-06 Thread Hamroz Jumaev
http://dpaste.com/2GDFCG8 -- 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: Attribute error, with a very basic banking app

2016-08-26 Thread Neil Hunt
Thanks for that Michal, I see what you mean. I've bookmarked it. Thanks to everyone for all the detailed replies it really helps make sense of CBV :) On Fri, Aug 26, 2016 at 3:48 PM, Michal Petrucha < michal.petru...@konk.org> wrote: > On Fri, Aug 26, 2016 at 10:29:16AM -0400, Andromeda

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Sergiy Khohlov
>>>>>>> The specific message with the AttributeError is helpful here: >>>>>>>> `AttributeError: 'module' object has no attribute 'DepositView'` >>>>>>>> >>>>>>>> The line above it is ` File >>>>>&

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Neil Hunt
;>>>> >>>>>>> The line above it is ` File >>>>>>> "/home/soupdragon/DJapps/banking/mybank/banking/urls.py", >>>>>>> line 8, in >>>>>>> url(r'^deposit/$', views.DepositView.as_view(), name='deposit'),` &g

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Michal Petrucha
On Fri, Aug 26, 2016 at 10:29:16AM -0400, Andromeda Yelton wrote: > In my experience, CBVs are useful when the view you want to write is > basically a create, read, update, or delete operation on a single database > item, or a bunch of instances of the same model (...and it turns out a lot > of

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Andromeda Yelton
w...and it does not. That's why the AttributeError is showing >>>>>> up. >>>>>> >>>>>> The `DepositView.as_view()` syntax is suitable for class-based views, >>>>>> which means I expect to see something in your views.py to the e

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Neil Hunt
your views.py to the effect of: >>>>> >>>>> class DepositView(View): >>>>> def post(self, request, *args, **kwargs): >>>>> // the logic in your deposit() function actually belongs here >>>>> >>>>> Have a look

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Sergiy Khohlov
;>> >>>> class DepositView(View): >>>> def post(self, request, *args, **kwargs): >>>> // the logic in your deposit() function actually belongs here >>>> >>>> Have a look at the class-based views documentation to see what

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Neil Hunt
t the >>> different classes are, and what options they provide you. >>> >>> Alternately, your urls.py could reference views.deposit (which does >>> exist) instead of views.DepositView (which does not). >>> >>> Hope this helps! >>> &

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Sergiy Khohlov
at 11:14 AM, Neil Hunt <hunt.n...@gmail.com> wrote: >> >>> Thanks for your speedy reply, I've attached the stack trace >>> >>> On Thursday, August 25, 2016 at 4:00:16 PM UTC+1, ludovic coues wrote: >>>> >>>> Could you share the full stack t

Re: Attribute error, with a very basic banking app

2016-08-25 Thread Neil Hunt
m> wrote: > >> Thanks for your speedy reply, I've attached the stack trace >> >> On Thursday, August 25, 2016 at 4:00:16 PM UTC+1, ludovic coues wrote: >>> >>> Could you share the full stack trace you get when trying to run the >>> server ? >&g

Re: Attribute error, with a very basic banking app

2016-08-25 Thread Andromeda Yelton
ugust 25, 2016 at 4:00:16 PM UTC+1, ludovic coues wrote: >> >> Could you share the full stack trace you get when trying to run the >> server ? >> The attribute error should come with a ton of information like the >> file and the line where the error occur. >&g

Re: Attribute error, with a very basic banking app

2016-08-25 Thread Neil Hunt
Thanks for your speedy reply, I've attached the stack trace On Thursday, August 25, 2016 at 4:00:16 PM UTC+1, ludovic coues wrote: > > Could you share the full stack trace you get when trying to run the server > ? > The attribute error should come with a ton of information like

Re: Attribute error, with a very basic banking app

2016-08-25 Thread ludovic coues
Could you share the full stack trace you get when trying to run the server ? The attribute error should come with a ton of information like the file and the line where the error occur. 2016-08-25 16:57 GMT+02:00 Neil Hunt <hunt.n...@gmail.com>: > I've beem working on a simple banking

Attribute error, with a very basic banking app

2016-08-25 Thread Neil Hunt
doesn't run. It says there's an attribute error. I've temporarily left the user name and password in at the moment. I had a look at their tutorial how to do a use the Django authentication system (thanks for telling me about that) and I'm going to change that after I understand what's going

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Brent
Hmm...I see. How do you choose what variables are available to which view? It seems like anything I put in context_processors is available anywhere, and I'm not sure I want that. I think I am getting closer, but I am now getting a SiteProfileNotAvailable error. Here is my stack trace:

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Andre Terra
You could use a context processor, which is basically a function that adds variables to *every* template that gets called from a properly setup view. I assume the view you are using does apply context processors, and defining one is as easy as:

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Brent
Sorry, I meant I was hoping to avoid diving into defining my own views until later. On Jul 11, 1:08 pm, Brent wrote: > So I need to create a custom view? (I can't use an existing view)? I > was hoping to avoid diving into templates until later, after I've > become a little

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Brent
So I need to create a custom view? (I can't use an existing view)? I was hoping to avoid diving into templates until later, after I've become a little more familiar with the python/html code. On Jul 11, 11:48 am, Andre Terra wrote: > This is done in your view: > >

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Andre Terra
This is done in your view: https://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-context-requestcontext Cheers On Mon, Jul 11, 2011 at 3:12 PM, Brent wrote: > Is this done in urls.py? > > On Jul 11, 10:55 am, Andre Terra wrote: > >

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Brent
Is this done in urls.py? On Jul 11, 10:55 am, Andre Terra wrote: > Pass user.get_profile() as a template variable instead by adding it to the > template context. > > Cheers, > André > > > > > > > > On Mon, Jul 11, 2011 at 2:50 PM, Brent wrote: > >

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Brent
Okay, thanks. This is really helpful. I am having trouble calling get_profile() from within my profile.html template, though. Here is my stack trace: http://dpaste.com/566583/ I tried calling get_profile without the (), which got rid of the error, but no data showed up. On Jul 11, 10:15 am,

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Andre Terra
Pass user.get_profile() as a template variable instead by adding it to the template context. Cheers, André On Mon, Jul 11, 2011 at 2:50 PM, Brent wrote: > Okay, thanks. This is really helpful. > > I am having trouble calling get_profile() from within my profile.html >

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Andre Terra
All you have to do is add the following code to your models.py (or any other module that gets loaded by django, for that matter): # models.py from django.db.models import signals def create_user_profile(sender, instance, created, **kwargs): if created:

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Brent
I am having trouble with this line of the tutorial: "You need to register a handler for the signal django.db.models.signals.post_save on the User model, and, in the handler, if created=True, create the associated user profile." It seems I need to edit the User model. I am confused, though,

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Andre Terra
Wherever you would reference a user instance, reference UserProfile.user instead If you need to find out a profile from request.user, you can use request.user.get_profile() or the longer UserProfile.objects.get(user_id= request.user.id) Cheers, André On Mon, Jul 11, 2011 at 1:48 PM, Brent

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Michał Sawicz
Dnia 2011-07-11, pon o godzinie 09:48 -0700, Brent pisze: > How do I use a foreign key, though? In other words, how do I tell my > code to look at UserProfile rather than just user? https://docs.djangoproject.com/en/1.3/topics/auth/#storing-additional-information-about-users -- Michał (Saviq)

Re: Extending User model with Inheritance - Attribute Error

2011-07-11 Thread Brent
Thanks for the responses. How do I use a foreign key, though? In other words, how do I tell my code to look at UserProfile rather than just user? On Jul 10, 5:08 am, Jonas Geiregat wrote: > Op 10-jul-2011, om 12:37 heeft Venkatraman S het volgende geschreven: > > > > > This

Re: Extending User model with Inheritance - Attribute Error

2011-07-10 Thread Jonas Geiregat
Op 10-jul-2011, om 12:37 heeft Venkatraman S het volgende geschreven: > > This is not good design. If you want to store some extra fields for a User - > i would define just another model called ProfileDetails, FK it to User and > use it as such. That's also how I would do it, some example

Re: Extending User model with Inheritance - Attribute Error

2011-07-10 Thread Venkatraman S
On Sun, Jul 10, 2011 at 1:05 PM, Brent wrote: > Hi all, > > I am attempting to follow this tutorial: > > http://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-with-inheritance/ > > But I am receiving this error: > AttributeError at /login/ > 'NoneType'

Extending User model with Inheritance - Attribute Error

2011-07-10 Thread Brent
Hi all, I am attempting to follow this tutorial: http://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-with-inheritance/ But I am receiving this error: AttributeError at /login/ 'NoneType' object has no attribute 'DoesNotExist' Here is my stack trace: http://dpaste.com/565795/

Re: Attribute error

2011-05-01 Thread DJ Ango
Capitalize class names. class Wish(models.Model): the_wish = models.CharField(max_length=100) On Apr 30, 4:26 pm, Pulkit Mehrotra wrote: > changed the name but nothing happened > the django version is 1.3 -- You received this message because you are subscribed

Re: Attribute error

2011-04-30 Thread Pulkit Mehrotra
changed the name but nothing happened the django version is 1.3 -- 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: Attribute error

2011-04-30 Thread Karen Tracey
On Sat, Apr 30, 2011 at 3:45 PM, Pulkit Mehrotra wrote: > 'module' object has no attribute 'CharField' > > What does this error means ??? > > View for this is: > from django.shortcuts import render_to_response > from django.http import HttpResponseRedirect,HttpResponse

Re: Attribute error

2011-04-30 Thread Yongning Liang
class wish(models.Model): wish=models.CharField(max_length=200) what's your django version On Sun, May 1, 2011 at 3:45 AM, Pulkit Mehrotra wrote: > AttributeError at /mysite/wishlist/ > > 'module' object has no attribute 'CharField' > > What does this error

Attribute error

2011-04-30 Thread Pulkit Mehrotra
AttributeError at /mysite/wishlist/ 'module' object has no attribute 'CharField' What does this error means ??? View for this is: from django.shortcuts import render_to_response from django.http import HttpResponseRedirect,HttpResponse from wishlist.models import wish from wishlist.forms

Generic List View raises Attribute Error: "'function' object has no attribute '_clone'

2011-03-29 Thread dpapathanasiou
te is rendered correctly. When, however, the query_term matches, I get this error: Attribute Error: "'function' object has no attribute '_clone' Supposedly, this is because the filtering does not produce a proper QuerySet, which in turn, cannot be cloned by the generic view. If, however, I change

Re: ATTRIBUTE ERROR

2010-11-02 Thread Tom Evans
On Tue, Nov 2, 2010 at 11:08 AM, sami nathan wrote: > If i am doing anything wrong forgive me i am newbe > > > MY error is > Exception Type:         AttributeError > Exception Value: > > 'str' object has no attribute 'resolve' > > Exception Location: >        

ATTRIBUTE ERROR

2010-11-02 Thread sami nathan
If i am doing anything wrong forgive me i am newbe MY error is Exception Type: AttributeError Exception Value: 'str' object has no attribute 'resolve' Exception Location: D:\Python25\lib\site-packages\django\core\urlresolvers.py in resolve, line 25 My url.py look

Re: ATTRIBUTE ERROR

2010-10-28 Thread yu xue
Hi, I feel there are some places which need to modify: 1. urlpatterns should be (r"^wap/di/sub/$", current_datetime), 2. It seems that the view function is endless loop... 2010/10/28 sami nathan > My occured Error is > > Exception Value: > > 'str' object has no

ATTRIBUTE ERROR

2010-10-28 Thread sami nathan
My occured Error is Exception Value: 'str' object has no attribute 'resolve' Exception Location: C:\Python25\Lib\site-packages\django\core\urlresolvers.py in resolve, line 217

Re: Confused by attribute error

2009-03-30 Thread Robocop
Bingo! Looks like i was lazy with my code and threw decorators on ALL the functions, not just my views. There was a lingering decorator on the send_file function that i did not notice. Thanks for pointing out my sloppines;) You saved me a ton of time today, double thanks! On Mar 30, 12:02 pm,

Re: Confused by attribute error

2009-03-30 Thread Karen Tracey
On Mon, Mar 30, 2009 at 2:23 PM, Robocop wrote: > > So the fun continues. I realized that i did not need to use the > login_required decorator on this function since it's just tossed > around in the backend, so i took that out thinking it would prevent > decorators.py

Re: Confused by attribute error

2009-03-30 Thread Robocop
So the fun continues. I realized that i did not need to use the login_required decorator on this function since it's just tossed around in the backend, so i took that out thinking it would prevent decorators.py from being called. When i hit the function above now, it posts the same error with a

Re: Confused by attribute error

2009-03-30 Thread Robocop
Sorry for the delay, i've been sidetracked multiple times in the last few days. The code is post here: http://dpaste.com/21221/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Confused by attribute error

2009-03-27 Thread Robocop
Also i don't comment until i put my code into production (bad habit, yes i know :x), so let me know if you need me to throw in some dirty comments to make it more readable. On Mar 27, 3:21 pm, Robocop wrote: > On Mar 27, 3:05 pm, Briel wrote: > > >

Re: Confused by attribute error

2009-03-27 Thread Robocop
On Mar 27, 3:05 pm, Briel wrote: > Hi. > It would be really helpful to be able to look at your function as > well. My > Guess is that the problem lies there, since this is happening when you > call the function. Even if the problem is within django it would be a > lot >

Re: Confused by attribute error

2009-03-27 Thread Briel
Hi. It would be really helpful to be able to look at your function as well. My Guess is that the problem lies there, since this is happening when you call the function. Even if the problem is within django it would be a lot easier to find when looking through your function to see what it does.

Confused by attribute error

2009-03-27 Thread Robocop
Hello again, So i'm working on some of my old code, and a previously (or so i remember) function no longer works. When calling it my django page posts the error: AttributeError at /audit_sheets/TEST/ 'list' object has no attribute 'user' Request Method: POST Request URL:

Re: Attribute Error when doing a syncdb.

2008-10-25 Thread ஆமாச்சு
//I'm doing a little blog app and I'm going to be using tagging in it. So I wen to the google code page and downloaded it, named it tagging (instead of tagging-0.2.1), and then ran the install.// Does the unzipped folder had a directory 'tagging' inside with the app rests? Please include that

Attribute Error when doing a syncdb.

2008-10-24 Thread Jared
Hello, I'm doing a little blog app and I'm going to be using tagging in it. So I wen to the google code page and downloaded it, named it tagging (instead of tagging-0.2.1), and then ran the install. Once I did that I made sure both my blog app and the tagging was included in the installed apps.

Re: 'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-25 Thread Elliot Tucker
Thanks for being dumb TeenSpirit83, i've just spent 30mins trying to fix exactly the same typo...small world. On Sep 11, 2:56 pm, TeenSpirit83 <[EMAIL PROTECTED]> wrote: > > The L in Inline should not be capitalized.  Is it in some doc you are > > working from? > > > Karen > > The docs are

Re: 'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-11 Thread TeenSpirit83
> > The L in Inline should not be capitalized.  Is it in some doc you are > working from? > > Karen The docs are correct! I'm so dumb, it is the first time I notice the L is not capitalized! I was sure of the opposite! Thanks a lot Karen! --~--~-~--~~~---~--~~ You

Re: 'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-11 Thread Karen Tracey
On Thu, Sep 11, 2008 at 9:29 AM, TeenSpirit83 <[EMAIL PROTECTED]>wrote: > > I'm trying to upgrade my skills from django 096 to 1.0 so I started a > new app and tried to create an admin class for a class within its > model. > I got the error I specified in the subject. I paste down the > traceback

'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-11 Thread TeenSpirit83
I'm trying to upgrade my skills from django 096 to 1.0 so I started a new app and tried to create an admin class for a class within its model. I got the error I specified in the subject. I paste down the traceback .Can you help me? Environment: Request Method: GET Request URL:

Re: Attribute Error: 'NoneType' object has no attribute 'get_field_sets'

2008-06-18 Thread Joseph
Molly, You are on windows. So $ is not applicable to you. Go to command prompt and type python manage.py validate Anyway, I have sent you a mail that points to one of Django documentation page. See if you have the admin class defined. If you are new to programming/python/django, I would

Re: Attribute Error: 'NoneType' object has no attribute 'get_field_sets'

2008-06-18 Thread Molly
My bad, I mean I have to import all of the errors it gives me when I got to run the site.. What do you mean "Have you tried $ python manage.py validate?" I put that into the cmd if that's what you mean, and it gave me an error for the $ sign, it said "'$' is not recognized as an internal or

Re: Attribute Error: 'NoneType' object has no attribute 'get_field_sets'

2008-06-18 Thread Florencio Cano
What do you mean with "importing your models"? Do you mean syncing them with the database? Have you tried $ python manage.py validate? 2008/6/18 Molly <[EMAIL PROTECTED]>: > > I am creating an app to be run on the desktop, > > I am in the process of importing my models, and I got this error: > >

Attribute Error: 'NoneType' object has no attribute 'get_field_sets'

2008-06-18 Thread Molly
I am creating an app to be run on the desktop, I am in the process of importing my models, and I got this error: AttributeError at /admin/base/incident/add/ 'NoneType' object has no attribute 'get_field_sets' Request Method:

Re: user.get_profile() attribute error

2008-01-12 Thread Alex Koshelev
get_profile() uses default profile model manager. So if you profile model is Profile - exception is Profile.DoesNotExist that is subclass of ObjectDoesNotExist On 13 янв, 02:45, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I had the settings.py configured with the wrong Model name. >

Re: user.get_profile() attribute error

2008-01-12 Thread [EMAIL PROTECTED]
I had the settings.py configured with the wrong Model name. useraccount instead of userprofile. Whoops. Thanks! Though the documentation might be wrong, in that DoesNotExist doesn't seem to be a real exception. ObejctDoesNotExist, as defined in django/ core/exceptions.py, is the correct

Re: user.get_profile() attribute error

2008-01-12 Thread Alex Koshelev
Do you create a profile model and set right value in settings.py file? http://www.djangoproject.com/documentation/authentication/#storing-additional-information-about-users And User.get_pofile() does not require logged in user. Note that profile instance per user you must create manually. On 13

user.get_profile() attribute error

2008-01-12 Thread [EMAIL PROTECTED]
I'm trying to catch any exceptions from user.get_profile() during account creation in order to create the profile I create the user, authenticate them, log them in, and then try to get_profile. To start out, the user name is the email and I'm setting the password to a random string newUser =

Re: Attribute Error on Dumpdata

2007-12-07 Thread Empty
Added ticket http://code.djangoproject.com/ticket/6155 with patch. Still need to write tests. Michael On Dec 7, 2007 3:15 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > > On Dec 7, 2007 2:31 PM, Empty <[EMAIL PROTECTED]> wrote: > > > > > > > > > Seems dumpdata is coded to require a Manager named

Re: Attribute Error on Dumpdata

2007-12-07 Thread Karen Tracey
On Dec 7, 2007 2:31 PM, Empty <[EMAIL PROTECTED]> wrote: > > > Seems dumpdata is coded to require a Manager named 'objects' for the > Models > > it dumps, even though (as described here: > > http://www.djangoproject.com/documentation/model-api/#manager-names), > Django > > does not require that a

Re: Attribute Error on Dumpdata

2007-12-07 Thread Empty
> Seems dumpdata is coded to require a Manager named 'objects' for the Models > it dumps, even though (as described here: > http://www.djangoproject.com/documentation/model-api/#manager-names), Django > does not require that a Manager named objects exists for all Models. > Whether this is just an

Re: Attribute Error on Dumpdata

2007-12-07 Thread Karen Tracey
On Dec 6, 2007 8:01 PM, ttk <[EMAIL PROTECTED]> wrote: > > I think I found my problem... > > I failed to add "objects = models.Manager()" into my models which > would explain why that attribute isn't found. > > I'll try this out but if anyone has additional suggestions, I'm all > ears. Seems

Re: Attribute Error on Dumpdata

2007-12-06 Thread ttk
I think I found my problem... I failed to add "objects = models.Manager()" into my models which would explain why that attribute isn't found. I'll try this out but if anyone has additional suggestions, I'm all ears. cheers, -ttk --~--~-~--~~~---~--~~ You

Attribute Error on Dumpdata

2007-12-06 Thread ttk
Hello all, I'm getting an attribute error when I try running the dumpdata command on any of my apps. news = app name NewsEntry = model Output: = C:\someproject>manage.py dumpdata news Traceback (most recent call last): File "C:\someproject\manage.py", line 11, in ex

Re: Attribute Error

2007-08-20 Thread MikeHowarth
TED]> wrote: > On Sun, 2007-08-19 at 14:30 -0700, MikeHowarth wrote: > > I'll take a look at that. > > > Even commenting that line out and attempting to access self.title I'm > > still getting an attribute error thrown: 'Register' object has no > > attribute 'title' &g

Re: Attribute Error

2007-08-19 Thread Malcolm Tredinnick
On Sun, 2007-08-19 at 14:30 -0700, MikeHowarth wrote: > I'll take a look at that. > > Even commenting that line out and attempting to access self.title I'm > still getting an attribute error thrown: 'Register' object has no > attribute 'title' Doug Ballanc has explained

Re: Attribute Error

2007-08-19 Thread Doug B
I think you've got some misconceptions about newforms. http://www.djangoproject.com/documentation/newforms/ should give you the info you need. Something more like this: def save(self): #set up the objects we are going to populate user = User() # you want a new -instance- not another

Re: Attribute Error

2007-08-19 Thread MikeHowarth
I'll take a look at that. Even commenting that line out and attempting to access self.title I'm still getting an attribute error thrown: 'Register' object has no attribute 'title' On Aug 19, 10:22 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > As a first guess I'm

Re: Attribute Error

2007-08-19 Thread [EMAIL PROTECTED]
er anyone can help me out. > > I'm currently creating a form to register users, what I'm finding is > that when I then attempt to save the user within the Register:save > method I'm getting an attribute error when trying to access the title > attribute. I've tried referencing bo

Attribute Error

2007-08-19 Thread MikeHowarth
Hi I was wondering whether anyone can help me out. I'm currently creating a form to register users, what I'm finding is that when I then attempt to save the user within the Register:save method I'm getting an attribute error when trying to access the title attribute. I've tried referencing both

  1   2   >