Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard not working #3

Open
AhmedThahir opened this issue Jul 6, 2024 · 0 comments
Open

Dashboard not working #3

AhmedThahir opened this issue Jul 6, 2024 · 0 comments

Comments

@AhmedThahir
Copy link

Environment:


Request Method: GET
Request URL: http://localhost:8000/dashboard

Django Version: 5.0.4
Python Version: 3.11.4
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'app1']
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/ahmedthahir/anaconda3/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ahmedthahir/anaconda3/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ahmedthahir/Investa/app1/views.py", line 131, in dashboard
    data = user_a(requests)
           ^^^^^^^^^^^^^^^^
  File "/Users/ahmedthahir/Investa/app1/views.py", line 100, in user_a
    stockname=user.stockbuy.keys()
              ^^^^^^^^^^^^^^^^^^

Exception Type: AttributeError at /dashboard
Exception Value: 'list' object has no attribute 'keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant