Doragonsureiyā
Thankyou bro
You're welcome! 😊
aman
hey, I'm stuck at error which says matching query does not exist...
aman
inside login success
aman
although my second query is running good but 1st one is getting error anybody get into similar sometime please help.. for your help in adv..
Pratik
Is there a way in which I can Group by and concat a string like we do in postgres string_agg() using django ORM?
Adnan
Is there a way in which I can Group by and concat a string like we do in postgres string_agg() using django ORM?
django aggregation django db functions django Q object(expression) search these...
Adnan
Got it, Thanks
you are welcome.
Macurrent
am getting confused here, why is it that some devs are using class in django views while others don't use it??
Macurrent
using classes in django views was so easy for me and now i have come across a dev who does not use it, he uses def instead, is it really necessary to learn def in django views??, I can see even in the official django docs, they are using class views lol
CodeCypher
Yes
Well i am more in the 'def' category, i have been building my apps using FBV and i havent seen any limitations till date.
Mirco
Why y'all have to call them "Def" ? They are just Python functions
Macurrent
so after learning CBV there is no point to learn about FBV??
Macurrent
so after learning CBV there is no point to learn about FBV??
If this is true then what does fbv solves?? why do we need it??
Anonymous
so after learning CBV there is no point to learn about FBV??
FBV and CBV have their respective drawback. Just hope that one day the drawback won't halt your work when you meet it. Before that time, they are all good
Mirco
We know bro.
Then just call them "functions" 🙂
Mirco
If this is true then what does fbv solves?? why do we need it??
Sometimes it's much easier to write a simple FBV than a CBV that can hide lots of stuff
Anonymous
If this is true then what does fbv solves?? why do we need it??
Coming from OOP background, CBVs will be pleasant to the eyes and mind ... FBVs will look unstructured and 'not clean'. From the functions dude, CBVs is an overkill or too restrictive . So bro, enjoy what makes you work faster and efficient. Remember that, hope that their drawbacks won't have effect on your works once you find out 👌
Macurrent
Sometimes it's much easier to write a simple FBV than a CBV that can hide lots of stuff
i use generic class based view alot until i have come across fbv. I was now like confused which one to go for
Mirco
Macurrent
Then i'll have to convert all fbv to gcbv that i will come across Will that be possible really
Macurrent
Or maybe some function based view cannot be converted to generic class based view??
Macurrent
https://concisecoder.io/2018/12/01/django-function-based-views-vs-class-based-views/
Eventz
how to create my own admin page on django python
Ghorz
how to create my own admin page on django python
You can save time by using Adminlte
Jasir_
I am creating a website, but m stucked little bit , I want to add the shops to favorites page but in the backend it's storing, but it's not displaying in frontend, we should do manually if i have to display, used js, and only one item displays any idea or tutorial ?
aman
I get it done it is showing error because it is fetching objects from empty db
aman
I populate it and now it's fine....
aman
atleast for now😬😬 bdw thankyou Starters
Jack
Ok
Harsh
Hey ! I am using python instabot libery Everything working fine in my computer . The process Is for infinite time and my computer not able to work all the time . So I just put the script code in python anywhere But I am getting 429rrquest error To many request I have Tried to find solution on GitHub etc . But nothing available Anyone know
Harsh
🤖
Charly
Please remove this boy
No, you better read the rules if the bot is bothering you
Saikat
Guys ...little .info I have integrated django +docker+AWS S3+postgres ....so if anyone need help , I can 😊
Saikat
And I also need help in pytest anyone opt for ??
Vivek
Hello guys is it possible to implement a VOD (Video on demand) Web application on Django?
Vivek
One more thing, I wanted to know that how good do django web applications perform when we compare them to Single page web applications like ones built on angular? Is there really a significant difference in how many users it can handle at once?
Deleted
https://stackoverflow.com/questions/67831602/run-ajax-call-to-get-form-submitting-data-first-then-run-the-following-javascri Please help, run ajax call to get form submitting data first, then run the following JavaScript
Suresh
Hi, i want to know the Citrix software engineer course if any one know please let me know, thank you in advance
Doragonsureiyā
Hi, i want to know the Citrix software engineer course if any one know please let me know, thank you in advance
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Charly
doesn't matter at all what fw are you using in the frontend
Vivek
any suggestions on which one is easier to go with from react or angular?
Charly
any suggestions on which one is easier to go with from react or angular?
No, this is a django group, ask for suggestions on a fronted group or something
Anonymous
please send me profile admin
Charly
please send me profile admin
you'll need to formulate better requests
Darta
hi i fallow this tutorial https://realpython.com/django-user-management/ but in template when i put Hello, {{ user.username|default:'Guest' }}! and login in admin it just return Hello, Guest! also {{ user }} return AnonymousUser while i logged in admin
micker
How to export the list of fields passed from the front end to excel through django-import-export
Jack
I need help on this project sir. A company gave a link to their company's website and in that website there's a table to fill some particular details located. The thing is I've to prepare the exact same website myself and I've to store the data that are being inserted onto the table into MySQL database. I've copied their source file via inspect. And I'm able to make it somewhat similar to original. But how can I add the data to my database that are being inserted there.
Macurrent
As i can see, cbv has no bad disadvantages though
so am the only one using cbv in this group
Anonymous
Can someone explain in sime that what is Difference between rest and restful design doesn't understand the Google explaination?
Onks
Is there a simple way of making SlugField in models and {{ object.name|slugify }} to have the same value? SlugField ommits the stop words but slugify won't, the mismatch is causing issues. I have tried using the library django-autoslug with, from django.template.default filter import slugify slug= AutoSlugField(slugify=slugify, unique=True) but still when i populate the slug is removing the stop words.
Onks
use the admin page
Son
how to deploy django ussd application
Macurrent
I just cloned a django repo and the virtual env used was pipenv, how do i install the packages he used to get that website work locally
shashikant
Requirements.txt file will contain all the package and dependencies.to install it pip install -r requirements.txt
Jenish
Am using pipenv and i don't have requirements.txt
pipenv shell pipenv install in the project root directory where pipfile and pipfile.lock file
Macurrent
pipenv shell pipenv install in the project root directory where pipfile and pipfile.lock file
am getting this error Warning: Your Pipfile requires python_version 3.8, but you are using 3.9.5 (/home/amani/.local/share/v/c/bin/python). $ pipenv --rm and rebuilding the virtual environment may resolve the issue. $ pipenv check will surely fail.
Jenish
or pipenv install —python3.8
Macurrent
pipenv shell —python3.8 try this
Yes i did that and the message still appears. is there a way to use the latest python version in that pipfile
Jenish
Yes i did that and the message still appears. is there a way to use the latest python version in that pipfile
install pytho3.8 and then pipenv install —/direcotry/to/python3.8 executable
Macurrent
install pytho3.8 and then pipenv install —/direcotry/to/python3.8 executable
Thanks, i just edited the pipfile manually and changed it to the python version that i want
E_designr
Why i have this error: Import "blog.views" could not be resolved Pylance