Notifications
Clear all

error on vender

18 Posts
3 Users
0 Reactions
43 Views
0
Topic starter

Environment: Request Method: GET Request URL: http://localhost:8000/vendorDashboard/ Django Version: 3.2.5 Python Version: 3.9.0 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'accounts', 'vendor', 'menu', 'marketplace', 'django.contrib.gis', 'customers', 'orders'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] Traceback (most recent call last): File "/Users/brendon/Desktop/Foodweb/env/food/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/brendon/Desktop/Foodweb/env/food/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, callback_args, **callback_kwargs) File "/Users/brendon/Desktop/Foodweb/env/food/lib/python3.9/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view return view_func(request,args, kwargs) File "/Users/brendon/Desktop/Foodweb/env/food/lib/python3.9/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view return view_func(request, *args, kwargs) File "/Users/brendon/Desktop/Foodweb/food/accounts/views.py", line 201, in vendorDashboard current_month_revenue += i.get_total_by_vendor()['grand_total'] File "/Users/brendon/Desktop/Foodweb/food/orders/models.py", line 66, in get_total_by_vendor vendor = Vendor.objects.get(user=request_object.user)

rathan rathank.com Rathan Kumar 21/09/2024 8:32 pm

@arvobrendon Can you please attach a screenshot of the error? Also, provide your updated Github repo link so we can look at your code.

9a569ba2ea87fe0e5ac1b26da97cc834?s=36&d=mm&r=g rathank.com arvobrendon Topic starter 06/10/2024 11:40 am

Can you try to fix this ?

3 Answers
0
Topic starter

Here you go

9a569ba2ea87fe0e5ac1b26da97cc834?s=36&d=mm&r=g rathank.com arvobrendon Topic starter 06/10/2024 11:19 am

I can't send my file to you

0
Topic starter

The Vender has a issue

IMG 1866 rathank.com Mohaiminul - Team Rathan 07/10/2024 3:18 pm

@arvobrendon The issue you're encountering seems to be related to the request_object. In your order/models.py or request_object.py, there might be a mistake causing the request_object to return a string instead of a request instance. If you can provide us with access to your GitHub repository, we’d be happy to assist you further.

9a569ba2ea87fe0e5ac1b26da97cc834?s=36&d=mm&r=g rathank.com arvobrendon Topic starter 07/10/2024 9:56 pm
This post was modified 6 days ago by Rathan Kumar

I install github project from Rathan Kumar it's also the same problem I didn't put this project to github can I send you by email instead

IMG 1866 rathank.com Mohaiminul - Team Rathan 08/10/2024 10:11 am

@arvobrendon Please send your project on this mail address: mohaiminul.islam@appzoneit.com

0
Topic starter

Do I need re write the whole code again ?

IMG 1866 rathank.com Mohaiminul - Team Rathan 14/10/2024 3:30 pm

@arvobrendon can you share your registerVendor function code with me here so I can review it? The error you're encountering seems to be due to an issue with the registerVendor function, where some fields in your vendor form are not getting validated. I believe there might be a mistake that's causing this.

Share: