Cannot add application in Dashboard Navigation

50 views
Skip to first unread message

Ankit Juneja

unread,
Dec 10, 2020, 4:20:13 AM12/10/20
to django-oscar
Hi All,

I am trying to add dashboard navigation links for one of the applications, but it does not seem to work.
I've done so far-
1. Added razorpay app in project.apps.dashboard
2. Created views.py and apps.py files

I've created a Gist of all the mentioned files. 

Dashboard application structure:
apps/dashboard/razorpay/
├── apps.py
├── __init__.py
├── __pycache__
│   ├── app.cpython-38.pyc
│   ├── apps.cpython-38.pyc
│   ├── __init__.cpython-38.pyc
│   └── views.cpython-38.pyc
└── views.py

When I open up the dashboard, I get the below-mentioned error:

django.urls.exceptions.NoReverseMatch: Reverse for 'razorpay-list' not found. 'razorpay-list' is not a valid view function or pattern name.

I've tried various things like - Adding apps.py urls to project urls.py
Then I get - 
TypeError: __init__() missing 2 required positional arguments: 'app_name' and 'app_module'

Thanks in advance,
Ankit

Reply all
Reply to author
Forward
0 new messages