Re: 'NoneType' object has no attribute 'get_host' in google authentication

2023-11-05 Thread Amen Guda
> > request.get_host() + '/auth/google/callback' On Sun, Nov 5, 2023 at 12:27 AM Amen Guda wrote: > *The error "NoneType' object has no attribute 'get_host'" typically occurs > in Django when there's an attempt to access a property or me

Re: 'NoneType' object has no attribute 'get_host' in google authentication

2023-11-05 Thread Amen Guda
*The error "NoneType' object has no attribute 'get_host'" typically occurs in Django when there's an attempt to access a property or method on an object that is None. Specifically, this error often arises when accessing a request object's get_host() method whe

Re: 'NoneType' object has no attribute 'get_host' in google authentication

2023-11-05 Thread Amen Guda
The error "NoReverseMatch" typically occurs in Django when the URL cannot be resolved during the reverse URL lookup. In your case, it seems that the error is coming from trying to reverse the URL named 'add_time_slot' with an empty argument. T*he error message mentions that it tried one pattern for

Re: 'NoneType' object has no attribute 'get_host' in google authentication

2023-10-24 Thread Migui Galan
Hi marvel! Can we see the full error message so we can visually/fully understand the issue. thank you! On Tue, Oct 24, 2023 at 7:21 PM marvel wrote: > Hello guys im seeing this error when > > Trying to use allauth for google authentication how can I solve it > > > > -- > You received this messag

'NoneType' object has no attribute 'get_host' in google authentication

2023-10-24 Thread marvel
Hello guys im seeing this error when Trying to use allauth for google authentication how can I solve it  -- 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-u

Re: 'WSGIRequest' object has no attribute 'Files'

2023-05-22 Thread Sanket Chudasama
p_form = ProfileUpdateForm(data= request.POST, files= request.Files, instance = request.user) On Tuesday, 16 April 2019 at 12:35:15 UTC+5:30 Soumen Khatua wrote: > Hi Folks, > I'm getting this error 'WSGIRequest' object has no attribute 'Files' and > i di

Re: python manage.py commonds: AttributeError: 'PosixPath' object has no attribute 'startswith'

2023-05-14 Thread David Du
rgs) >>> File >>> "/opt/.pyvenv/lib/python3.10/site-packages/pkg_resources/__init__.py", line >>> 3272, in _initialize_master_working_set >>> working_set = WorkingSet._build_master() >>> File >>> "

Re: python manage.py commonds: AttributeError: 'PosixPath' object has no attribute 'startswith'

2023-04-26 Thread Julius Chesoni
, line >> 572, in _build_master >> ws = cls() >> File >> "/opt/.pyvenv/lib/python3.10/site-packages/pkg_resources/__init__.py", line >> 565, in __init__ >> self.add_entry(entry) >> File >> "/opt/.pyvenv/lib/python3.10/sit

Re: python manage.py commonds: AttributeError: 'PosixPath' object has no attribute 'startswith'

2023-04-25 Thread David Nugent
es/__init__.py", line > 565, in __init__ > self.add_entry(entry) > File > "/opt/.pyvenv/lib/python3.10/site-packages/pkg_resources/__init__.py", line > 621, in add_entry > for dist in find_distributions(entry, True): > File > "/opt/.pyv

python manage.py commonds: AttributeError: 'PosixPath' object has no attribute 'startswith'

2023-04-23 Thread DL
le "/usr/local/python/lib/python3.10/pkgutil.py", line 421, in get_importer importer = path_hook(path_item) File "", line 1632, in path_hook_for_FileFinder File "", line 1504, in __init__ File "", line 182, in _path_isabs AttributeError: 'PosixPath&

Re: AttributeError: 'QuerySet' object has no attribute 'mime_type'

2023-01-19 Thread Jason
ation\automation\user\views.py", line > 140, in post > message = Mail( > ^ > File > "C:\Users\Lenovo\marketautomation\venv\Lib\site-packages\sendgrid\helpers\mail\mail.py", > > line 80, in __init__ > self.add_content(html_content, MimeTy

AttributeError: 'QuerySet' object has no attribute 'mime_type'

2023-01-19 Thread Monisha Sivanathan
te-packages\sendgrid\helpers\mail\mail.py", line 80, in __init__ self.add_content(html_content, MimeType.html) File "C:\Users\Lenovo\marketautomation\venv\Lib\site-packages\sendgrid\helpers\mail\mail.py", line 734, in add_content if content.mime_type == MimeType.tex

Re: 'WSGIRequest' object has no attribute 'is_ajax'

2022-09-16 Thread subin
Kindly notify me should you need any other information. On Fri, Sep 16, 2022 at 1:26 PM André Lewis wrote: > What version of Django are you using? If it's 4.1, I'm pretty sure it's no > longer supported. > > You can check the docs to confirm: > https://docs.djangoproject.com/en/4.1/ref/request-r

Re: 'WSGIRequest' object has no attribute 'is_ajax'

2022-09-16 Thread subin
I will continue learning more about . On Fri, Sep 16, 2022 at 2:06 PM Matheus Bon wrote: > I use the version 4.1 > I saw that after version 3.1 you have to implement a code to be able to use > I did this and it worked, thanks dude! > > Em sex., 16 de set. de 2022 às 09:27, André Lewis > escreve

Re: 'WSGIRequest' object has no attribute 'is_ajax'

2022-09-16 Thread Matheus Bon
I use the version 4.1 I saw that after version 3.1 you have to implement a code to be able to use I did this and it worked, thanks dude! Em sex., 16 de set. de 2022 às 09:27, André Lewis escreveu: > What version of Django are you using? If it's 4.1, I'm pretty sure it's no > longer supported. >

Re: 'WSGIRequest' object has no attribute 'is_ajax'

2022-09-16 Thread André Lewis
What version of Django are you using? If it's 4.1, I'm pretty sure it's no longer supported. You can check the docs to confirm: https://docs.djangoproject.com/en/4.1/ref/request-response/ On Thu, 15 Sept 2022 at 16:55, Matheus Bon wrote: > Hello guys! > > I'm using AJAX in my Django project, as

'WSGIRequest' object has no attribute 'is_ajax'

2022-09-15 Thread Matheus Bon
Hello guys! I'm using AJAX in my Django project, as soon as I finished writing the code and went to test it, this error always pops up. The site runs normally, it's only when I send it that this happens. What should I do? -- You received this message because you are subscribed to the Google G

AttributeError at /invoice/add_invoice/ 'int' object has no attribute '_meta' while using in_bulk

2022-07-10 Thread Kiran Chavan
I want to convert the model instances into a JSON object and then pass it to the HTML file. However, I get an AttributeError at this line: `data = serializers.serialize("json", Inventory.objects.in_bulk())` The full `views.py`: def add_invoice(request): form = InvoiceForm(request.POST

Re: AttributeError: 'Values' object has no attribute 'link_base' in building sphinx documentation.

2021-12-10 Thread Sencer Hamarat
Error exception: >> >> Exception occurred: >> File >> /env/lib/python3.6/site-packages/django/contrib/admindocs/utils.py", line >> 121, in _role >> inliner.document.settings.link_base, >> AttributeError: 'Values' object has no attribu

Re: AttributeError: 'Values' object has no attribute 'link_base' in building sphinx documentation.

2021-12-09 Thread Jason
conf.py of sphinx, when I try > to run 'make html' I'm ending up with AttributeError exception: > > Exception occurred: > File > /env/lib/python3.6/site-packages/django/contrib/admindocs/utils.py", line > 121, in _role > inliner.document.settings.link_

AttributeError: 'Values' object has no attribute 'link_base' in building sphinx documentation.

2021-12-09 Thread Sencer Hamarat
s.py", line 121, in _role inliner.document.settings.link_base, AttributeError: 'Values' object has no attribute 'link_base' I tried it with combinations of some django and sphinx versions. Here is the no luck list: django 1.10, django 1.11 and sphinx 3.5 django 2.0.13 and sphinx 3.5 , sphinx

Re: 'WSGIRequest' object has no attribute 'get'

2021-11-23 Thread ramadhan ngallen
Surely it has self.request.GET and not self.request.get On 23 Nov 2021, 09:11 +0300, Trippy Samurai , wrote: > Getting error while working with template view > > views.py > > > class DeveloperTicketView(TemplateView): > > def get_template_names(self): > if self.request.get('status') == 'Opened': >

'WSGIRequest' object has no attribute 'get'

2021-11-22 Thread Trippy Samurai
Getting error while working with template view views.py class DeveloperTicketView(TemplateView): def get_template_names(self): if self.request.get('status') == 'Opened': template_name = 'app/open_tickets.html' elif self.request.get('status') == 'Accepted': template_name = 'app/dev_accepted_tic

Re: Django error: type object has no attribute 'objects'‏‏

2021-11-10 Thread Shada Bahassan
Thank you so much Kasper Laudrup في الثلاثاء، 9 نوفمبر 2021 في تمام الساعة 4:48:20 م UTC+3، كتب Kasper Laudrup رسالة نصها: > On 09/11/2021 14.26, Shada Bahassan wrote: > > After I connected mysql with django, I wrote in the view files to > > interact with the models files. And when runs

Re: Django error: type object has no attribute 'objects'‏‏

2021-11-09 Thread Kasper Laudrup
On 09/11/2021 14.26, Shada Bahassan wrote: After  I connected mysql with django, I wrote in the view files to interact with the models files. And when runsever, It give error: type object 'DemoMCall' has no attribute 'obejects' Typo: obejects -> objects. Kind regards Kasper Laudrup -- You

'Group' object has no attribute 'group'

2021-11-08 Thread Jaime Almeida
Hi everyone i have this error when use : registro.group.permissions.add(gp) inside a loop for. everything right Ok the permisssions has saved. but i have the error : 'Group' object has no attribute 'group'. i have not idea for this error. -- You received this mes

Re: 'list' object has no attribute 'get'

2021-07-08 Thread Pedro Leite
Szaae A quinta, 8/07/2021, 16:24, Boris Pérez escreveu: > Do u wanna get an specific item from a list...??? Then u need to pass > the index of that item...something like: > item = list[index] > Greetings > > 2021-07-08 6:58 GMT-04:00, Abdul Rehman : > > Hi Django User, >

Re: 'list' object has no attribute 'get'

2021-07-08 Thread Boris Pérez
Do u wanna get an specific item from a list...??? Then u need to pass the index of that item...something like: item = list[index] Greetings 2021-07-08 6:58 GMT-04:00, Abdul Rehman : > Hi Django User, > > I am stuck with this problem while updating my nested serializer. Can > anyone help me to solv

'list' object has no attribute 'get'

2021-07-08 Thread Abdul Rehman
Hi Django User, I am stuck with this problem while updating my nested serializer. Can anyone help me to solve the issue? Thanks in advance. Regards -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi

Re: object has no attribute 'is_valid'

2021-05-26 Thread sourav panja
The Link is crashed. Its not open On Thursday, May 27, 2021 at 10:27:19 AM UTC+5:30 sourav panja wrote: > Thank you > > On Thu, May 27, 2021 at 2:31 AM AK channel wrote: > >> Send the code >> >> On Thu, 27 May 2021, 2:14 am sourav panja, wrote: >> &

Re: object has no attribute 'is_valid'

2021-05-26 Thread sourav panja
Thank you On Thu, May 27, 2021 at 2:31 AM AK channel wrote: > Send the code > > On Thu, 27 May 2021, 2:14 am sourav panja, > wrote: > >> object has no attribute 'is_valid' >> >> -- >> You received this message because you are subscribed to

Re: object has no attribute 'is_valid'

2021-05-26 Thread AK channel
Send the code On Thu, 27 May 2021, 2:14 am sourav panja, wrote: > object has no attribute 'is_valid' > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiv

object has no attribute 'is_valid'

2021-05-26 Thread sourav panja
object has no attribute 'is_valid' -- 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 view this d

Re: 'Question' object has no attribute 'choice_text'

2021-05-12 Thread UK Accounts
rial and stuck at Tutorial # 4.. >> >> I have checked your code too.. >> Still getting below error >> >> 'Question' object has no attribute 'choice_set' >> selected_choice = question.choice_set.get(pk=request.POST['choice']) >>

Re: 'Question' object has no attribute 'choice_text'

2021-05-07 Thread Daniel Hepper
ing below error > > 'Question' object has no attribute 'choice_set' > selected_choice = question.choice_set.get(pk=request.POST['choice']) > Can you advice > > Regards > Rishi > On Monday, 25 December 2017 at 05:22:55 UTC+5:30 Daniel Hepper wrote: >

Re: 'Question' object has no attribute 'choice_text'

2021-05-07 Thread Rishipal Singh
Hi Daniel, I am working on same tutorial and stuck at Tutorial # 4.. I have checked your code too.. Still getting below error 'Question' object has no attribute 'choice_set' selected_choice = question.choice_set.get(pk=request.POST['choice']) Can you advic

Django 3.2 AttributeError: 'TextField' object has no attribute 'db_collation'

2021-04-07 Thread Asaduzzaman Sohel
I've an existing project on Django 3.1 and I upgraded my project to Django 3.2. I created an app called payment on my project. But When I make migrations. It trow an error ```AttributeError: 'TextField' object has no attribute 'db_collation'``` ``` from django.db impor

Re: AttributeError: 'customer' object has no attribute 'is_authenticated'

2021-04-01 Thread Gabriel Araya Garcia
; > On Thu, 1 Apr 2021, 22:32 Salima Begum, > wrote: > >> Hi all, >> >> How to solve this errors >> ``` >> AttributeError: 'customer' object has no attribute 'is_authenticated' >> ``` >> >> ``` >> AttributeError: '

Re: AttributeError: 'customer' object has no attribute 'is_authenticated'

2021-04-01 Thread sebasti...@gmail.com
AttributeError: 'customer' object has no attribute 'is_authenticated' > ``` > > ``` > AttributeError: 'customer' object has no attribute 'is_anonymous' > ``` > > How can I solve this above errors. Help me. > > Thanks > ~Sa

Re: AttributeError: 'customer' object has no attribute 'is_authenticated'

2021-04-01 Thread Mahendra
I think given name is wrong Hlo do you have any idea posting form data? Mahendra Yadav On Thu, 1 Apr 2021, 22:32 Salima Begum, wrote: > Hi all, > > How to solve this errors > ``` > AttributeError: 'customer' object has no attribute 'is_authenticated' > ```

AttributeError: 'customer' object has no attribute 'is_authenticated'

2021-04-01 Thread Salima Begum
Hi all, How to solve this errors ``` AttributeError: 'customer' object has no attribute 'is_authenticated' ``` ``` AttributeError: 'customer' object has no attribute 'is_anonymous' ``` How can I solve this above errors. Help me. Thanks ~Salima -- Y

Re: 'WSGIRequest' object has no attribute

2021-04-01 Thread sebasti...@gmail.com
, > related_name="usersettings_address",primary_key=True,) > > and i have a mixin: > > class ListviewMixin(): > > def get_queryset(self): > print("Order "+str(self.request.usersettings_address.list_orderby)) > > now i get a

'WSGIRequest' object has no attribute

2021-04-01 Thread sebasti...@gmail.com
int("Order "+str(self.request.usersettings_address.list_orderby)) now i get a exception: AttributeError at / 'WSGIRequest' object has no attribute 'usersettings_address' Request Method: GET Request URL: http://127.0.0.1:8001/ Django Version: 3.1.7 Exception Type: Attri

Re: AttributeError: 'NoneType' object has no attribute 'replace'

2021-02-23 Thread Kasper Laudrup
On 23/02/2021 17.56, Abnilson Rafael wrote: Hi, I'm getting error above when I try to this program: The get_language() member function/method of your "translation" object/variable doesn't return anything and you most likely expect it to return a string. Try to figure out how that could happ

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-15 Thread Mislav Jurić
(self): >>>>>> return str(self.first_name) + str(self.last_name) >>>>>> >>>>>> *Why do I need the foreign key to User in the first place?* I don't >>>>>> recall seing the foreign key to User in any one of the tutorials. >

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-14 Thread coolguy
all seing the foreign key to User in any one of the tutorials. >>>>> Dana subota, 12. rujna 2020. u 20:20:11 UTC+2 korisnik coolguy napisao >>>>> je: >>>>> >>>>>> Please share the complete employee model. It seems you are missing >>&g

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-14 Thread Mislav Jurić
20 PM UTC-4 >>>>> mislav@gmail.com wrote: >>>>> >>>>>> Hey guys, >>>>>> >>>>>> I have the following code in models.py file in one of my apps: >>>>>> >>>>>> def get_upload_

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-13 Thread coolguy
UTC-4 >>>> mislav@gmail.com wrote: >>>> >>>>> Hey guys, >>>>> >>>>> I have the following code in models.py file in one of my apps: >>>>> >>>>> def get_upload_path(instance, filename): >>>>&

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-13 Thread coolguy
turday, September 12, 2020 at 2:03:20 PM UTC-4 >>>> mislav@gmail.com wrote: >>>> >>>>> Hey guys, >>>>> >>>>> I have the following code in models.py file in one of my apps: >>>>> >>>>> def get_upload_path(instance,

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-13 Thread Mislav Jurić
] >>>> return "employees/media/users/{0}/profile_picture.{1}".format( >>>> instance.user.id, extension) >>>> >>>> class Employee(models.Model): >>>> # some attributes here >>>> profile_picture = models.ImageFie

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-12 Thread coolguy
>>> >>> class Employee(models.Model): >>> # some attributes here >>> profile_picture = models.ImageField(upload_to=get_upload_path, >>> blank=True, null=True) >>> >>> I am getting the following error when I try to add

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-12 Thread Mislav Jurić
, >> blank=True, null=True) >> >> I am getting the following error when I try to add an Employee via the >> admin interface: >> >> AttributeError at /admin/employees/employee/add/ >> >> 'Employee' object has no attribute 'user' >

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-12 Thread coolguy
ield(upload_to=get_upload_path, > blank=True, null=True) > > I am getting the following error when I try to add an Employee via the > admin interface: > > AttributeError at /admin/employees/employee/add/ > > 'Employee' object has no attribute 'user' &

AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-12 Thread Mislav Jurić
s.Model): # some attributes here profile_picture = models.ImageField(upload_to=get_upload_path, blank=True, null=True) I am getting the following error when I try to add an Employee via the admin interface: AttributeError at /admin/employees/employee/add/ 'Employee' object has no a

Re: 'str' object has no attribute '_meta'

2020-08-02 Thread coolguy
please provide some details. It's pretty vague at this time. On Sunday, August 2, 2020 at 6:12:33 PM UTC-4, Giovanni Silva wrote: > > > > -- > *Giovanni Silva* > (31) 9 9532-1877 > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

'str' object has no attribute '_meta'

2020-08-02 Thread Giovanni Silva
-- *Giovanni Silva* (31) 9 9532-1877 -- 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 view this discussion on the w

Error in Connecting Multiple Database Django ( 'DatabaseOperations' object has no attribute 'geo_db_type' )

2020-06-29 Thread Pradyum Gupta
Hi, Can anyone please sort the issue. https://stackoverflow.com/q/62630722/7999665 Regards Pradyum -- 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-user

Error in Connecting Multiple Database Django ( 'DatabaseOperations' object has no attribute 'geo_db_type' )

2020-06-29 Thread Pradyum Gupta
', 'ENGINE' : 'django.db.backends.postgresql_psycopg2', 'HOST' : '', 'PORT' : '', 'USER' : 'user_name_2', 'PASSWORD' : '', }, # 'users_db'

Re: Possible Bug? AttributeError: 'HttpResponse' object has no attribute '_resource_closers'

2020-05-30 Thread Tim Allen
ging my cache hasn't fixed the problem like it did for >> a commenter on the question, so I'm asking here for amplification. Here's >> the text of the post: >> >> I'm getting an error when I deploy Django 3.0.5 under mod_wsgi: >> Att

Re: Possible Bug? AttributeError: 'HttpResponse' object has no attribute '_resource_closers'

2020-05-16 Thread Jorge Gimeno
ost: > > I'm getting an error when I deploy Django 3.0.5 under mod_wsgi: > AttributeError: > 'HttpResponse' object has no attribute '_resource_closers'. I'm running: > >- Python: 3.6.8 >- Django: 3.0.5 >- Apache: 2.4.6 >- mod

Possible Bug? AttributeError: 'HttpResponse' object has no attribute '_resource_closers'

2020-05-16 Thread Tim Allen
r/django/sites/mysite-prod/venv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 76, in get_response[Sat Apr 18 16:11:30.684933 2020] [wsgi:error] [pid 4154] [remote 100.19.146.139:54397] response._resource_closers.append(request.close)[Sat Apr 18 16:11:30.684964 2020] [ws

Error in formatting: AttributeError: 'UUID' object has no attribute 'int'

2020-04-03 Thread aetar
ing: AttributeError: 'UUID' object has no attribute 'int' version None *archive/urls.py:* from django.contrib import admin from django.urls import include, path from django.views.generic import RedirectView from django.conf import settings from djan

Re: AttributeError: 'NoneType' object has no attribute 'app_name'

2020-03-13 Thread Sencer Hamarat
Thank you for your suggestion. And sorry fro delayed answer. My hunch is saying same thing but I want to be sure about it. Kind Regards, Sencer Hamarat 3 Mart 2020 Salı 12:24:34 UTC+3 tarihinde Naveen Arora yazdı: > > Hi, > > Can't the error be resolved ? Still, if error has to occur then you c

Re: AttributeError: 'NoneType' object has no attribute 'app_name'

2020-03-03 Thread Naveen Arora
Hi, Can't the error be resolved ? Still, if error has to occur then you can put conditions instead of try blocks for better functioning. Regards Naveen Arora On Monday, 2 March 2020 18:25:15 UTC+5:30, Sencer Hamarat wrote: > > Hello, > > The project I'm working on has it's custom template co

AttributeError: 'NoneType' object has no attribute 'app_name'

2020-03-02 Thread Sencer Hamarat
Hello, The project I'm working on has it's custom template context_processor. And when unavailable URL request arrives to Django (Eg. "/wp-login.php"), the context_processor is throwing AttributeError. Which way should I use to prevent from context processor from throwing errors? Is it ok to w

Re: 'str' object has no attribute 'objects'

2019-12-28 Thread Chetan Rokade
,Getting below error while doing search operation :'str' object has no attribute 'objects' Code:1) html having search button :     {% csrf_token %} Search  -- You received

Re: 'str' object has no attribute 'objects'

2019-12-28 Thread Chetan Rokade
This is resolved now. I had used variable name same as class name. Regards, Chetan On Saturday, December 28, 2019 at 4:30:53 PM UTC+5:30, Chetan Rokade wrote: > > Hi Friends, > Getting below error while doing search operation : > 'str' object has no attribute 'o

Re: 'str' object has no attribute 'objects'

2019-12-28 Thread Suraj Thapa FC
2019, 4:31 pm Chetan Rokade, > wrote: > >> Hi Friends, >> Getting below error while doing search operation : >> 'str' object has no attribute 'objects' >> >> Code: >> 1) html having search button : >> >> {%

Re: 'str' object has no attribute 'objects'

2019-12-28 Thread gaurav jain
Show the backend code of the post request Regards Gaurav Jain On Sat, 28 Dec, 2019, 4:31 pm Chetan Rokade, wrote: > Hi Friends, > Getting below error while doing search operation : > 'str' object has no attribute 'objects' > > Code: > 1) html having sear

Re: 'str' object has no attribute 'objects'

2019-12-28 Thread Chetan Rokade
return render(request, 'changes/changes.html') On Saturday, December 28, 2019 at 4:30:53 PM UTC+5:30, Chetan Rokade wrote: > > Hi Friends, > Getting below error while doing search operation : > 'str' object has no attribute 'objects' > > Code: > 1) htm

'str' object has no attribute 'objects'

2019-12-28 Thread Chetan Rokade
Hi Friends, Getting below error while doing search operation : 'str' object has no attribute 'objects' Code: 1) html having search button : {% csrf_token %} Search

Re: Getting ```AttributeError: 'str' object has no attribute 'state_forwards'``` when running a migrations, Down there is the migrations file. please help

2019-10-22 Thread Jorge Gimeno
Can you post your models.py files, please? -Jorge On Tue, Oct 22, 2019, 6:07 PM fils-aime walnes andre < walnesfilsa...@gmail.com> wrote: > Merci freo > > Le lundi 21 octobre 2019, adonis simo a écrit : > >> >> # Generated by Django 2.2.3 on 2019-10-21 22:00 >> >> >> >> from django.db import mi

Re: Getting ```AttributeError: 'str' object has no attribute 'state_forwards'``` when running a migrations, Down there is the migrations file. please help

2019-10-22 Thread fils-aime walnes andre
Merci freo Le lundi 21 octobre 2019, adonis simo a écrit : > > # Generated by Django 2.2.3 on 2019-10-21 22:00 > > > > from django.db import migrations, models > > import django.db.models.deletion > > import django_extensions.db.fields > > > > > > class Migration(migrations.Migration): > > > >

Re: Getting ```AttributeError: 'str' object has no attribute 'state_forwards'``` when running a migrations, Down there is the migrations file. please help

2019-10-22 Thread fils-aime walnes andre
Merci freo Le lundi 21 octobre 2019, adonis simo a écrit : > > # Generated by Django 2.2.3 on 2019-10-21 22:00 > > > > from django.db import migrations, models > > import django.db.models.deletion > > import django_extensions.db.fields > > > > > > class Migration(migrations.Migration): > > > >

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-07 Thread Kean
Hi, removing did, not work, still getting same error. Welcome any other help from the wider community in reference to this issue. best, Kean On 6 Sep 2019, at 22:26, Bhoopesh sisoudiya wrote: > Try after removing related_name='expenses' from Expenses model. > > On Sat, Sep 7, 2019, 2:28 AM Ke

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
Ok, Updated to below, and am still getting the same error: def projectdetail(request): projectList = Project.objects.all() projectExpenseDetails = Expense.objects.select_related('project').all() return render(request, 'busprojectdetail.html', {'project': project, 'expense_list': proj

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
Hi Ok, I updated as advised. views.py def projectdetail(request): projectExpenseDetails = Expense.objects.select_related('project').all() return render(request, 'busprojectdetail.html', {'project': project, 'expense_list': projectExpenseDetails}) I get new error Exception Type: NameErr

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
Hi, >>>>>> >>>>>> New to Django. when navigating to the reqired view, I get the error >>>>>> above. >>>>>> >>>>>> urls.py >>>>>> >>>>>> path('businesslogin/bus

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
gt;> path('businesslogin/businessadmin/busproject', views.projectdetail, >>>> name='projectdetail'), >>>> >>>> views.py >>>> >>>> def projectdetail(request): >>>> project = Project.objects.al

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
27;projectdetail'), >>>>> >>>>> views.py >>>>> >>>>> def projectdetail(request): >>>>> project = Project.objects.all() >>>>> return render(request, 'busprojectdetail.html', {'project

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
jectdetail.html', {'project': project, >>> 'expense_list': project.expenses.all()}) >>> >>> models.py >>> >>> # Project model >>> >>> class Project(models.Model): >>> name = models.CharField(max_

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
27;: project.expenses.all()}) >>>> >>>> models.py >>>> >>>> # Project model >>>> >>>> class Project(models.Model): >>>> name = models.CharField(max_length=100) >>>> budget = IntegerField() >

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
Project, on_delete=models.CASCADE) >> name = models.CharField(max_length=150) >> >> >> # Expenses manager model >> >> class Expense(models.Model): >> project = models.ForeignKey( >> Project, on_delete=models.CASCADE, relat

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
;>> def save(self, *args, **kwargs): >>>> self.name >>>> super(Project, self).save(*args, **kwargs) >>>> >>>> # Category manager model >>>> >>>> >>>> class Category(models.Model): &g

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
gt;>> class Category(models.Model): >>> project = models.ForeignKey( >>> Project, on_delete=models.CASCADE) >>> name = models.CharField(max_length=150) >>> >>> >>> # Expenses manager model >>> >>> class Expense(

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
t; > > # Expenses manager model > > class Expense(models.Model): > project = models.ForeignKey( > Project, on_delete=models.CASCADE, related_name='expenses') > title = models.CharField(max_length=100) > amount = models.DecimalField(max_dig

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
s manager model >> >> class Expense(models.Model): >> project = models.ForeignKey( >> Project, on_delete=models.CASCADE, related_name='expenses') >> title = models.CharField(max_length=100) >> amount = models.DecimalField(max_digits=8,

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
gt; > > # Expenses manager model > > class Expense(models.Model): > project = models.ForeignKey( > Project, on_delete=models.CASCADE, related_name='expenses') > title = models.CharField(max_length=100) > amount = models.DecimalField(max_digits

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
manager model > > class Expense(models.Model): > project = models.ForeignKey( > Project, on_delete=models.CASCADE, related_name='expenses') > title = models.CharField(max_length=100) > amount = models.DecimalField(max_digits=8, decimal_places=2) > cat

AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
or is as follows: Exception Type: AttributeError Exception Value: 'QuerySet' object has no attribute 'expenses' Exception Location: /Users/ProductionEnv/Desktop/test/test1/dev/core/views.py in projectdetail, line 238 Please can anyone help? Best K -- You received this m

Re: AttributeError 'QuerySet' object has no attribute '_meta'

2019-08-18 Thread Kean Dumba
Ok thanks is there a way to call all objects, as this is more user friendly and efficient when potentially editing many object fields? On Sun, 18 Aug 2019 at 18:05, Daniel Roseman wrote: > You can't pass *all* the objects to the form. You have to get the specific > one you want to edit and pass

AttributeError 'QuerySet' object has no attribute '_meta'

2019-08-18 Thread Daniel Roseman
You can't pass *all* the objects to the form. You have to get the specific one you want to edit and pass that as the instance. -- 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, sen

AttributeError 'QuerySet' object has no attribute '_meta'

2019-08-18 Thread Kean
Hi, New to Django but trying to stick with it. I have created a model form, which creates ok. I am trying to edit records. I have the following, but keep getting the QuerySet object has no attribute '_meta' in the browser. my views.py def editbusiness(requ

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,

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread Abu Yusuf
>>>>>>>> On Wed, May 22, 2019 at 10:25 AM Abu Yusuf < >>>>>>>> yu...@binate-solutions.com> wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> Comment out the >>>>>>>

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread sagar ninave
ddleware.SessionAuthenticationMiddleware', >>>>>>>> >>>>>>>> in your settings.py file in Middleware or remove. Then run again. >>>>>>>> It will work. >>>>>>>> >>>>>>>> On Wed,

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread sagar ninave
;> >>>>>>>> On Wed, May 22, 2019 at 10:25 AM Abu Yusuf < >>>>>>>> yu...@binate-solutions.com> wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> Comment out the >>

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread Abu Yusuf
gt;>>>>>> in your settings.py file in Middleware or remove. Then run again. It >>>>>>> will work. >>>>>>> >>>>>>> On Wed, May 22, 2019 at 10:36 AM Abu Yusuf < >>>>>>> yu...@binate-solutions.

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread sagar ninave
.py file in Middleware or remove. Then run again. It >>>>>> will work. >>>>>> >>>>>> On Wed, May 22, 2019 at 10:36 AM Abu Yusuf < >>>>>> yu...@binate-solutions.com> wrote: >>>>>> >>>>>&

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread Abu Yusuf
d yet? >>>>>> >>>>>> On Tue, May 21, 2019 at 4:55 PM sagar ninave >>>>>> wrote: >>>>>> >>>>>>> my manage.py is in project folder you can check attachment >>>>>>> >>

  1   2   3   4   5   6   7   8   9   10   >