Multiple roles assign to user in djnago

2017-12-19 Thread Ketul Suthar
I have admin who can create User and Manager User (id, name, password,role) Manager (id, name, password,role) So how can i achieve using admin panel in djnago ? for that I have to extend User model or create other model ? Can I use same model for User and Manager ? If the i have to add role f

print option with django application

2017-12-19 Thread Ketul Suthar
I want to print data from database when user click on print button. how can I achieve it ? Is there any in-built module in djnago for printing data ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

Re: Multiple roles assign to user in djnago

2017-12-19 Thread Ketul Suthar
dmin site? > > Does it make sense? > > Regards, > Constantine C. > > On Mon, Dec 18, 2017 at 11:38 PM, Ketul Suthar > wrote: > >> I have admin who can create User and Manager >> >> User (id, name, password,role) >> Manager (id, name, password,role) >>

Django User module extend

2018-01-05 Thread Ketul Suthar
I am beginner to djnago. I want to create app in which admin can create User and Manager and manager is assign to user ? so how can i achieve ? For that I have to extend user class bacause user and manager and admin all three can login in system -- You received this message because you are

Re: Django User module extend

2018-01-05 Thread Ketul Suthar
called "profile", a model with one to one relation to user > model where you put all the same attributes as above. > > Admin can work with both approaches, it's up to you to decide which one > approach suits for you. > > On Fri, Jan 5, 2018 at 6:26 PM, Ketul Suthar

Re: Django User module extend

2018-01-05 Thread Ketul Suthar
str__(self): # __unicode__ for Python 2 return self.user.username Is it right ? how can i create form ? On 1/5/18, Ketul Suthar wrote: > Can you give me example? > > On Jan 5, 2018 10:09 PM, "Jani Tiainen" wrote: > >> Hi, >> >> There are num

Django with mongodb deploy on Google cloud

2018-01-16 Thread Ketul Suthar
I have one app which has backend mongodb and it's has one script which insert data in database then when I start my app locally then it will give me result from db but when I deploy that app to Google cloud app is working but when I search any thing it's will give me errors -- You received thi

Re: Struggling with deployment

2018-04-18 Thread Ketul Suthar
It's not necessary to create virtual environment on production. You must have to install all dependencies which are on development. On Apr 18, 2018 9:02 PM, "mansi thakkar" wrote: Hello , I am trying to deploy my project on Heroku. I haven't created Virtual Environment in my app. Is it necessar

Re: Stream Webcam and with Button Capture Image

2020-08-17 Thread Ketul Suthar
I will let you know. I am also working on same concept. On Mon., Aug. 17, 2020, 5:19 p.m. samar...@gmail.com, wrote: > Hello, I already achieved opening the webcam in browser, I would like to > add a button in a template and every time it is clicked, it saves the frame > in a folder ('media') >