RIP
if quest.method == "GET": myjsondata = mymodelserialier return render(request,'/mymodellist.html',{'myjsondata':myjsondata}
RIP
But I get nothing work
Zakariae
What is the best free tuto to learn Django?
Doragonsureiyā
the question is, in the user profile there is a field of subscribers of the m2m user, how to make a check that the user would not subscribe to himself?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
RIP
Hi, I need help , I have path('amazonsellers/listjson/',amazonseller_list,name='amazonseller_list'), in my urls.py it render a json , and in my template i use jqerytable like $('#amazonsellertable').bootstrapTable( { url: {% url 'amazonseller_list' %} , but I can not get the remote data, any suggestion for that?
Anonymous
django.urls.exceptions.NoReverseMatch: Reverse for 'abc' not found. 'abc' is not a valid view function or pattern name.
Doragonsureiyā
django.urls.exceptions.NoReverseMatch: Reverse for 'abc' not found. 'abc' is not a valid view function or pattern name.
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
Orca
I want to change LANGUAGE_CODE from 'en-us' to Kazakhstan zone. So I can't find list in documentation. Can someone help?
Check in this list: https://github.com/django/django/blob/main/django/conf/global_settings.py#L56-L145
Maxim
oz you can help Ashu with his Saleor issue at @pythonofftopic if you want
Sobhan
Hi everyone I deployed my app in heroku But my app not displayed correctly Indicates raw HTML mode
YUSUF CR
A server error occurred. Please contact the administrator.
YUSUF CR
and I am admin🤫
Doragonsureiyā
Chirag
Hey, i got task in which i have to use python request module to get the json data ad a response from the file which is of php format. Any body know how to do that please tell me .
Doragonsureiyā
Hey, i got task in which i have to use python request module to get the json data ad a response from the file which is of php format. Any body know how to do that please tell me .
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Chirag
https://docs.python-requests.org/en/latest/
I follow but it actually not working in code. I have done some mistake i f possible can you come to meet i will explain you.
Zeinab
Hi guys Can I write an api to take a word and return the equivalent?
azizbek_abdimuradov
Hi there i have a problem who can help me?
Evarist Emmanuel | LINK
Hi anyone proficient in django Polaris framework
Doragonsureiyā
Hi there i have a problem who can help me?
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
Doragonsureiyā
Hi anyone proficient in django Polaris framework
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
عبد الله
fam.annotate(t_count=Count('tasks')).first().t_count Out[73]: 1 fam.first().tasks.count() Out[74]: 4 cant figure it out. why it so?
S
how to integrate Paypal in server Side
S
i never did this before can anyone give me resources in how to do it
Doragonsureiyā
i never did this before can anyone give me resources in how to do it
These single steps will help you a lot: Step 1️⃣: Open a browser Step 2️⃣: Write down https://google.com or https://duck.com and press Enter Step 3️⃣: In the search box, write down the same words you asked here Step 4️⃣: Read the first results
Brutus
I am making a webapp in which there is some vacancy and participnts need to book their seat. So I want that when they click the button to book seat, vacant seats should decrease by one and the current user's name gets added in the list of participants. Can anyone help me with it ??
Ali
Hello, is it possible to run a Django project in Android with the termux program?
Charly
No
thed do it
rtg
I use CKEDITOR but when i see web it show HTML labels... why?
Charly
I use CKEDITOR but when i see web it show HTML labels... why?
You missed the safe filter in the template
rtg
what is safe filter?
Charly
what is safe filter?
{{ something|safe }}
rtg
thanks! now is ok
rtg
why we use safe? what is this?
Charly
why we use safe? what is this?
by default values are escaped for security reasons, this filter unscapes these values
YUSUF CR
https://www.buildproshop.com/admin
YUSUF CR
DEBUG = TRUE
YUSUF CR
Is this good experience on real projects?
YUSUF CR
Should be DEBUG = TRUE on real projects?
YUSUF CR
Is it ok for security or something else?
RIP
urls.py urlpatterns = [ path('amazonsellers/listjson',amazonseller_list,name='amazonseller_list'), path('amazonsellers/listjson/<pk>',amazonseller_detail,name='amazonseller_detail'), ] my.html <script> var pkid = '12' url: '{% url 'amazonseller_list' %}', it works well url: '{% url 'amazonseller_detail' ppid %}' # Reverse for 'amazonseller_detail' with arguments '('',)'not found. </script> , anyone tell me why, it drives me mind
RIP
nono ,not that reason
RIP
I found some explain and now in despair
RIP
they said { url '' } is calcated in server side
RIP
you can not use it in javascript
RIP
the var is in javascript , so I can not add it to '{% url
RIP
url: '{% url 'amazonseller_detail' 6 %}' is works good , but url: '{% url 'amazonseller_detail' ppid %}' can not work
Ivan
You use ppid in url, bat var is pkid
RIP
and url: '{% url 'amazonseller_detail' 6 %}' .replace(/6/,ppid) is work!!
RIP
ppid pkid all the same var, I only use one of them in the code . but my example is really mistype.
RIP
sad and I waste lots of time in that affair
RIP
thank you for you reply
Ludyvica
HelloI have searching some Reference about timeslot unfortunately I'm not found yet, could you guys send me some detail link about Timeslot for Booking appointment
Gem726526
Anyone have dine chatbot integration using Ai
Gem726526
If yes can you provide the girhub link
Gem726526
It would be great
Henil
I want to use authkey So my code is from django.conf import settings authkey = settings.authkey But it shows an error like ‘Settings’ object has no attribute ‘authkey’ Please help me how can i use this
Morteza
Also you should use CAPITAL words for constants
Morteza
and it's better to use getattr method to get the constant value, so your code won't fail if isn't there
Akhileshwar
Can anyone please send the DB structure used in settinga.py file in django app for pymodm ORM
Akhileshwar
Considering mongodb
Mirco
Considering mongodb
don't do it :)
Mirco
at least, not with Django
Akhileshwar
Why
Doragonsureiyā
Why
Do you want to use Django with MongoDB? Then you shouldn't Please read this article: https://daniel.feldroy.com/when-to-use-mongodb-with-django.html
jūdê
What's the best way to save data from an API in the database after every request
jūdê
there are too many moving parts in this question
Let me describe it better. I want to get the prices of crypto and save them to the database after every request/page refresh I'm asking for the best approach to perform such a task