Hasan
To access on via API u will have to use the list As it can give u list which can have multiple data
ok thanks how can I send kwargs to Django URL? I sent with this way: http://127.0.0.1:8000/chat/messages/?a=ali/ doesn't receive in view kwargs dictionary is empty
Shubham
ok thanks how can I send kwargs to Django URL? I sent with this way: http://127.0.0.1:8000/chat/messages/?a=ali/ doesn't receive in view kwargs dictionary is empty
It's easy Send it as your_url/?a=Ali In the list action receive it as request.query_params.get("a")
2X
I am getting some bugs in my existing django project
2X
Needed help from an experienced person who can help me in resolving the bug
Carlitos
What’s the question?
Dami_codr
Please recommend API that I can use in my Django api to verify user ID(kyc)
Anonymous
Can anyone tell me free sources to learn Django
ngdream
Hi all i want to pay my website's user like youtube pay his users but i dont know how can do it Pleaze help me
Anonymous
Official document
Is it enough? If so pls tell me
Doragonsureiyā
Can anyone tell me free sources to learn Django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
😇ANGELO™️🎧
What's the function of the init.py file?
😇ANGELO™️🎧
Again, what's the best database engine for Django?
SuperN00b
Again, what's the best database engine for Django?
Right tool for right job, best or worst it depends on your project , btw for general product, postgres is a good choice I guess
Vadim
Hi. Is it possible to pass the value of the selected "<select> <option>Value</option> </select>" in view?
theDisgrace
hi.. does anyone know why __contains and __icontains both are giving out the same result, i.e., both are doing case-insensitive containment test?
Anshu
Shilpy
How to give default value in ManytoMany field?
Deleted
Hey guys, how to set auto log out when there's no user operation after 10 minutes in Django?
Deleted
I set to SESSION_COOKIE_AGE = 600
Deleted
But it auto log out far below 10 minutes(around 3 minutes it auto log out)
Artur
Hi. can you please tell me which database structure is suitable if there are 3 entities: employee, position, department? one employee can only be on one position. and can change position and department over time
Anshu
How to give default value in ManytoMany field?
Use default key in manytomanyfield
Kruger
What is most important topics one can learn in django and apply for jobs? Can you please give a list? Like: 1. Urls 2. Views 3. Models Etc.
tech-tycoon
How can I integrate xmpp in my django app for chatting application
Dami_codr
Please recommend API that I can use in my Django api to verify user ID(kyc)
Vadim
I need your help, the GET request wanted to get a value and display it in a template. But something is wrong.
Vadim
https://dpaste.org/S1aR
Vadim
returns the link "http://127.0.0.1:8000/disVal/?csrfmiddlewaretoken=s....%28big+booth%29" but I want to return the value in index.html
Vadim
return value None
Vadim
If POST is used, the situation does not change, returns None
Maxim
If POST is used, the situation does not change, returns None
you need POST equivalent for lr_value = request.GET.get('lr_select',None)
Anonymous
Hi, developers. I need your help. I have a project : (Educational web site.). Django 3.1 Django RestFramework Django-Jet-Reboot Django-analytical I am trying to get yandex metrica analytical infos, diagrams, charts, tables to django-admin panel. How can I do this?Any other packages about helping me?
HD
i have tihs error: The view GenrateInvoice.views.invoice didn't return an HttpResponse object. It returned None instead. how to solve it? i see all link in stackoverflow but don't work for me
Doragonsureiyā
i have tihs error: The view GenrateInvoice.views.invoice didn't return an HttpResponse object. It returned None instead. how to solve it? i see all link in stackoverflow but don't work for 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
HD
how can i send code? where is the 5 rule
Maxim
i can't send photo to group
we don't want to see a photo
Maxim
how can i send code? where is the 5 rule
any of: the pinned post the group info
HD
http://linkode.org/#j2KtZhDT2XMQI7QvievZD1
Vadim
you need POST equivalent for lr_value = request.GET.get('lr_select',None)
I want to remove this view.py value and depending on the action execution conditions
A҉l҉i҉
why i cann't use Boolean field in filter() method? for example i want to filter like this: Product.objects.filter(is_new=True) but it made this error: "No exception message supplied"
Artur
There are 3 models: employee, department, position. What should be the structure so that in the employee’s admin panel you can select a department, then a position, but so that only those positions that belong to a its department are displayed for the position?
A҉l҉i҉
you can
so, why did this error raised?
Mirco
so, why did this error raised?
that error makes no sense as it is, if you share code and error traceback we can help u
A҉l҉i҉
that error makes no sense as it is, if you share code and error traceback we can help u
class GetNewProducts(ListAPIView): serializer_class = ProductSerializer def get_queryset(self): return Product.objects.filter(is_new=True).order_by("-updated_at") amd error: DatabaseError at /product/new/ No exception message supplied
HD
i have tihs error: The view GenrateInvoice.views.invoice didn't return an HttpResponse object. It returned None instead. how to solve it? i see all link in stackoverflow but don't work for me
A҉l҉i҉
do u have debug activated ?
yeah and in debug mode in pycharm
HD
you are not returning an http response so check what your view returns
MY cod: http://linkode.org/#3q9nqNvfd2ucKCCWm1SME5
Mirco
yeah and in debug mode in pycharm
share the error via PASTEBIN you can see in your shell
Mirco
MY cod: http://linkode.org/#3q9nqNvfd2ucKCCWm1SME5
please use snake case for function names, study Python's PEP8
Mirco
MY cod: http://linkode.org/#3q9nqNvfd2ucKCCWm1SME5
if your code goes inside the except, your view returns None
Carlitos
you should read more
HD
you should read more
how to reslove problem thats my college project
HD
I have little time
Mirco
😒
It's the best suggestion, If you don't like it then you will waste loooot of your time and having useless headaches
Mirco
I have little time
You won't go further then
Vxvek
Can we declare a variable in django template other than {% with% }
Ali Hasan
Hello everyone , I have a quick question. Assume I have 3 models (Person , Country , City) where : Country has : name City has: name Country -> foreign to Country Person has: name Country -> country City -> City How can I make sure the city being selected is associated with his country ? And how can I make that in the admin panel when creating a new person and choosing his country , only the cities related with his country will be listed to choose from ? Thanks in advance.
Ali Hasan
Ali Hasan
It's the same idea actually , I made the positions to have a foreign key to department , but still couldn't figure the rest out
Ali Hasan
I'm guessing many cities can be linked to one country, right?
that's totally right , but when creating the person in the admin panel , all the cities will be listed in the drop down list , not depending on the country selected (in the other example , all the positions will be listed not just the one linked with the department selected)