show me your django app url and views as well.

On Tue, Aug 17, 2021 at 1:10 AM DJANGO DEVELOPER <[email protected]>
wrote:

> okay add a url. first of all import the view into urls.py file and make a
> path.
>
> On Mon, Aug 16, 2021 at 5:32 PM 'Rahul Chauhan' via Django users <
> [email protected]> wrote:
>
>> Here is how the the project's url.py looks like. Not made any changes to
>> it.
>>
>> [image: dj_4.jpg]
>>
>> *change_list.html: *Copied this (
>> https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/change_list.html)
>>  to
>> the local app folder.
>>
>> On Monday, August 16, 2021 at 3:36:27 PM UTC+5:30 [email protected]
>> wrote:
>>
>>> show your url, view and html code.
>>>
>>> On Mon, Aug 16, 2021 at 2:56 PM 'Rahul Chauhan' via Django users <
>>> [email protected]> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I have a customized/override "*changelist_view.html*" to display
>>>> hierarchical data in Django admin panel.
>>>>
>>>> The problem is that the default form to add the Model data throws below
>>>> error when clicked the button "add category". Please refer to the attached
>>>> screenshot.
>>>>
>>>> [image: dj_1.jpg]
>>>>
>>>> *NoReverseMatch at /admin/category/category/add/*
>>>>
>>>> *Reverse for 'app_list' with keyword arguments '{'app_label': ''}' not
>>>> found. 1 pattern(s) tried: ['admin/(?P<app_label>category|auth)/$']*
>>>>
>>>> [image: dj_2.jpg]
>>>>
>>>> If I remove the function
>>>> "def changelist_view(self, request, extra_context={}):", the model starts
>>>> appearing fine. Please refer to the screenshot below. But then I loose the
>>>> functionality to display custom hierarchical data.
>>>>
>>>> [image: dj_3.jpg]
>>>>
>>>> How can I still show the default form to add data to the model and
>>>> override the  *changelist_view.html*" .
>>>>
>>>> Appreciate any help in advance.
>>>>
>>>> Thanks
>>>> Rahul
>>>>
>>>> This e-mail is intended only for the named person or entity to which it is 
>>>> addressed and contains valuable business information that is privileged, 
>>>> confidential and/or otherwise protected from disclosure. If you received 
>>>> this e-mail in error, any review, use, dissemination, distribution or 
>>>> copying of this e-mail is strictly prohibited. Please notify us 
>>>> immediately of the error via e-mail to [email protected] and please 
>>>> delete the e-mail from your system, retaining no copies in any media. We 
>>>> appreciate your cooperation.
>>>>
>>>> --
>>>> 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 [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>> This e-mail is intended only for the named person or entity to which it is 
>> addressed and contains valuable business information that is privileged, 
>> confidential and/or otherwise protected from disclosure. If you received 
>> this e-mail in error, any review, use, dissemination, distribution or 
>> copying of this e-mail is strictly prohibited. Please notify us immediately 
>> of the error via e-mail to [email protected] and please delete the 
>> e-mail from your system, retaining no copies in any media. We appreciate 
>> your cooperation.
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/0b99bc76-6423-432e-b114-107b88976fc4n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/0b99bc76-6423-432e-b114-107b88976fc4n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKPY9pmTXmUZQ--W6wTFQpr0jstahL%2BdUjPh2DQ7CRcxb%2B%3D7dg%40mail.gmail.com.

Reply via email to