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 mod
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 20/0
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 subscribed
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
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
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 from
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 users
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 django-users+unsubscr...@googlegr
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 a
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 attribu
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, null
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 `
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
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
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,
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
e 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.
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
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
gt;
>> 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
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
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
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
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
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 e
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 django-
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 Yelto
;>>>>> andromeda.yel...@gmail.com> wrote:
>>>>>>>
>>>>>>>> The stacktrace is helpful, thanks!
>>>>>>>>
>>>>>>>> The specific message with the AttributeError is helpful here:
>>>&
gt;>>>>>> "/home/soupdragon/DJapps/banking/mybank/banking/urls.py",
>>>>>>> line 8, in
>>>>>>> url(r'^deposit/$', views.DepositView.as_view(), name='deposit'),`
>>>>>>>
>>>
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 web
gt;>>>> url(r'^deposit/$', views.DepositView.as_view(), name='deposit'),`
>>>>>>
>>>>>> So I checked to see if your views.py contains anything named
>>>>>> DepositView...and it does not. That's why the Att
DepositView...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 eff
of:
>>>>
>>>> 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 wha
views documentation to see what 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).
>>>
>>>
>>
>> On Thu, Aug 25, 2016 at 11:14 AM, Neil Hunt 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
On Thu, Aug 25, 2016 at 11:14 AM, Neil Hunt 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
e
>
> 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 the
>> file and the line where the e
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 lik
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 :
> I've beem working on a simple banking app based on the Django
erver
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 u
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:
http://dpa
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:
http://stackoverflow.com/questions/3722174/django-tem
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 more familiar with the
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:
>
> https://docs.djangoproject.com/e
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:
> > Pass user.get_profile() as a template variabl
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:
> > Okay, thanks. This is really helpful.
>
> > I am
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, And
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
> template, though. Here is
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:
UserProfile.objects.create(user
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, because
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 wrot
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) S
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 is not good design. I
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 cod
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' object has no attribute 'D
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/
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 to the Google Groups
"Djang
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
django-users+unsu
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
> from wishlist.models impor
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 means ???
>
> View for this
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 import
no matches for the query_term are found, the book_list is
simply Book.objects.all(), and the template 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 fi
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:
> D:\Python25\lib\site-packages\django\c
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 like
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 'resolve'
>
> Exceptio
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
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,
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 from being called.
Did yo
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
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
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:
>
> > Hi.
> > It would be really helpful to be able
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
> easier to find when look
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.
Als
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:http://suppo
//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 to
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. I
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 correc
>
> 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
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
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: http://localhost:8
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 recomme
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 ext
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:
>
>
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:
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.
> useracco
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 exceptio
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
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 = Use
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
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
> 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
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 dum
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 received
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
dinnick <[EMAIL PROTECTED]>
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'
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'
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 referen
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]>
wr
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 t
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 tr
1 - 100 of 120 matches
Mail list logo