Anonymous
i am not getting related list in the dependent dropdown list
tfhx8
Hello
tfhx8
How make it? "vscode django model autocomplete"
tfhx8
models.Mymodel.object. here autocomplet not working
tfhx8
why?
bahaa eddine
How can i fix this problem :
Models aren't loaded yet
Alan
For the people who'd to use Mongo via Django's orm, look up djongo
bahaa eddine
how can I do this
options = book.objects.filter(category=category).values('name')
Kratøs
I get this error while migrating
"access denied to user 'admin'@'%' to 'database_name'"
I didn't got this error when i first time connected my django project to MySQL
Kratøs
Ayy
How to plan out apps in a project?
I'm working on something that's very role specific, like customers, sales, delivery boys will have their own separate dashboard with different functions.
And then there's common stuff like payments, emails, SMS.
How to divide this into various apps
b
hey guys, I've question
so, we save items querying user model doing something like
..
model.objects.create( model_item = value_for_it , user = req.user.userprofile )
but how can I query that when I'm using form
in form we just do something like
b
in form we just do something like
object.save()
Yog
Howmany of you working real-time on django? I need some help.. please ping me.
cj
Anonymous
Can anybody guide me how to
Display the text from text file i.e stored in FileField datatype
I have the URL for the file
But am unable to render the text on page
Yog
Who is cj?
cj
Anders (izzno / gooood) 🇳🇴
Wait what?
Rhythm
👀
Mirco
Anders (izzno / gooood) 🇳🇴
Hah, not wrong though 😂
Ghorz
Ghost coders.
Knight
Hello everyone!
Glad to find this group!
Knight
How can I get currently logged in user in django?
When I return request.user from login function, it returns currently logged in user. But, after logged_in when I redirect to other function(getuser) and return request.user from there, it retuns AnonymousUser.
I want to upload some codeds here as a screenshot, but media is not allowed.
Bunty chhatri wala..
If request.method=='POST': is missing
Knight
Dexter
Can anyone guide me where do I find tutorial to develop news/ecommerce web and android
₹
Aaditya
In 1st page List of lawyers is coming from database if we click on about button then it will display 2nd page which is detail of particular lawyer detail from database.
Problem is how to implement this functionality in our system.
Xavier
Xavier
Anonymous
hy can anyone guide me i want to delete child object and redirect to parent object
Xavier
Anonymous
https://www.ppaste.org/10Fw163ue
Anonymous
please check my views.py
Alex
Anonymous
can i private message you alex?? so i can explain
Alex
Oh, ok
Anonymous
i have home page and customer page... i am navigating customer page using pk and in that customer page i have customer order details... so what i want to do is if i delete that order it should take me to the same customer (pk) page
Anonymous
https://www.ppaste.org/llMtkIzH6
Anonymous
my models
Anonymous
https://www.ppaste.org/zHHRpYdxd
Anonymous
my urls
Alex
def deleteorder(request, pk):
order = Order.objects.get(pk=pk)
customer = order.customer
order.delete()
redirect('to-customer', args=(customer.pk,))
Anonymous
Anonymous
https://www.ppaste.org/5qNGJBVgc
Anonymous
please check my customer template also
Alex
man, you are trying to sit down on my neck
Anonymous
😆😆😆😆
Anonymous
ok sorry for if its irritating 😝😝
Aaditya
Aryal S
I want to learn django deeply from where can i start.?
Paschaljet
Please is necessary to class based view in some cases or can all class based view be in form of function based view perfectly?
JP
Alex
Alex
FBV are perfectly fine
Xavier
Xavier
Alex
Paschaljet
Elaborate
Can all class based view be written perfectly as function based view or is it necessary to use class based view in some cases?
JP
To write a CBV is good for DRY approach, also it is considered as function inside when it is being executed. To write FBV is depends on your requirement and ease of convenience.
JP
Paschaljet
JP
If it is using a implicit functionality and working on overriding of super class's method then we have to check ..
JP