Ankit
Yes use manger model
Anonymous
Nodejs
Is it possible to do this with Django?
Mirco
Doragonsureiyā
Thanks
You're welcome! 😊
Anonymous
You're welcome! 😊
bmbgk.ir/?q=django-channels
whatsinaname
How to pass the selected option from html page to views.py? Any experts?
Mirco
How to pass the selected option from html page to views.py? Any experts?
POST request data the name attribute of the HTML will be the key to get the value of the selected option
Raj
After deployment of my project to Google cloud, static files are not loading and contact form is not sending mails. I need support to work out these two issues. Suggestions pls.
Raj
see logs, you need to configure statics and email server
Thanks for the reply. Where can I configure? on Google cloud page or in settings.py file ?
Raj
you have to configure both
I did configure on app.yaml and Gmail SMTP settings on setting.py, but not loading static files
Raj
you have to configure both
Which is the best of serving statics, by cloud storage or by app's static folder? I'm having approximately 300 static files.
Ghorz
Which is the best of serving statics, by cloud storage or by app's static folder? I'm having approximately 300 static files.
Well people always keep asking for the best, I don't know why. Even Google doesn't have the best else they will not keep upgrading. Static storage depends on use case and financial boyancy
Ghorz
If your app will be used by thousands of people people and you have the financial resources, use cloud cdn If a small app, use nginx to serve it.
Ghorz
Keep this simple except need be
Raj
Keep this simple except need be
Good explanation. Thank you ☺️
Ivan
hello guys. I'm looking for Django programmer to fix some stuff on website. Is it considered as advertising and i should be banned or i can find some one here? Thanks!
coder
guys django rest api of many to many show id instead have get display title .
s@123
can you help me how i can share filtered user data to page so the filtered data can be seen by any anonymous, it like sharing function where I want to share some messages on that page which stored in class database , then I get the data of user by method .filter(user=request.user) so that page user can see or edit there message but how I can share it one page like profile where any person can view that messages of user in django.
coder
update got error PUT http://127.0.0.1:8000/api/wspaper/[object%20Object]/
William
guys django rest api of many to many show id instead have get display title .
You need to create a separate serializer and nested it to the main serializer. Check nested serializer in drf documentation
William
!paste
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Anonymous
can some suggest a good book for django...🤔
Vadym
can some suggest a good book for django...🤔
I like this one "Two Scoops of Django"
LIBIN
Which is the best backend servers to host the rest apis
Divyesh
Plz any guide me How to insert data using from ajax Form in include ckeditors and file filed
Ghorz
From Ajax post to your views. Get the data from request.POST
Ghorz
Plz any expample provide
Make Ajax post from your template
Anonymous
Plz any expample provide
In Back-end : input_value = { 'exam' : request.POST.get('exam'), } you can get values from ajax with this
NiksPandas
I wish to declare variable inside the Django Template but not understanding the easy way. Please enlighten me.
NiksPandas
What is the difference between django.urls and django.conf.urls
django.conf.urls uses patterns as the first parameter and syntax is way different as well as old. django.urls comes with utility function e.g. reverse. Both are different things
Nathaniel
Hello
Nathaniel
Please I want to write a code that run task at a scheduled time in the future in Python/Django.. In my case I'm using APScheduler for the project.. I've been able to print an information on the terminal every 10seconds But now my problem is how to display it into my browser. .. Anytime I try displaying it in my browser I get this error : raise ValueError('The following arguments have not been supplied: %s' % ValueError: The following arguments have not been supplied: request Any help please?
Ghorz
Or configure an Ajax that monitor on time interval
Kushal
https://pschool.in/writing/numbers
Kushal
I need this type of work. Is there any package in django to work?
coder
guys who have expert in React.js with django rest api. I have work with stack but unexpect get error this http://127.0.0.1:8000/api/Newspaper/[object%20Object]/ could not be update data got error from Front-end send backend." help me for resctify this Thanks"
coder
I need this type of work. Is there any package in django to work?
this most support https://docs.python.org/3/library/turtle.html
Ankit
Can some tell me about Model manager? It is very confusing😭
Ankit
From last two days I am studying about that but I am not satisfied with the content
cj
Can some tell me about Model manager? It is very confusing😭
https://docs.djangoproject.com/en/3.2/topics/db/managers/ you're welcome
Ankit
But I this documentation it is not very clear
Ankit
In this*
Peter
Can some tell me about Model manager? It is very confusing😭
It extends the default objects manager, Here's a classical example. Assume you have a profile model and you want to query the database to have available profiles to invite as friends the default objects manager will get you to (Profile.objects.all) which sounds illogical to return all profiles including yourself so you can extend objects manager ie by class ProfileManager(models.Manager): def get_all_profiles(self, myself): profiles =Profile.objects.all().exclude(user=myself) return profiles Where you just need to call Profile.objects.get_all_profiles() to achieve the desired list from the database
Ankit
Ok thanku
Dev
Python webscraping tutorial send with practicals
Dev
And books
Anonymous
Can we use django administration as a database or we have to use external database like Mysql
Groot
Anyone know how to use text to speech in views? I installed gtts but its giving error not found module name gtts
Bharathwajan
did anyone hosted your djnago site on digital ocean i cloned my repository to local machine changed the allowed hosts and data abase user name and password deleted all old migration files even i migrated successfully but it shows me programming error
Deleted
how to get the form processing data immediately after form submitting in Javascript, before page refresh? https://stackoverflow.com/questions/67803242/get-the-form-processing-data-immediately-after-form-submitting-in-javascript-be
Anand
I am trying to add the to the pages in urls but one has added successfully but other is not
Anand
And the views are created
Subhajit
Anybody has idea on chat application like group chat as well as private chat can you please share reference.. Thanks
Neo
hi all one of my friend suggested me to use only post method in requests, is there any security threat if i use other methods and do you suggest using only post method.
Ramana
We have open positions in Django+ReactJs with 3 to 5 years of experience . Please send your resume to recruitmentindia@itcrats.com
Kishore
hi all one of my friend suggested me to use only post method in requests, is there any security threat if i use other methods and do you suggest using only post method.
POST method gives encryption and thus security to the information that travels from server to the client side during this travel it obviously need security if it is confidential you can use GET method if the information is not much confidential
Kishore
What about put and patch methods.
they are used to update or modify data on server side
Kishore
that is all I know
coder
they are used to update or modify data on server side
PUT has to change entire data. PATCH has to change specific data