Doragonsureiyā
Can Someone help me out
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
Hiku
No, I'm learning django Thanks, I've found a solution by adding STATICFILES_DIRS
now my css file can't be updated. i have added some styles, and it is not working and when i check view page source it is not updating. does anyone know How to fix it
Ss
I want one one web application in python can anyone make for me
Aryan
I'm having some trouble with hosting django channels using ngnix and gunicorn. . . Someone with experience in hosting, please help me with this.
Ilsaf
Hey guys. I like to test my async func for some request per second. How i can imitate this lets say 100 reqs per second?
Alik
need help with django-mptt, i cannot display them properly in bootstrap 5 dropdown
Alik
need help creating categories and subcategories in django
ky
Type Error context must be a dict rather than str
Nikolay
The django-machina application for some reason returns a 500 instead of a 404 error when debugging is disabled. When DEBUG = True, everything is normal, it returns 404. At the same time, the rest applications of the site works fine, return 404 errors as it should be in both, debug and production modes. I couldn't google anything. Please tell me where to look.
kam
I guess it is advanced Question. How to dynamically create view in DRF, i.e, one view class is responsible for different API endpoints. I see this can be implemented by naming url path as view serializer and based upon the same url path to filter database. Classes can be created dynamically, but i can't figure out how. Upon receiving request, View Class should parse url -> implement this somehow in queryset attribute and serialiizer class
kam
what's the application?
i have a lot of basic views and the only things that change are querysets and serializer_classess. Only GET requestst
Д
so if you do /endpoint/param=foo you get behavior one and if you do /endpoint/param=bar you get behavior two but the second endpoint can be served from some other place called /whatever/param=bar
Д
the View itself shouldn't be aware of where it's being served from
Д
because at the end of the day, that's a routing question
kam
this situation is basically describing serving the same View from two places but having it parametrized differently, i.e. by GET parameters or POST parameters
and how to differ queryset attribute according to that param. Can you point to docs or give me the name of a method pls?
Д
and how to differ queryset attribute according to that param. Can you point to docs or give me the name of a method pls?
well all you need to know is how to differentiate those two incoming parametrizations
Д
and how to differ queryset attribute according to that param. Can you point to docs or give me the name of a method pls?
you'll need to rewrite the functions responsible for returning the queryset. you can't let django do that automatically
Д
so i should mess with get_queryset?
I'm not sure if it's better to mess with get_queryset or the list etc. functions of the viewset. get_queryset probably better
Д
or well, if that gets called automatically, that's not gonna help you
Д
you need to do the calls\filters by hand for the Queryset (at some point)
kam
or well, if that gets called automatically, that's not gonna help you
yep, thats get called automatically in GenericViews
Нормуродов
Hello everybody ))) Can you share or advise me any youtube channel to learn Django from scratch or any Udemy course ??? Thanks
Нормуродов
both YouTube and Udemy has a search box
Yea, i know. But Anybody teach in anyway )))
Prometheus
Hello everybody ))) Can you share or advise me any youtube channel to learn Django from scratch or any Udemy course ??? Thanks
Hey dude, Corey Schafer is a good explainer. Simple and to the point. Dennis Ivy is good, but, a bit lousy (not as good as Corey). Coding for entrepreneurs also has good tutorials. I'd personally recommend going through Corey's Videos first.
Prometheus
All of Django tutorials in Udemy are bad. I don't recommend any.
Prometheus
From my personal learning experience, it'll be easy to learn/remember django, if you understand it's structure and how things (Models, Views, Templates, and Urls) fit together. Once you truly understand this, just create a CRUD application yourself. The rest just comes naturally with practice.
R.
Yea, i know. But Anybody teach in anyway )))
Search for TELUSKO in Youtube. He has step by step courses for Django and Python as well.
elf
Does anyone know how to make a HTMX request with a payload? All the examples in the doc keep showing a simple get to a url with no data.
Prometheus
HTMX seems to have hx-vals attribute, but it doesn't work.
Брат
Which way is appropriate to send to the front: 1. { 'status': 200, 'message': 'Testimonials fetched', 'data': response.data } 2. { 'success': ['Testimonials fetched'] } and if error: { 'error': ['Testimonials didn't fetch'] }
sakshi
can any one help. to. resolve my error. please it's really important for. me
Doragonsureiyā
can any one help. to. resolve my error. please it's really important for. me
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
Breeze
pls have help i want to know the cause of Error 503. Service Unavailable i just hosted my django app on namecheap and i got that error web url = www.kliqaffiliate.com
sakshi
I m not able to connect data through frontend to backend
sakshi
it's giving table not found error
sakshi
while clicking on submit button
Breeze
read the logs ¯\_(ツ)_/¯
This is my error log /usr/local/lsws/fcgi-bin/lswsgi_wrapper: line 9: exec: /opt/alt/python39/bin/lswsgi: cannot execute: No such file or directory
Breeze
it's coming from passenger_wsgi.py i guess... but i don't know how to fix it
cj
pls give me a clue
looks like you're using some weird configuration for using Apache and/or OpenLiteSpeed ¯\_(ツ)_/¯ you should read the docs of the tools you're using to deploy your app, sadly we can't do anything for that in this group, you should move to a DevOps/Sysadmin group by yourself
Sang
Anybody with a book recommender system here?
sakshi
this is the error I'm getting
Sang
Anybody with a book recommender system here?
Or if you have worked on this project before...
Anonymous
https://stackoverflow.com/questions/71428749/access-multiple-many-to-many-relationships-in-a-django-template
Anonymous
hi .. please someone who have knowlage in websocket
Doragonsureiyā
hi .. please someone who have knowlage in websocket
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
:x-re
Hi guys I need help how do Deploy my project on windows server or vps If give me any show video how i do that . Ty
:x-re
But i have working with celery and redis
cj
But i have working with celery and redis
then it's even worse to use windows for deploying that
:x-re
So what i do?
Sakshi
Can you help me out in creating Jwt roled based authentication in django?
mr
Hello, how can I edit django admin detail view to show object edit history?
Ali Hasan
Hello, how can I edit django admin detail view to show object edit history?
I literally copied part of your msg on google and found it on the first search result
Ali Hasan
look for something called LogEntry
Ali Hasan
Found it already thanks
good luck and make sure it's read only and not editable
Morteza
So what i do?
linux server
mr
In django admin column names, one of them is not showing up, and because of that their order shifts, how can i fix that?
mr
I cant share pic here
mr
Its where I have list of the model objects