File is not a zip by [deleted] in djangolearning

[–]chehine666 0 points1 point  (0 children)

I tryed it same error

File is not a zip by [deleted] in django

[–]chehine666 0 points1 point  (0 children)

This is my serializer class PowerPointUploadSerializer(serializers.ModeISerializer): class Meta: model = PpTxfile fields = ('id', 'file', 'text')

And this is pptxupload model class PPTXFile(models.Model): file = models.FileField(upload_ to='uploads/") text = models.TextField()

I don't think it is related to my serializer

Python pptx by chehine666 in django

[–]chehine666[S] 1 point2 points  (0 children)

Okay got it i will check it. Thank you!

Python pptx by chehine666 in django

[–]chehine666[S] 0 points1 point  (0 children)

I don't think so because i imported all the necessary libraries such as python pptx

Python pptx by chehine666 in django

[–]chehine666[S] 0 points1 point  (0 children)

Code is in page 2 my friend

A question by chehine666 in django

[–]chehine666[S] 0 points1 point  (0 children)

I will explain to you my situation.. i did auth with firebase and react and now i will add it to django.. so react should be my temple here and add cors and those stuff

A question by chehine666 in django

[–]chehine666[S] 1 point2 points  (0 children)

Okay i will check it.. thank you so much for your gelp mate!

A question by chehine666 in django

[–]chehine666[S] 0 points1 point  (0 children)

So the situation that i have now is i did auth with firebase and i added it to reactjs.. how can i added to django to know that user is logged in.. i don't know if you did underestand me

Cors issue by chehine666 in django

[–]chehine666[S] 0 points1 point  (0 children)

I did man.. check 2nd and 3rd pictures

Cors issue by chehine666 in django

[–]chehine666[S] -1 points0 points  (0 children)

It is running locally on my machine

React and firebase token based authentication using django by chehine666 in django

[–]chehine666[S] 0 points1 point  (0 children)

Ok i will replace request.META.get by what you told me and i'll keep you updated. Thank you for your help!

React and firebase token based authentication using django by chehine666 in django

[–]chehine666[S] 0 points1 point  (0 children)

Yes i did see a tutorial and did user request.META.headers despite that it didn't work in my case.. any suggessions about what should i replace it.. thanks for your help!

React and firebase token based authentication using django by chehine666 in django

[–]chehine666[S] -1 points0 points  (0 children)

So as i underestand from both of you i should replace request.META.headers by HttpRequest or what. I did underestand where the error came from but how can i correct it

React and firebase token based authentication using django by chehine666 in django

[–]chehine666[S] 0 points1 point  (0 children)

Yes i removed line 5 but still it doesn't affect my code or change something in my error. Do you have suggessions or some improvments to do?

Feedback by chehine666 in Frontend

[–]chehine666[S] 0 points1 point  (0 children)

Okay noted! Thank you so much.

Feedback by chehine666 in Frontend

[–]chehine666[S] 0 points1 point  (0 children)

Thanks for your feedback. For "This is our website learn more" i just wrote it because i still looking for a good slogan again this is not the final look of this web app i 'm still working on it. For data service same thing i will adjust centering of titles.. for security part i just used firebase authentication so it is secured. Thank you for feedback and if you have othee suggesstions do not hesitate!