shubham
Hello
Can anyone explain me what is the use of reverse function in Django. And how does it works.
Maxim
Genemator
Arvindhan
Why it's hard to perform just a back button in django. 😔 Can someone help please ?
Anonymous
i had server error when Debug=false when i changed to True its working how i can solve it help me
Doragonsureiyā
i had server error when Debug=false when i changed to True its working how i can solve it 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
Arvindhan
Yes just want to go to previous page from my template.
Arvindhan
It's a dynamic link generated from viewing a post.
Example :
--- Blog
---- Topic
---- Subtopic
---- Subtopic details
Now I need to go to topics from subtopics. All are dynamically generated
Anonymous
https://mycart2.herokuapp.com/login/
Anonymous
Hey guys I have created shopping and blogging website. But there is issue when I try to login in my website it is showing error you can see. So plz help if any one knows why this error is coming
Anonymous
Thanks in advance. I can also share files
Anonymous
Plz help I need to put my website in resume.
R
Anonymous
Ok
Anonymous
I'm sharing git hub link
Anonymous
https://github.com/Taranjeet105/testing
Anonymous
Anonymous
i had server error 500 when Debug=false .
when i changed to True its working
how i can solve it help me
in Django
python version 3.7.11
django version 3.2
Maxim
Swati
What is the significance of name in path('', views.index,name='index')
What does this name specify?
Anonymous
Wait I used index name at 2 places
RL
Anonymous
It is actually a login page
Swati
Anonymous
Михаил
Hello. How I can render html from request lib with cookie or using I frame with cookie?
Anonymous
Mayur Parmar
Ajax with django code. (country, state, city)... I want this code
Anonymous
Django is a battery included framework. It has lots of tools by default. But fast api is a minimal framework that you need to configure it your self. For example it doesn't include any orm and you should install and use your favorite orm (like sqlalchemy).
It's more about what do you prefer. Using a large framework or build what you want.
Anonymous
I can't recommend any of them because I don't have enough experience. You should choose by their performance, your experience, etc. For example of you're ok with most of Django features (like its orm), it could be a great choice. If you need an async framework fast api is so better, and so on.
Lenin
are udemy courses like full stack web dev worth it? or should i stick to self learning??
Naol
does any one know how to set up django on iis
Naol
wfastcgi is unable to get the wsgi handler environment variable
Ali
jeager
hello, how to receive json data on django?
i use equest.body but i not receive data,
Rohan
Rohan
!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.
jeager
oke wait
Deleted
https://stackoverflow.com/questions/68245689/get-dictionary-value-sent-from-django-in-vuejs-row
Rohan
Just a message above I told you how to send your code
Rohan
That command to bot was on purpose
jeager
thanks @daddyplz , now i solved that
jeager
on flask: jsonString = jsonify(request.get_json(force=True))
on django: = jsonString = json.loads(request.body.decode('utf-8')
is it equivalent?
Anonymous
def product(request ,product_type , cartegory_of_product ,product_id , product_slug,brand_name,):
product = get_object_or_404(Product , id = product_id ,product_slug=product_slug)
latest_products = Product.objects.all()
product_feature = Product_Features.objects.filter(product_feature_id = product.id)
products_by_same_brand = Product.objects.filter(product_brand_name = product.product_brand_name)
products_by_same_type = Product.objects.filter(product_type = product.product_type)
# this is not working
products_by_same_cat = Product.objects.filter(product_type.product_type_category = product.product_type.product_type_category)
context = {
'product':product,
'product_feature':product_feature,
'products_by_same_brand':products_by_same_brand,
}
return render(request, 'core/product/product.html' , context)
Function with . In filter is showing error
Anonymous
If you want any information I will provide you
Anonymous
Like model extra
Anonymous
any solution please
Doragonsureiyā
any solution please
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work.
Have a nice day 😊
Anonymous
but my i am not using that in the function that is just for creating the link
Maxim
Anonymous
for creating the good looking link i used it
Anonymous
otherwise i will get error
Maxim
Anonymous
this error will be
Anonymous
product() got an unexpected keyword argument 'cartegory_of_product' thats i use it
Maxim
Anonymous
smartphone/iphone/apple/1/iphone-5s/ this is the link
Maxim
Anonymous
my friend i just have error in this line # this is not working
products_by_same_cat = Product.objects.filter(product_type.product_type_category = product.product_type.product_type_category)
Maxim
Anonymous
SyntaxError: expression cannot contain assignment, perhaps you meant "=="? but i replace it with == 'str' object has no attribute 'product_type_category'
Maxim
Anonymous
products_by_same_cat = Product.objects.filter(product_type.product_type_category.category_slug == product.product_type.product_type_category.category_slug)
AttributeError: 'str' object has no attribute 'product_type_category'
[05/Jul/2021 03:43:56] "GET /smartphone/iphone/apple/1/iphone-5s/ HTTP/1.1" 500 67615
Maxim
Anonymous
ok my friend thanks a lot if i don't found solution then i will tell you
Maxim
Rohan
Anonymous
thanks a lot to every friend i founded solution i have to replace the . with __ like this : products_by_same_cat = Product.objects.filter(product_type__product_type_category__category_slug = product.product_type.product_type_category.category_slug)
@MaxZhurkin @daddyplz
Anonymous
Anonymous