Role And Permission

2021-08-16 Thread Amit Vaghani
Handling Role From Frontend side 
like:- 
add role
delete role
update role 
then Handling Permissions
Assign permission
remove permissions from frontend side

So finally I want to Customise role and permission 
any one guide me for this?
  

-- 
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 web visit 
https://groups.google.com/d/msgid/django-users/c9f040b6-5983-4626-b3c2-d05cfad0cc7an%40googlegroups.com.


CICD pipeline in Jenkins for Django web application

2021-08-16 Thread Ram
Hi,

We have installed Jenkins tool on our development server for setting up
CICD pipeline and our requirements are like this to automate the CICD
process.

1. Django application with unit tests written in Pytest
2. We are going to add  BDD tests using Behave tool
3. Our code is in GIT repository
4. We have to run all the above automated tests from 1 & 2 on development
repository
5. Once all the tests are passed we have to deploy the code onto
development server first
6. Run another round of testing on development server
7. Deploy the build onto production server
8. All the above tests have to be automated in Groovy script because
Jenkins has Groovy as default scripting

So we are wondering if anyone is using similar software stack and doing
continuous integration in Jenkins? If you are doing this, is there any
pointer that can show us a sample groovy or someother script so that we
could simulate similar way to achieve about requirements. I appreciate if
someone could share expert advice or pointers on this.

Best regards,
~Ram

-- 
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 web visit 
https://groups.google.com/d/msgid/django-users/CA%2BOi5F2mX%3Do18FhEG9vpD2a%3DLSnitCgZrj6rRNp1VxhoT6GMAA%40mail.gmail.com.


Re: Error: NoReverseMatch at

2021-08-16 Thread DJANGO DEVELOPER
show me your django app url and views as well.

On Tue, Aug 17, 2021 at 1:10 AM DJANGO DEVELOPER 
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 <
> django-users@googlegroups.com> 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 abubak...@gmail.com
>> wrote:
>>
>>> show your url, view and html code.
>>>
>>> On Mon, Aug 16, 2021 at 2:56 PM 'Rahul Chauhan' via Django users <
>>> django...@googlegroups.com> 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/(?Pcategory|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 discl...@email-abuse.com 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 django-users...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com
 
 .

>>>
>> 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 disclai...@email-abuse.com 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 django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/0b99bc76-6423-432e-b114-107b88976fc4n%40googlegroups.com
>> 
>> .
>>
>

-- 
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 web visit 
https://groups.google.com/d/msgid/django-users/CAKPY9pmTXmUZQ--W6wTFQpr0jstahL%2BdUjPh2DQ7CRcxb%2B%3D7dg%40mail.gmail.com.


Re: Error: NoReverseMatch at

2021-08-16 Thread DJANGO DEVELOPER
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 <
django-users@googlegroups.com> 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 abubak...@gmail.com
> wrote:
>
>> show your url, view and html code.
>>
>> On Mon, Aug 16, 2021 at 2:56 PM 'Rahul Chauhan' via Django users <
>> django...@googlegroups.com> 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/(?Pcategory|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 discl...@email-abuse.com 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 django-users...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com
>>> 
>>> .
>>>
>>
> 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 disclai...@email-abuse.com 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0b99bc76-6423-432e-b114-107b88976fc4n%40googlegroups.com
> 
> .
>

-- 
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 web visit 
https://groups.google.com/d/msgid/django-users/CAKPY9pnb52b%2BtTTo3Zx-KnvBCewrQtWcVSA6APGxEm7KU5azSw%40mail.gmail.com.


We need Thai language in Documentation

2021-08-16 Thread frame
We need Thai language in Documentation To help us understand more, thank 
you. <3

-- 
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 web visit 
https://groups.google.com/d/msgid/django-users/0a7e1945-f074-4831-8094-830ece8690edn%40googlegroups.com.


Re: Error: NoReverseMatch at

2021-08-16 Thread 'Rahul Chauhan' via Django users
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 abubak...@gmail.com wrote:

> show your url, view and html code.
>
> On Mon, Aug 16, 2021 at 2:56 PM 'Rahul Chauhan' via Django users <
> django...@googlegroups.com> 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/(?Pcategory|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 discl...@email-abuse.com 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 django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com
>>  
>> 
>> .
>>
>
-- 
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 disclai...@email-abuse.com 
 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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0b99bc76-6423-432e-b114-107b88976fc4n%40googlegroups.com.