Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread DJANGO DEVELOPER
and last settings of my developer app On Wed, Jun 2, 2021 at 6:44 AM DJANGO DEVELOPER wrote: > site url from my app. > > On Wed, Jun 2, 2021 at 6:43 AM DJANGO DEVELOPER > wrote: > >> I have 2 sites in my django admin side. one is localhost:8000 and other >> is 127.0.0.1:8000 >> >> On Wed, Jun

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread DJANGO DEVELOPER
site url from my app. On Wed, Jun 2, 2021 at 6:43 AM DJANGO DEVELOPER wrote: > I have 2 sites in my django admin side. one is localhost:8000 and other is > 127.0.0.1:8000 > > On Wed, Jun 2, 2021 at 1:05 AM Kasper Laudrup > wrote: > >> On 01/06/2021 21.49, DJANGO DEVELOPER wrote: >> > I am

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread DJANGO DEVELOPER
The connection to https://d0f7dea89f18.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:8000. facing this error On Wed, Jun 2, 2021 at 9:30 AM Omkar Parab wrote: > Run "ngrok.exe http 8000" command in ngrok

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread Omkar Parab
Try using HTTPS. On Wed, Jun 2, 2021, 10:53 AM DJANGO DEVELOPER wrote: > it is working now but giving the errors attached in the photo. when I > click on send anyway, then it shows error of csrf forbidden. I am getting > confused again and again. > > On Wed, Jun 2, 2021 at 10:18 AM Omkar Parab

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread Omkar Parab
try this.  https://stackoverflow.com/questions/61868629/page-not-found-error-when-adding-facebook-authentication On Wed, Jun 2, 2021, 11:12 AM DJANGO DEVELOPER wrote: > actually I am using django-allauth and it doesn't need to have a form to > login via facebook. > > On Wed, Jun 2, 2021 at

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread DJANGO DEVELOPER
let suppose I have installed ngrok, then should have I to run command of ngrok.exe in project's directory or anywhere? On Wed, Jun 2, 2021 at 8:39 AM Omkar Parab wrote: > Facebook login won't work with these local URLs. Only google login will > work. Don't waste your time. Either host it on

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread DJANGO DEVELOPER
oh, I had to run the local server first. it is running successfully but giving the same error of urls. On Wed, Jun 2, 2021 at 9:36 AM DJANGO DEVELOPER wrote: > The connection to https://d0f7dea89f18.ngrok.io was successfully tunneled > to your ngrok client, but the client failed to establish a

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread DJANGO DEVELOPER
do have I to add ngrok url in my facebook app that I created to get client secret? On Wed, Jun 2, 2021 at 9:40 AM DJANGO DEVELOPER wrote: > oh, I had to run the local server first. it is running successfully but > giving the same error of urls. > > On Wed, Jun 2, 2021 at 9:36 AM DJANGO

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread DJANGO DEVELOPER
yes, I used https. as you can see in the first photo, it is showing that, it is a secure connection On Wed, Jun 2, 2021 at 10:29 AM Omkar Parab wrote: > Try using HTTPS. > > On Wed, Jun 2, 2021, 10:53 AM DJANGO DEVELOPER > wrote: > >> it is working now but giving the errors attached in the

Re: Inlined hierarchy models in django admin site.

2021-06-01 Thread DJANGO DEVELOPER
btw have you applied in your models what I told you to do? On Wed, Jun 2, 2021 at 10:31 AM Ayush Bisht wrote: > yes, its true, but here it works as candidate key. so that we can identify > the patient based in ICMR id's. > > On Tuesday, June 1, 2021 at 1:34:24 AM UTC-7 abubak...@gmail.com

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread DJANGO DEVELOPER
I have 2 sites in my django admin side. one is localhost:8000 and other is 127.0.0.1:8000 On Wed, Jun 2, 2021 at 1:05 AM Kasper Laudrup wrote: > On 01/06/2021 21.49, DJANGO DEVELOPER wrote: > > I am using django-allauth library and i am following this > > tutorial. >

Re: Inlined hierarchy models in django admin site.

2021-06-01 Thread Ayush Bisht
yes, its true, but here it works as candidate key. so that we can identify the patient based in ICMR id's. On Tuesday, June 1, 2021 at 1:34:24 AM UTC-7 abubak...@gmail.com wrote: > class Patient(models.Model): > patient_id = models.CharField(max_length=60) # no need for adding > patient

Re: Inlined hierarchy models in django admin site.

2021-06-01 Thread DJANGO DEVELOPER
I think this the only way to lin different models with eachother. and I would like to hear more about linking the models with each other if there is anyone who can describe it to both of us. On Wed, Jun 2, 2021 at 10:38 AM Ayush Bisht wrote: > thanks, .. it works for me.. but is there any other

Re: Where can I work as a freelancer (Django dev)

2021-06-01 Thread Allison Tretina
I found someone who needed a project and asked them if they’d write me a recommendation on completion. Then, I’ve charged a bit for the second project. I’ve had to go to clients. Small businesses. They’ve never come to me, at least not yet. I served the website on my Raspberry Pi and charged for

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread Omkar Parab
Facebook login won't work with these local URLs. Only google login will work. Don't waste your time. Either host it on Heroku or install ngrok and try again. On Wed, Jun 2, 2021, 7:16 AM DJANGO DEVELOPER wrote: > and last settings of my developer app > > On Wed, Jun 2, 2021 at 6:44 AM DJANGO

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread Omkar Parab
Run "ngrok.exe http 8000" command in ngrok terminal. On Wed, Jun 2, 2021, 9:23 AM DJANGO DEVELOPER wrote: > let suppose I have installed ngrok, then should have I to run command of > ngrok.exe in project's directory or anywhere? > > On Wed, Jun 2, 2021 at 8:39 AM Omkar Parab wrote: > >>

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread DJANGO DEVELOPER
it is working now but giving the errors attached in the photo. when I click on send anyway, then it shows error of csrf forbidden. I am getting confused again and again. On Wed, Jun 2, 2021 at 10:18 AM Omkar Parab wrote: > Yes. > > On Wed, Jun 2, 2021, 10:12 AM DJANGO DEVELOPER > wrote: > >>

Re: Inlined hierarchy models in django admin site.

2021-06-01 Thread Ayush Bisht
thanks, .. it works for me.. but is there any other way to do these ??. as PatientVaccineStatus already connected to Patient model, and Vaccine connected to PatientVaccineStatus model. Can't we merged all the tables of descendants to their parent model in this hierarchy fashion without linking

Inlined hierarchy models in django admin site.

2021-06-01 Thread Ayush Bisht
class Patient(models.Model): patient_id = models.CharField(max_length=60) class PatientVaccineStatus(models.Model): patient = models.ForeignKey(Patient, related_name="patient_vaccine_status") class Vaccine(models.Model) vaccine = models.ForeignKey(PatientVaccineStatus,

Re: Inlined hierarchy models in django admin site.

2021-06-01 Thread DJANGO DEVELOPER
class Vaccine(models.Model) vaccine = models.ForeignKey(PatientVaccineStatus, related_name="vaccine_status") patient = models.ForeignKey(Patient, related_name="patient") # new line apply this line and your patient model will be linked with Vaccine model On Tue, Jun 1, 2021 at 11:06 AM

Hi all, i'm using 2 modelforms in one view function one as foreign key but when i submit babyform2 not storing in database. anyone please fix this

2021-06-01 Thread Hugh Frost
def detail(request): if request.method == 'POST': baby_form1 = BabyForm1(data=request.POST) baby_form2 = BabyForm2(data=request.POST) if baby_form1.is_valid() and baby_form2.is_valid(): baby_form1.save() print(baby_form1)

Re: Hi all, i'm using 2 modelforms in one view function one as foreign key but when i submit babyform2 not storing in database. anyone please fix this

2021-06-01 Thread Lalit Suthar
because you're passing commit=False with form2 On Tue, 1 Jun 2021 at 14:10, Hugh Frost wrote: > def detail(request): > if request.method == 'POST': > baby_form1 = BabyForm1(data=request.POST) > baby_form2 = BabyForm2(data=request.POST) > > if baby_form1.is_valid()

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread DJANGO DEVELOPER
I am getting "page not found" error. this error is pretty known to me but I tried all combinations of urls but still getting page not found error. On Tue, Jun 1, 2021 at 7:15 PM Omkar Parab wrote: > What error you're getting? > > On Tue, Jun 1, 2021, 7:37 PM DJANGO DEVELOPER > wrote: > >> I

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread Kasper Laudrup
On 01/06/2021 19.30, DJANGO DEVELOPER wrote: > I am getting "page not found" error. this error is pretty known to me > but I tried all combinations of urls but still getting page not found error. > You most definitely haven't tried all combinations of URLs since even if you would have automated

Re: Inlined hierarchy models in django admin site.

2021-06-01 Thread DJANGO DEVELOPER
class Patient(models.Model): patient_id = models.CharField(max_length=60) # no need for adding patient id because django automatically creates ids patient_vaccine = models.ForeignKey(PatientVaccine, related_name="patient_vaccine") vaccine = models.ForeignKey(Vaccinet,

Re: SVG widget for the Admin

2021-06-01 Thread Derek
You haven't defined where in the admin interface you want this image to be displayed? A table? I have not tried this, but could you not create an additional field on your model that returns the HTML-encoding needed to display the SVG? E.g. class MyModel(): svg_text = CharField()

best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread DJANGO DEVELOPER
I need to develop a social login functionality for facebook using django allauth and django rest auth. I am struggling from 3 days and I would like to someone who can refer me a good tutorial or any other written guidance. till now I have only implemented some basic code and following this

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread Omkar Parab
What error you're getting? On Tue, Jun 1, 2021, 7:37 PM DJANGO DEVELOPER wrote: > I need to develop a social login functionality for facebook using django > allauth and django rest auth. I am struggling from 3 days and I would like > to someone who can refer me a good tutorial or any other

In immediate help of a long time pending request, kindly help.

2021-06-01 Thread Joel Tanko
If you want to show the items relative to the currently logged in user, try adding this option => limit_choices_to={'user' : 'user'}, to your items field in models.py On Tuesday, 1 June 2021, Aritra Ray wrote: > Right, thank you so much. > > Regards. > > On Tue, 1 Jun, 2021, 8:27 pm oba

django app with okta authentication --

2021-06-01 Thread SNJY G
Team, I am running an application on django2.2 which needs to be integrated with okta for user authentication. Okta team has provided a Metadata URL which contains Okta URL, Okta Entity ID and Okta certificate but I am not sure where I need to configure it in django. Could someone please share

Re: In immediate help of a long time pending request, kindly help.

2021-06-01 Thread Aritra Ray
Right, will try and let you know. On Tue, 1 Jun, 2021, 9:23 pm Joel Tanko, <7thog...@gmail.com> wrote: > If you want to show the items relative to the currently logged in user, > try adding this option => limit_choices_to={'user' : 'user'}, to your items > field in models.py > > > > On Tuesday,

Multiprocessing using python shows error “I/O operation on closed file”

2021-06-01 Thread Aurora Eugene
Hi All, I Am new to concepts of programming, just started learning with Python. Started writing a program for multiprocessing using Python . The program is to print contents of CSV file parallel. CSV file contains : folder path, EXTENSION for example C:\users , .CSV C:\Windows, .PDF etc so,

Multiprocessing using python shows error “I/O operation on closed file”

2021-06-01 Thread Joel Tanko
For someone new to programming, that's a bit complicated for you don't you think? Your problem lies in your "with" block with open('CONFIG.csv') as f: reader = csv.reader(f) return [col for row in reader for col in row] 1. You can only return once and then the function is exited, even

Re: Multiprocessing using python shows error “I/O operation on closed file”

2021-06-01 Thread Aurora Eugene
Hi , I updated the code , and currently is working fine Anyway thank you for your help :) Regards , Aurora On Tue, 1 Jun 2021 at 9:59 PM, Joel Tanko <7thog...@gmail.com> wrote: > For someone new to programming, that's a bit complicated for you don't you > think? > > Your problem lies in your

IRC Archive

2021-06-01 Thread Douglas G
Hey, with the change from Freenode to Libera I was wondering if anyone had preserved Freenode IRC logs and made those available somewhere. Thanks, Douglas -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: PayPal Integration

2021-06-01 Thread Eric 247ERICPOINTCOM
Hi Sharif, This is the code from the page I am trying to implement. It is a form which creates a post and the user will first pay by paypal, then after payment I would like the post of the user to be submitted automatically. {% load crispy_forms_tags %} {% block searchform %} Search

Re: django app with okta authentication --

2021-06-01 Thread Ryan Nowakowski
On Tue, Jun 01, 2021 at 10:18:24PM +0530, SNJY G wrote: > I am running an application on django2.2 which needs to be integrated with > okta for user authentication. > Okta team has provided a Metadata URL which contains Okta URL, Okta Entity > ID and Okta certificate but I am not sure where I need

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread DJANGO DEVELOPER
I am using django-allauth library and i am following this tutorial. https://medium.com/geekculture/setup-social-authentication-in-django-rest-framework-1afdb675375f On Tue, Jun 1, 2021 at 10:37 PM Kasper Laudrup wrote: > On 01/06/2021 19.30, DJANGO DEVELOPER wrote: > > I am getting "page not

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread Kasper Laudrup
On 01/06/2021 21.49, DJANGO DEVELOPER wrote: > I am using django-allauth library and i am following this > tutorial.  > https://medium.com/geekculture/setup-social-authentication-in-django-rest-framework-1afdb675375f >

how to set lead user flag

2021-06-01 Thread Hugh Frost
How can i set lead user flag that can give some editable permisions in stored data in html page and i want to redirect when the user is second time login -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Where can I work as a freelancer (Django dev)

2021-06-01 Thread Nikola Pavlovic
Hello, I've been learning *Django* for *1 year*. I've made *2 personal projects* for *practice*. But, I'm not *friendly* with the *freelancing process* on the *internet* *yet*. *Any suggestions. Where should I begin?* -- You received this message because you are subscribed to the Google Groups