Ds
Hi
Akaash
I am trying to create a one dropdown with file uploads
Akaash
But doesn't work
Random
Use the filter()
How can i filert() in Createview
Agent Q
How can i filert() in Createview
https://docs.djangoproject.com/en/3.2/ref/models/querysets/#filter
Nikhil
does anyone has a project related to excel file upload? i don’t have a time to create one myself.
Nikhil
even basic projects?
Nikhil
thanks!! i forgot about github..
Mayur
https://codeshare.io/5v6Z0W
Mayur
https://codeshare.io/5v6Z0W
how can we do in django this type of nested document with mongo Db
Mayur
how can we do in django this type of nested document with mongo Db
help of django models mean how we should to right model for this
Mayur
please help me anyone
Agent Q
Mayur
yes its connected
Mayur
https://codeshare.io/5v6Z0W
I want to do nested document like this with the help of models
Agent Q
I want to do nested document like this with the help of models
https://www.djongomapper.com/integrating-django-with-mongodb/
Agent Q
yes but it is not working
Don't make us guess what's the error. Did you forget to change settings.py?
Mayur
category = models.EmbeddedField(model_container=Category) AttributeError: module 'django.db.models' has no attribute 'EmbeddedField'
Random
https://docs.djangoproject.com/en/3.2/ref/models/querysets/#filter
Dude i know queryset and how to to use filers but, it can be used in CreateViews
Mayur
Don't make us guess what's the error. Did you forget to change settings.py?
category = models.EmbeddedField(model_container=Category) AttributeError: module 'django.db.models' has no attribute 'EmbeddedField'
Mayur
You don't have embeddedfield
yes I installed...but error is instant
odin
Can i copy settings.py file to another project
odin
Yes
I mean can i copy secret key?
Agent Q
I mean can i copy secret key?
If you understand the risk, sure
Richard
Hello everyone! I have a problem with getting an fields from onetoone relationship by queryset. Here is my code: get_controller = Controller.objects.get(id=controllerID) <— Main model get_id = Diary.objects.get(controllerID=get_controller.controller_id)<— OneToOneField related(always returns controller_id name) queryset = get_id.diary_set.get(id=get_id.instance)
Nawaf
Hello everyone, How can I make automatic database, I want set a time and in this time I want to insert field or post something in database
Nawaf
How can I do this
Agent Q
Full traceback?
Sure. Make sure you use pastebin
Richard
https://pastebin.com/Dk0CtTUP
Agent Q
https://pastebin.com/Dk0CtTUP
Can you share your models.py file?
Richard
https://pastebin.com/8EFpdp9i
Wishmaster
I there any library or app in django to send messages among users? I need to make and application with many funtionalities and CRUDs but one of them needs to be a chat or message funtionalitie for users
Dev__master
hi guys, can anyone help me with how to generate url for file which is stored in media folder.
Muzaffer
Hi, guys Why I got this error? raise ImproperlyConfigured("Cannot import ASGI_APPLICATION module %r" % path) django.core.exceptions.ImproperlyConfigured: Cannot import ASGI_APPLICATION module 'tamerlaneChess.routing'
Muzaffer
my settings https://paste.ofcode.org/DVPBWFhANhDsSa37MSSQKv
Muzaffer
project routing https://paste.ofcode.org/Wb7ivpYkbt8WZNUEwtDyQ9
Muzaffer
game routing https://paste.ofcode.org/37syjsudESv8ZiVKTeS5SV5
Sumit
Url or path?
Use media_dir , add it in urls_pattern
Dipak
Anyone know good django based CRM?
Dipak
Waglet
You mean wagtail?
Ds
Ya
Ds
Sorry typo*
M
hi guys, can anyone help me with how to generate url for file which is stored in media folder.
If u use FileSystemStorage from django u can get the img URL just call the attribute img, my_file.url
Wishmaster
Instants message like chat, push notifications or something like mailing?
chat and push notification, but I could use an example of mailing as well. I am new at Django I need to know what options I have. Some code examples could be a great help
M
chat and push notification, but I could use an example of mailing as well. I am new at Django I need to know what options I have. Some code examples could be a great help
Well, I don't know exactly what do I want but u can use celery+rabitmq, this way u can have a queque and after any action on something process a method or any action that send the email send the push etc
M
Sorry for my typos lol but my keyword is settled on Spanish and sometime change my words lol
Aossh#..
Price comparison website anyone done Proj by using django
Aossh#..
I need help
Aossh#..
If anyone has done same Proj please messg it here
shashikant
Can anyone guide me with phone number verification...I googled and found some articles to verify phone number before registation..but still not able to integrate it.can any have a resource for this .
Tukhtamurod
Model.datetime()
he is not asking how to declare date field, he is asking, he sets the time for example 5:00 PM and at that time a certain task should run
Rakesh
Rakesh
How?
Create a new date object
Rakesh
Get the time
Sai
Then how you gonnal call at specific time everyday
Rakesh
Run the function at which sends data to backend at the particular time you need
Rakesh
May be that works
Sai
What js will send to db at every time