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')
> I am new and Django and I don't understand much on how to use views and
> templates work together.
>
> Can someone help me? I uploaded the folder
>
> --
> 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/12f53f21-f406-4ea8-840e-42f01cdac863n%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/CANuqdaW_ofjaBrnY4Hii6BLE99xKuvYv_cXTB6CDYO7KJuWbbQ%40mail.gmail.com.


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 necessary to have virtual environment to
install white noise and deploy my app to Heroku? Please respond me back as
soon as possible.

Thanks in advance.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/8774428c-6d6e-4a33-af04-adb289cc30b2%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANuqdaVE7w3s9EzqdztvO2gHwjgi7szGKrjyUctwpUxhJ08FPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1ffd58a6-71ed-442d-92af-c2e0f981bfe7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django User module extend

2018-01-05 Thread Ketul Suthar
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
is_manager  = models.BooleanField(default=False)
manager = models.ForeignKey(User,related_name='user_manager',on_delete=
models.CASCADE, blank=True,null=True)
def __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 numerous ways to achieve what you're asking for, I've been
>> using
>> following two:
>>
>> You can (and if this a new project, should) create custom user,
>> regardless
>> of which one approaches you use.
>>
>> 1) For a custom manager add user type field to a custom user model which
>> says is user a manager or ordinary user. And then add foreign key (or
>> many
>> to many if user can have multiple managers) to custom user model to self.
>>
>> 2)  Have so 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  wrote:
>>
>>> 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 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/810439c8-6515-4dc6-808d-643b0f1e38d0%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/810439c8-6515-4dc6-808d-643b0f1e38d0%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Jani Tiainen
>>
>> - Well planned is half done, and a half done has been sufficient
>> before...
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/CAHn91oeYGMRN0PcxPHUYtu1k8HheWFzwNru5FK%2BmcPZGOkCf8Q%
>> 40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHn91oeYGMRN0PcxPHUYtu1k8HheWFzwNru5FK%2BmcPZGOkCf8Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANuqdaXN3oFWBPifvfX5ZS-baU6wNVcORp1Jg9dsBp%3Du9Bf0FA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django User module extend

2018-01-05 Thread Ketul Suthar
Can you give me example?

On Jan 5, 2018 10:09 PM, "Jani Tiainen"  wrote:

> Hi,
>
> There are numerous ways to achieve what you're asking for, I've been using
> following two:
>
> You can (and if this a new project, should) create custom user, regardless
> of which one approaches you use.
>
> 1) For a custom manager add user type field to a custom user model which
> says is user a manager or ordinary user. And then add foreign key (or many
> to many if user can have multiple managers) to custom user model to self.
>
> 2)  Have so 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  wrote:
>
>> 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 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/810439c8-6515-4dc6-808d-643b0f1e38d0%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/810439c8-6515-4dc6-808d-643b0f1e38d0%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Jani Tiainen
>
> - Well planned is half done, and a half done has been sufficient before...
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAHn91oeYGMRN0PcxPHUYtu1k8HheWFzwNru5FK%2BmcPZGOkCf8Q%
> 40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHn91oeYGMRN0PcxPHUYtu1k8HheWFzwNru5FK%2BmcPZGOkCf8Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANuqdaWeS_evBy16CdnOMyhVMLhp_3aByhq8VCNZv67YJfGtrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/810439c8-6515-4dc6-808d-643b0f1e38d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multiple roles assign to user in djnago

2017-12-19 Thread Ketul Suthar
Yes. But I want to  assign role to user as normal user and manager based on
selection from drop down in admin site and also add new field role_id in
auth_user table

On Dec 19, 2017 8:13 PM, "Constantine Covtushenko" <
constantine@gmail.com> wrote:

> Hi Ketul,
>
> Did you read that <https://docs.djangoproject.com/en/2.0/topics/auth/>
> django documentation?
> There you can find all about users, their roles/groups and permissions.
>
> Also can you please elaborate what do you mean under `admin panel`?
> Is it just a reference to admin 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)
>>
>>
>> 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
>> field hoe can I add to User model ?
>>
>> And all this thing I have to handle from Django admin side how can I
>> achieve it ?
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/870fe422-9be6-4e88-bd47-2572296c224e%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/870fe422-9be6-4e88-bd47-2572296c224e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Sincerely yours,
> Constantine C
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAK52boWm3zNQF6%2BWtQ4hvKCM25bF-
> rxgLixZmWhX5yVrra-%2BOQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAK52boWm3zNQF6%2BWtQ4hvKCM25bF-rxgLixZmWhX5yVrra-%2BOQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANuqdaWH5UoP2TCxOOr8mVDjQ%2B%3DJzap0kAsPS0863O7yOVOxiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/67a4c9c4-3aba-48eb-b2a3-5e37b78ad8a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 field 
hoe can I add to User model ?

And all this thing I have to handle from Django admin side how can I 
achieve it ?

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/870fe422-9be6-4e88-bd47-2572296c224e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.