Reading the timeout value for a django cache entry (for testing)

2019-11-11 Thread guettli
We had a bug in our production system. The timeout was set incorrectly. Now I want to write a test which checks, that the value of the timeout is correct. I look at the docs and don't see a way to **read** the timeout value of a particular cache-key: https://docs.djangoproject.com/en/2.2/topi

How t do Login using Gmail, twtter or facebook

2019-11-11 Thread Balaji Shetty
Hi can anyone give me web resource to login into Application using Gmail Account. -- *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,* *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India* *Official: bsshe...@sggs.ac.in * * Mobile: +91-9270696267*

Re: How t do Login using Gmail, twtter or facebook

2019-11-11 Thread Andréas Kühne
https://simpleisbetterthancomplex.com/tutorial/2016/10/24/how-to-add-social-login-to-django.html Regards, Andréas Den mån 11 nov. 2019 kl 10:27 skrev Balaji Shetty : > Hi > > can anyone give me web resource to login into Application using Gmail > Account. > > -- > > > *Mr. Shetty Balaji S.Asst

Re: How t do Login using Gmail, twtter or facebook

2019-11-11 Thread Nick Sarbicki
I generally like to implement things like Google auth myself, as it's not too complex and down the line it often makes things easier (e.g. you can easily use a single backend for both a web login and an API login). Google provide plenty of guides on this for their setup e.g: https://www.youtube.c

Re: How t do Login using Gmail, twtter or facebook

2019-11-11 Thread Kasper Laudrup
Hi, On 10/11/2019 23.01, Balaji Shetty wrote: Hi can anyone give me web resource to login into Application using Gmail Account. https://support.google.com/accounts/ If that's not what you're looking for, you probably need to be a bit more specific. Kind regards, Kasper Laudrup -- You

[no subject]

2019-11-11 Thread Paras Jain
how send email in django for password reset -- 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

Re:

2019-11-11 Thread Kasper Laudrup
Hi On 11/11/2019 12.18, Paras Jain wrote: how send email in django for password reset https://lmgtfy.com/?q=django+email+password+reset&s=g -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving em

Re: Error while uplaoding the models data from excel through admin page

2019-11-11 Thread Parth Joshi
Error seems to be in allotment_exam.Examname model. The model code which you have pastes is of “Exam” Regards, Parth Joshi > On 10-Nov-2019, at 11:34 AM, Mohan Goud wrote: > > > > I have to import the data into models from excel sheet from admin site and > the code is > > models.py >

ProfilePhotoStorage library from django.core.files.storage

2019-11-11 Thread Uttam Dwivedi
Hi, I am getting following error - ImportError: cannot import name 'ProfilePhotoStorage' from 'django.core.files.storage' can you please tell me what version of django could be good for this error to solver -- You received this message because you are subscribed to the Google Groups "Dj

Hi to all, I want to represent the data in the form of charts which is in the dictionary format how? Please Tell me the solution

2019-11-11 Thread Devendra reddy
-- 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

MongoDB Connection Error with Python

2019-11-11 Thread 'Abhishek Sharma' via Django users
class MongoConnect(object): def __init__(self,HOST,PORT,DB,USERNAME,PASSSWORD): self.HOST=HOST self.PORT=PORT self.USERNAME=USERNAME self.PASSSWORD=PASSSWORD self.DB=DB def getMongoConnetion(self): client= MongoClient(self.HOST, self.PORT, username=self.USERNAME, password=self.PASSSWORD) return cl

Re: MongoDB Connection Error with Python

2019-11-11 Thread Kasper Laudrup
Hi Abhishek, On 11/11/2019 15.19, 'Abhishek Sharma' via Django users wrote: Error## Traceback (most recent call last):   File "self.py", line 36, in     db=instance.getDBObject('techcraft')   File "self.py", line 28, in getDBObject     connection = getMongoConnetion()

https setup

2019-11-11 Thread Manos Zeakis
Hello everyone I want to setup my django server to serve as https. I have found (and tried) some information about 1. Cookies Settings configuration 2. Environmental variable HTTPS 3. A setting that has to do with Proxy SSL Header 4. A need to configure NginX or Gunicorn but no solid informati

Re: https setup

2019-11-11 Thread Kasper Laudrup
Hi Manos, On 11/11/2019 15.30, Manos Zeakis wrote: Hello everyone I want to setup my django server to serve as https. I have found (and tried) some information about 1. Cookies Settings configuration 2. Environmental variable HTTPS 3. A setting that has to do with Proxy SSL Header 4. A need to

Re: https setup

2019-11-11 Thread Peter van der Does
https://simpleisbetterthancomplex.com/tutorial/2016/05/11/how-to-setup-ssl-certificate-on-nginx-for-django-application.html On 11/11/19 9:30 AM, Manos Zeakis wrote: > Hello everyone > > I want to setup my django server to serve as https. > > I have found (and tried) some information about > 1. Coo

reg: Django forms and models

2019-11-11 Thread 'Amitesh Sahay' via Django users
Hello Members, I am creating a simple django forms and integrating it with models. I have followed the django docs to perform the task, but I believe that I am doing some mistake due to which I am getting "ValueError at /blog/contact/". Below is the full error stack: Environment: Request Metho

Re: reg: Django forms and models

2019-11-11 Thread Kasper Laudrup
Hi Amitesh, In this view: On 11/11/2019 20.36, 'Amitesh Sahay' via Django users wrote: def contact(request): if request.method =='POST': name_r = request.POST.get('name') email_r = request.POST.get('email') phone_r = request.POST.get('phone') comment_r

Re: Django - How to add a link to a table that will open another page(django app) from an html template and pass a variable with it.

2019-11-11 Thread Patrick Carra
This worked for me but upon more testing I discovered some values such as WAVE/123456//IMP get changed to WAVE/123456//IMP during the process of passing this parameter as a url and django interpreting it. As a result I get an error: Circuitinfotable matching query does not exist. I'm assuming

Multi stage form

2019-11-11 Thread Suraj Thapa FC
After creating a multi-stage form How do I restrict the access to the particular part of the form to a particular user. Suppose I have 3part of the form... User1 can access part1 of the form after that user2 can access the part2 of the form and so on... . . . Admin cna View and access all part

Re: https setup

2019-11-11 Thread Manos Zeakis
Thank you! On Monday, 11 November 2019 19:54:36 UTC+2, Peter van der Does wrote: > > > https://simpleisbetterthancomplex.com/tutorial/2016/05/11/how-to-setup-ssl-certificate-on-nginx-for-django-application.html > On 11/11/19 9:30 AM, Manos Zeakis wrote: > > Hello everyone > > I want to setup my dj

Re: https setup

2019-11-11 Thread Manos Zeakis
Thank you very much! On Monday, 11 November 2019 19:37:06 UTC+2, Kasper Laudrup wrote: > > Hi Manos, > > On 11/11/2019 15.30, Manos Zeakis wrote: > > Hello everyone > > > > I want to setup my django server to serve as https. > > > > I have found (and tried) some information about > > 1. Coo

Re: ProfilePhotoStorage library from django.core.files.storage

2019-11-11 Thread Uttam Dwivedi
solved !!! thank you On Mon, Nov 11, 2019 at 10:47 PM Uttam Dwivedi wrote: > Hi, > > I am getting following error - > > ImportError: cannot import name 'ProfilePhotoStorage' from > 'django.core.files.storage' > > > > can you please tell me what version of django could be good for this error > to