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?
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
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ā
T
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 .
Azizbek Xushnazarov
Doragonsureiyā
Azizbek Xushnazarov
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
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
Ali
Charly
rtg
I use CKEDITOR but when i see web it show HTML labels... why?
Charly
rtg
what is safe filter?
rtg
thanks! now is ok
rtg
why we use safe? what is this?
rtg
YUSUF CR
https://www.buildproshop.com/admin
YUSUF CR
DEBUG = TRUE
YUSUF CR
Is this good experience on real projects?
Charly
YUSUF CR
Should be DEBUG = TRUE on real projects?
YUSUF CR
Is it ok for security or something else?
Doragonsureiyā
Madhanagopal
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
Ivan
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
Because your pkid is string
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
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
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
Д
Д