How to access gmail

2023-08-26 Thread TASLIMA S
Dear friends,
I am developing an email signature web application.
How to access gmail mails to my application.

-- 
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/CAPKCA7SkJnJmmYLqxLL%3D01cJiUyuti-s%3DAvefVX-fn1RRumtVw%40mail.gmail.com.


Re: UpdateView and DeleteView

2023-08-26 Thread Ruby
I'm glad it worked out,
Consider using LoginRequiredMixin to ensure that current user is
authenticated before accessing the view.


On Sat, Aug 26, 2023, 16:23 'Simon Connah' via Django users <
django-users@googlegroups.com> wrote:

> Thank you! That is very helpful.
>
> --- Original Message ---
> On Saturday, August 26th, 2023 at 14:07, Ruby 
> wrote:
>
> You can simply set a test case using the built-in user passes test (
> https://docs.djangoproject.com/en/4.2/topics/auth/default/#django.contrib.auth.decorators.user_passes_test
> )
>
> On Sat, Aug 26, 2023, 11:20 'Simon Connah' via Django users <
> django-users@googlegroups.com> wrote:
>
>> I want to make sure that the only people who can update and delete an
>> object are either superusers or the person that originally created them but
>> I'm not sure how to go about doing it. Can someone point me in the right
>> direction?
>>
>> I'm not sure which method(s) to override.
>>
>> Thank you.
>>
>>
>> --
> 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/iT1fh6Btk96LInLjgvQNNIOeqZTL6TMcV5IbsAmfVdnR1ujaNPCbV_zhJeXr5o7emCHzK_BHnYDtyxQ1ZJVu7oDGqyDRkJirWsaGto-5bbA%3D%40protonmail.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/CAPUD46vM6PEJK4btLa-DCF8-VvExdnJ2OpzB0-Z6h03CVWvzOg%40mail.gmail.com.


Re: UpdateView and DeleteView

2023-08-26 Thread 'Simon Connah' via Django users
Thank you! That is very helpful.


--- Original Message ---
On Saturday, August 26th, 2023 at 14:07, Ruby  wrote:


> You can simply set a test case using the built-in user passes test 
> (https://docs.djangoproject.com/en/4.2/topics/auth/default/#django.contrib.auth.decorators.user_passes_test)
> 

> On Sat, Aug 26, 2023, 11:20 'Simon Connah' via Django users 
>  wrote:
> 

> > I want to make sure that the only people who can update and delete an 
> > object are either superusers or the person that originally created them but 
> > I'm not sure how to go about doing it. Can someone point me in the right 
> > direction?
> > 

> > I'm not sure which method(s) to override.
> > 

> > Thank you.
> > 

> > 

-- 
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/iT1fh6Btk96LInLjgvQNNIOeqZTL6TMcV5IbsAmfVdnR1ujaNPCbV_zhJeXr5o7emCHzK_BHnYDtyxQ1ZJVu7oDGqyDRkJirWsaGto-5bbA%3D%40protonmail.com.


signature.asc
Description: OpenPGP digital signature


Re: UpdateView and DeleteView

2023-08-26 Thread Ruby
You can simply set a test case using the built-in user passes test (
https://docs.djangoproject.com/en/4.2/topics/auth/default/#django.contrib.auth.decorators.user_passes_test
)

On Sat, Aug 26, 2023, 11:20 'Simon Connah' via Django users <
django-users@googlegroups.com> wrote:

> I want to make sure that the only people who can update and delete an
> object are either superusers or the person that originally created them but
> I'm not sure how to go about doing it. Can someone point me in the right
> direction?
>
> I'm not sure which method(s) to override.
>
> Thank you.
>
> --
> 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/RC50Lr8yv1j7M_cjvPHLpvLJ1RzHJP3QQaF5oQu4vAmfeijfMbprfVyyHGTIvg9udwKhe_-XcM9tYH9tRyaX-MDQauXKf3PiJbMOq2hEfj4%3D%40protonmail.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/CAPUD46vjq2Wm%3DMdFbkx-HBk_fjnbHAE%3Dn1UsGpfv6uOCdxXOhA%40mail.gmail.com.


UpdateView and DeleteView

2023-08-26 Thread 'Simon Connah' via Django users
I want to make sure that the only people who can update and delete an object 
are either superusers or the person that originally created them but I'm not 
sure how to go about doing it. Can someone point me in the right direction?

I'm not sure which method(s) to override.

Thank you.

-- 
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/RC50Lr8yv1j7M_cjvPHLpvLJ1RzHJP3QQaF5oQu4vAmfeijfMbprfVyyHGTIvg9udwKhe_-XcM9tYH9tRyaX-MDQauXKf3PiJbMOq2hEfj4%3D%40protonmail.com.


signature.asc
Description: OpenPGP digital signature