Igor'
You should try mocking it
Please, say me, how?
Mirco
Please, say me, how?
The captcha is a field of the model or you do something inside the view ?
cj
Please, say me, how?
https://docs.python.org/3/library/unittest.mock.html
Mirco
no, in Form
Show the code of that view and the form via pastebin
Igor'
https://pastebin.com/vpJdD59a
Bilal
Hello someone can help me for my project in django please?
Doragonsureiyā
Hello someone can help me for my project in django please?
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Bilal
I have just some questions
Doragonsureiyā
I have just some questions
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Mirco
https://pastebin.com/vpJdD59a
https://django-simple-captcha.readthedocs.io/en/latest/advanced.html#captcha-test-mode You don't need to mock it, just activate the test mode I'm supposing you are using this library
Doragonsureiyā
Thx! You help me!
You're welcome! 😊
Vitaliy
How can I automatically determine which relations I have to add to my query as select_related?
Mirco
How can I automatically determine which relations I have to add to my query as select_related?
Experience 😂 But the general tip is to use it when you have an FK
Eslam
Guys i want course django ecommerce can any one help me
عبد الله
Guys i want course django ecommerce can any one help me
Freecodecamp.org has several of these
Doragonsureiyā
Guys i want course django ecommerce can any one help me
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
🎩𝐃𝐄𝐋𝐎𝐍𝐄 ✹ ⃝⃙🇲🇦
Guyd
🎩𝐃𝐄𝐋𝐎𝐍𝐄 ✹ ⃝⃙🇲🇦
Guys I need any course full for learning django please
Suman
if anyone looking for course I would highly recommend watching very little of YouTube tutorials and learning more from the documentation(Django has an excellent one)... and build a project other tham one seeing in the tutorial.. u are gonna learn a bit slow but with full knowledge which will help in a long run... saying from experience .. cheers
cj
Guys I need any course full for learning django please
why don't you read, literally, 1 message above yours?
🎩𝐃𝐄𝐋𝐎𝐍𝐄 ✹ ⃝⃙🇲🇦
Ali
Its not good
Django Developers: 😐
cj
Its not good
how come are you saying the OFFICIAL documentation is not good?
🎩𝐃𝐄𝐋𝐎𝐍𝐄 ✹ ⃝⃙🇲🇦
🎩𝐃𝐄𝐋𝐎𝐍𝐄 ✹ ⃝⃙🇲🇦
cj
I need any full tuto
that's the best and fullest you'd find in the internet ¯\_(ツ)_/¯
🎩𝐃𝐄𝐋𝐎𝐍𝐄 ✹ ⃝⃙🇲🇦
🎩𝐃𝐄𝐋𝐎𝐍𝐄 ✹ ⃝⃙🇲🇦
Because I have problème in sql lite its not good
cj
Because I have problème in sql lite its not good
neither MySQL is good... your only real choice is PostgreSQL
cj
I need how to connect mySql with django
everything is detailed in the official documentation ¯\_(ツ)_/¯
cj
that's your work ¯\_(ツ)_/¯
cj
then read ¯\_(ツ)_/¯
Ali
that's the best and fullest you'd find in the internet ¯\_(ツ)_/¯
Wanna complain somehow.. Not the best for someone who aims to learn Django step by step specifically when his new to this framework. But it's the best way for best practices and getting deeper into the concepts and structures. Can't complain about that.
Ali
Depending on the scenario, design them all. Nothing too crazy.
cj
and it was his 2nd warn ¯\_(ツ)_/¯
Ali
Guys, how secure a Django project can be? I'm not talking about security checklists, parameters and stuff.. Jus focusing on the performance and customizablity. Thoughts?
Ali
Like how secure a Django project can be while there is a huge template engine integrity inside? (Like all endpoints redirect to a HTML file) Meanwhile, that would've been super nice if you keep your Django project as simple DRF and never use the template engine ever. (Brings less concerns as a backend dev)
Wasim Ansari
I am using Model viewset How to generate different url for each crud operation.
Python Guy
I wanna write view for comment create and got this this snippet https://dpaste.org/hcqk but I am not sure how to assign post id to comment????
Gianfranco
Hi gentlemen, following you advise I got two scoops for Django vers 1.8, do you think that this version is too old ?
cj
Hi gentlemen, following you advise I got two scoops for Django vers 1.8, do you think that this version is too old ?
yes also how did you get that version? they aren't selling that anymore for some years
Python Guy
class Comment(models.Model): post = models.ForeignKey(Post, What exactly it save, postid or something else?
Manav
I'm trying to print the result of an SQL query on a webpage ( django framework ). I've used the following function in the views.py file to run the query def feedback_list(request): cursor = connection.cursor() cursor.execute("SELECT * FROM reciever_feedback") r = cursor.fetchall() print(r) return render(request,'feedbackview.html',{'data', r}) And I'm calling the data tag on the webpage to print the result. The webpage doesn't load and gives me an error stating data tag is invalid, how do I fix this?
Gianfranco
yes also how did you get that version? they aren't selling that anymore for some years
Second hand book shop in Tunisia, as soon I go back to France I'll buy the new version, anyway I want to start right now, I've been waiting too long. I also bought an Udemi course 32 hours, only 30 euros, seems good for that price
Kuth
HI , I build user account management to allow my user can access all by application.
Gianfranco
yes also how did you get that version? they aren't selling that anymore for some years
Bloody Udemi course Is for Django 1.1,. That's why It Is cheap. They say "overall the versions are extremely similar and It shouldn't be an issue effecting your general understanding of bootstrap and Django" you think they are pulling my leg ?
Kuth
HI , I build user account management to provide authentication system and allow my user to access resource my other applications my apps are: - Authentication server: using Django build with Oauth Toolkit as provider. - My Client application is Angular as front end and using Django APIRest frameworks as back-end. I have implemented successful between Auth-server and client backend (Django Rest framworks) But I don't know how to implement for my Angular Front-end and REST framwork (back-end) authenticated work as the same time. Please help me to do that.
Mirco
Thank for your answer, It is first time for me with this. Do you have some tutorials about this implementation?
https://fusionauth.io/blog/2020/03/31/how-to-securely-implement-oauth-angular/ For Django side keep reading Django OAuth toolkit documentation Everything is explained there
Sloth
When we pass QuerySet as an argument to a function in django is it passed by reference or passed by value?
Kuth
I see only authenticated on Angular and Oauth2, in my specific case have a Angular backend one more.
Shahrukh
Hello I'm new to django Can anyone suggest me best course of django on udemy
Shahrukh
Thank you
Mirco
I see only authenticated on Angular and Oauth2, in my specific case have a Angular backend one more.
Your Angular app is frontend And DRF is your backend Then you have used the django oauth toolkit to create your provider that it's always powered by your Django backend but it can be also totally splitted from your backend
Kuth
Yes,
Kuth
My provider is using Oauth Toolkit to provide authentication to my other apps,
Kuth
Now I want to implement my Angular
Kuth
my Angular is DRF, It's different resource
Mirco
my Angular is DRF, It's different resource
Please study better what OAuth is and how it's integrated in a client You are a bit confused
Rushikesh
Guys, anyone have any resource to learn django unit testing and drf unit testing? I want to learn how to unit test my code in django and drf