Sam
lucky
please i want to add icon on my project
what i found is to download bootstrap icons images like geo-alt.svg
but this i can't change color
King
Where I can get Beginner Django Projects 🙄
Aidan
Is there a way to Auto populate the slug field? Thanks
Samuel
Aidan
Class category (model.model):
Category = models.Charfield()
Slug = models.SlugField()
Carsalberto
hi, everybody
Aidan
Ideally I would like slug to the same as category.
Carsalberto
i have two related models and i need to make a same update for those models
Carsalberto
https://docs.djangoproject.com/en/4.0/ref/models/relations/
Jor
I have some issues with celery, i scripted some tasks, and run the workers with beat on debug mode (not as a service) and runned ok, but when i updated the tasks, nothing happens, any clue on how to solve this?
Dante
Can anyone help me with the assignment?
Doragonsureiyā
Mohd Zaid
can anyone tell me how can i calculate the server requirments for my project ??
Axror
Hi everyone. I am trying to send message to telegram bot with sendMessage method with python requests module in DRF serializer create method. When I created object in DRF post template, message send correctly. But, when message send from VueJs with API, message cannot send. I cannot find this issue. PLS help me
Axror
Axror
Jaya
hey everyone, is django as valauable as js bcoz I can't see many job profiles for it if you know any group that post opportunities for python developers please add me to it, thanks in advance
Amir.m.343
Hi guys
My static root doesn't work for new directories
It work for old files but when I add some new that doesn't work
What I should do🥲
Doragonsureiyā
Cheena
HI, who knows if it is possible to declare existing modeltranslation field in a file models.py? I'm getting (when I try to declare this field in Model class):
ValueError: Error adding translation field. Model 'MyModel' already contains a field named 'name_en'.
Doragonsureiyā
Alex
there is no way to do that. But rather you can declare 2 separate forms and then in your view
form1 = Form1(data=request.POST)
form2 = Form2(data=request.POST)
Alex
What do you mean "push"?
Alex
🤔
Alex
With cbv, I guess?
not_found
https://github.com/nikhilkotiya/Microsoft-Teams/blob/testing/accounts/views.py
not_found
Check index function
Alex
I think that the best OOP way will be that - create 3 views. One generic view (fbv/cbv - doesn't matter) and 2 auxilian CBVs for each model you need. Then in the first view
view1 = MyCBV1.as_view()
view2 = MyCBV2.as_view()
def view(request):
view1(request)
view2(request)
return HttpResponse()
something like that.
Alex
But there may be problems with handling form errors.
Alex
Forget about it. It's a terrible idea. Django's CBV are not intended for such usage. You will have to treat each of the nested view as a common view, meaning handling it's generated part of the template and so on. My bad
Sukuna
Hey django devs thoughts on fastapi? Is it necessary to learn in 2022
Sunken
Hi everyone
How should I implement a project with tow user models which are completely different?
What should "AUTH_USER_MODEL" be in settings?
cr
What is the best way to
Connect django-mssql
cj
What is the best way to
Connect django-mssql
you'd better want NOT to use MS-SQL with django (don't use with Python either, and don't use it never ever)
there are some libraries for that but AFAIK they are not maintained anymore and are outdated or have many bugs nobody cares to fix them (because actually nobody uses django/python and MS-SQL)
¯\_(ツ)_/¯
cr
Вова
Hi guys!)
In my site user have some tables(table1,table2...)
Now site give him information by this link:
1) domain.com/data/1
2) domain.com/data/2
....
Can I replace this by tag?(cause I think this is not safety now )
Joao Paulo
Hello , I am having problem to implement a autocomplete form because of accents andspecial characters. Any suggestions ?
Jal ⬡
Joao Paulo
SuperN00b
Hi guys, I am now using django channels to implement a chat room with websocket. I look up around for a while and could not find a solution to count how many users that connected to a channel name . Anyone have solution for this ? Thank you
T4P4N
Mohammad
Course with ID “None” doesn’t exist. Perhaps it was deleted?
Mohammad
Sam
Mohammad
Mohammad
Sam
Yes
Perhaps this will help...
https://github.com/nesdis/djongo/issues/8#issuecomment-723484705
https://github.com/nesdis/djongo/issues/8
SuperN00b
Mohammad
Sam
The same error
Have you tried manual setting of the _id field?
from djongo import models
class Course(models.Model):
_id = models.ObjectIdField()
...
Doragonsureiyā
Yes
Do you want to use Django with MongoDB? Then you shouldn't
Please read this article:
https://daniel.feldroy.com/when-to-use-mongodb-with-django.html
Брат
Can someone share his/her code with email URL confirmation?
Mirco
Брат
Have you ever registered in any site, which requires email confirmation?
Брат
You go to your mail, and click the button, which has url within
Neo
Google it. You'll find it pretty easily
Брат
And your account will be activated, and then you will able to login
Mirco
You can re-use the default Django auth
Брат
I try to do that code myself
Axror
Брат
Axror
Axror
But I would do as it
Брат
Брат
This one looks better
Mirco
Saleh
What is the best database to build a large chat application with django? SQL or NOSQL? Postgresql or mongodb?