Re: Please help me out?

2020-05-21 Thread meera gangani
What is the point of these message!!! On Thu, May 21, 2020 at 10:53 AM Vishesh Mangla wrote: > You need to look at the “header” of the request object for those details. > > > > Sent from Mail for > Windows 10 > > > > *From: *meera gangani >

Re: How to invoke Sub Form which have MULTIPLE OPTIONS to choose inside Django Form.

2020-05-21 Thread Devansh Chaubey
Hey Chaitanya , You can do something like this In the models.py CHOICES=[('Basic','Basic'), ('Standard','Standard'), ('Advanced','Advanced')] class Modelname(models.Model): pack=models.CharField(max_length=12,choices=CHOICES,blank=True) *Forms.py class Formname(forms.ModelForm): class *meta: *

Re: How to invoke Sub Form which have MULTIPLE OPTIONS to choose inside Django Form.

2020-05-21 Thread chaitanya orakala
wow... thanks Devansh. It was simple and easy to understand and no extra hassle to add new language into the code. On Thu, May 21, 2020 at 2:04 AM Devansh Chaubey wrote: > Hey Chaitanya , > You can do something like this > In the models.py > CHOICES=[('Basic','Basic'), ('Standard','Standard'),

Watch "Errormania" on YouTube

2020-05-21 Thread Anonymous Patel
https://www.youtube.com/channel/UCxxPBCkto7W8MX6TMctgLqw Raj Patel -- 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.

Re: connect to mongodb

2020-05-21 Thread saifullah khan
ok thanks On Fri, 22 May 2020 at 02:13, Vishesh Mangla wrote: > NoSQL databases vs SQL databases. What to choose? MongoDB is a NoSQL > database. Features include fast searching but slow insertion deletion > operations upto what I remember. You can google on “what to choose between > SQL and

RE: connect to mongodb

2020-05-21 Thread Vishesh Mangla
NoSQL databases vs SQL databases. What to choose? MongoDB is a NoSQL database. Features include fast searching but slow insertion deletion operations upto what I remember. You can google on “what to choose between SQL and NoSQL databases”. It depends on what kind of operations the system would be

connect to mongodb

2020-05-21 Thread saifullah khan
how can integrate mongodb with django. And is it a good idea? -- 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

Re: Template Variations title not showing

2020-05-21 Thread oldtimer
Hello, i was able to get the variant to show on the product page with using a form. I cannot get the variants to display in the cart. Only difference is my Variation model is a ManyToManyField to the item. I have also changed my variant options to numbers as the dict was expecting an integer

RE: connect to mongodb

2020-05-21 Thread Vishesh Mangla
NoSQL databases vs SQL databases. What to choose? MongoDB is a NoSQL database. Features include fast searching but slow insertion deletion operations upto what I remember. You can google on “what to choose between SQL and NoSQL databases”. It depends on what kind of operations the system would be

Re: Please help me out?

2020-05-21 Thread Kasper Laudrup
Hi Meera, On 21/05/2020 14.50, meera gangani wrote: Actually my Problem is that i want to mark the attendance of all the employee using ip address referenced to the mac address So First I turned ip into whitelisting ip(Trusted IP Addresses ) then what was the implementation I do? It is not

Re: Please help me out?

2020-05-21 Thread o1bigtenor
On Thu, May 21, 2020 at 2:10 PM Kasper Laudrup wrote: > > Hi Meera, > > On 21/05/2020 14.50, meera gangani wrote: > > Actually my Problem is that i want to mark the attendance of all the > > employee using ip address referenced to the mac address > > So First I turned ip into whitelisting

No module named 'allauth.socialaccount.providers.keycloak'

2020-05-21 Thread 'Arno Franken' via Django users
Hello, I have a Django app that uses Allauth (Signin through Office365 account). That works all fine. Now I wanted to test with the Keycloak provider, but for some reason it says: "ModuleNotFoundError: No module named 'allauth.socialaccount.providers.keycloak'" It is very strange, it seems

How to Insert Foreign Key into my user model with Abstractbaseuser

2020-05-21 Thread 박지훈
class User(AbstractBaseUser): password = models.CharField(max_length=128) username = models.CharField(unique=True, max_length=150) is_superuser = models.IntegerField() last_name = models.CharField(max_length=150) phone = models.CharField(max_length=20) email =

Re: Please help me out?

2020-05-21 Thread 'Arno Franken' via Django users
Plees Mera, respect the the recommendation of Vishesh as his answer is completely straight to me and you should be thankful. The point is, what is exactly your question? That's the point I do not understand, your question is really vague. To help you out: - What have you already tried? - What

Re: Please help me out?

2020-05-21 Thread Anuroop Pendela
By default there would be ip address in the request object. But the ip is network ip. In the case where If multiple employees connect to same network and mark attendance then you will see duplicate ip address entries for different employees. For unique and authenticity of attendance you might need

Re: How to Insert Foreign Key into my user model with Abstractbaseuser

2020-05-21 Thread meera gangani
You Can Try this one user = models.ForeignKey(User, on_delete=models.CASCADE) On Thu, May 21, 2020 at 5:41 PM 박지훈 wrote: > class User(AbstractBaseUser): >password = models.CharField(max_length=128) >username = models.CharField(unique=True, max_length=150) >is_superuser =

Re: Please help me out?

2020-05-21 Thread meera gangani
I am sorry for my behaviour actually i am not understood the message properly. So That's why Actually my Problem is that i want to mark the attendance of all the employee using ip address referenced to the mac address So First I turned ip into whitelisting ip(Trusted IP Addresses ) then what was

Re: TypeError: __init__() got an unexpected keyword argument 'Null'

2020-05-21 Thread Samsul Islam
null=True On Thursday, May 21, 2020 at 6:27:10 AM UTC+6, jlgimeno71 wrote: > > Similar to keys in a dictionary, keyword argument names are case > sensitive. Try to pass in the lowercase version 'null': > > Raison_Non_Delivery_cd = models.ForeignKey(Raison, > on_delete=models.CASCADE,

Re: help on jwt

2020-05-21 Thread Chetan Ganji
If you post the error, someone can help you better. Did you look into authentication_classes variable of the endpoint ??? Regards, Chetan Ganji +91-900-483-4183 ganji.che...@gmail.com http://ryucoder.in On Thu, May 21, 2020 at 6:48 PM ola neat wrote: > halo, i'm working on implementing JWT

Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-21 Thread Derek
No; a container is not going to hep with this - see: https://stackoverflow.com/questions/51574618/preventing-access-to-code-inside-of-a-docker-container (they specifically mention Python in the answer). On Wednesday, 20 May 2020 17:20:24 UTC+2, James Shen wrote: > > try to deploy using a