Re: Please help me out!

2020-06-19 Thread Doddahulugappa.B
Please elaborate more on your requirement On Fri, Jun 19, 2020, 10:31 AM meera gangani wrote: > Hello , > > I want to implement a Notification module in my Project > could you please help me out! > > > Thank you > -Meera Gangani > > -- > You received this message because you are

Re: How to use session in django??

2020-06-15 Thread Doddahulugappa.B
Refer below first, you need to install Django-session-timeout with the command: pip install django-session-timeout then you need to update your SessionTimeoutMiddleware in settings.py MIDDLEWARE_CLASSES = [ ... 'django.contrib.sessions.middleware.SessionMiddleware',

Re: Role based access

2020-01-19 Thread Doddahulugappa.B
> Use Authenticate() to authenticate users. Based on the assigned >> permissions they will have access to parts of your site. Basically you >> create views and the objects in the views are available to users with >> permissions. For example : >> >> >> >> def myview(re

Re: Role based access

2020-01-19 Thread Doddahulugappa.B
r group permissions >> >> >> >> Use Authenticate() to authenticate users. Based on the assigned >> permissions they will have access to parts of your site. Basically you >> create views and the objects in the views are available to users with >> permis

Re: Role based access

2020-01-19 Thread Doddahulugappa.B
age: --] > > Maninder Kumar > [image: http://]about.me/maninder.s.kumar > <http://about.me/maninder.s.kumar?promo=email_sig> > > > > > On Sun, Jan 19, 2020 at 3:04 PM Doddahulugappa.B > wrote: > >> Hi team, >> >> How to make role based acces

Role based access

2020-01-19 Thread Doddahulugappa.B
Hi team, How to make role based access in django. For ex. If employee names and their department in one table. And also we assign department to user. With manytomany field.. So how can i display only the records of employees and their department which is assigned to the user. Kindly help..

Re: Problems with "Class Meta" and " __str__"

2019-09-10 Thread Doddahulugappa.B
*def __str__(self):return self.name * On Tue, Sep 10, 2019, 8:30 PM Elmaco7 wrote: > Hello, I do these models but the Django admin page doesn't read the "class > Meta" and " __str__". > This is the models.py document > > > > > > > > > > > > > > > > > > > > > > > > >

Re: Database Views

2019-08-27 Thread Doddahulugappa.B
to database views, its also applicable to tables also. Kindly make sure to change above two lines in setting according to ur local time zone to render correct records. Thank you. On Tue, Aug 27, 2019, 10:02 PM Doddahulugappa.B wrote: > Thanks for your response. > > In Django models.. Fo

Re: Database Views

2019-08-27 Thread Doddahulugappa.B
Thanks for your response. In Django models.. For example class TempUser(models.Model): first_name = models.CharField(max_length=100) class Meta: managed = False db_table = "temp_user" temp_user is database view. Now assume select * from temp_user Gives 5 records