Anonymous
Django Heroku : python: can't open file 'manage.py': [Errno 2] No such file or directory
Rijil
Rijil
Django-oscar
~ N
Hi what is the easiest scenario for an appointments api
~ N
From the user’s side and the doctor side
Rijil
Use google calendar api
Rijil
That way you'll get the appointments in your google calendar too
Ser
Hello, guys! Can you help me please.. I have deleted all migrations locally and create new migrations. But on Heroku I already have old migrations. And now I have an issue like 'does not exist'. What can I do?;/
Neo
Neo
Share the actual error with us please
Neo
Thayrone
Hello guys, How override queryset in an autocomplete Fields in Django? Or How filter the result?
Joseph
Thayrone
No, Django Admin
Thayrone
Thanks, I already managed to solve, Just use limit_choises_to
Sunil
I want to make project on real time chat application. Can anyone help me how to start
Vlad
Mirco
yagnalatha
Hi, Any one suggest best way to run django background task.
cj
Mirco
cj
Any another way
you asked for the best one, I gave you the option... and now you're asking for "another way".... come on!
what do you really want to do?
what did you try/do?
Neo
yagnalatha
yagnalatha
yagnalatha
Rohan
Not very scalable and resilient tho
jaxx
Hi
Is it possible to create shopping cart without using session?
If yes then please care to explain
Anonymous
hello
Is it possible to add conditions to DB Model?
I mean we have "not null" ad other things, yup.
But i need to ensure that every added person may be controlled only by another person with higher rank(like in military).
Yes, i can just put checks in my API methods.
But it will not help in case of stupid admin\other programmer, by example the may just execute SQL query.
Any advice?
Doragonsureiyā
Anonymous
Maxim
Neo
Neo
Modern databases offer a variety of authentication methods now. But this is outside the scope of django
Anonymous
Ser
Hello, I still couldn't go into my admin panel.
My Error is "ProgrammingError at /admin/accounts/goal/
relation "accounts_goal" does not exist
LINE 1: SELECT COUNT(*) AS "__count" FROM "accounts_goal"
What did I do wrong?
Matuo
Hi gusy, guys when i want update my user profile picture, and send image for my view in if form.is_valid():
Matuo
give me this error:
expected str, bytes or os.PathLike object, not ImageFieldFile
Ser
Рахим
Hi, how do I make serializer not expect the "photo" and "category" keys from me in the serialize.is_valid(raise_exception=True) function
serializer.is_valid(raise_exception=True)
Рахим
I just need to get validate_data from this function, and I will do the validation myself
Neo
Michael James
Pls anyone , I will love to learn Django class , like getting absolute url kind of stuff
ford
ford
Anonymous
wow
ford
Or even better you can override save method of your model to take into account user groups and permission
Anonymous
ford
Welcome
I_M_V
Hello everyone
I'm Vicky and I want to learn Django can anyone plz help me where can get the resources .
I have tried YouTube videos but they didn't help.
Diman
Good evening, please tell me how to output 100 templates through one url, and output certain values in each url?
karakurt
Guys, help me please.
I store my products in session cart in this way:
"cart": {
"product_id": {
"quantity": 123,
},
"another_product_id": {
"quantity": 456,
}
}
How can I refactor this to also save info about selected size and color attributes? I want to have different cart items when user adds a product with selected size and color. For example, user selects T-shirt XL BLACK. It is the one item. But if he then selects T-shirt XL YELLOW it is another item. So there be 2 items in cart with quantity 1.
But I can't do that since my session cart stores items based on product ids as keys.
karakurt
I thought of changing dict keys to something like this
f"{product_id}_{size_id}_{color_id}"
Neo
Doragonsureiyā
Nana
Amir
Hi my friends, I have an app that I deployed on heroku, but when I run it, it gives me an error 500, and heroku gives me this error in its log file django.db.utils.OperationalError: no such table: uploader_image
Where do you think the problem is?
Thank you for your help 🙏🏼
W
Amir
Vikash
yeah, all done
Any errror display on terminal Or you migrate heroku ?
karakurt
Can't it be a list of dicts
Can. But it makes it difficult to find an item.
For example, when I add a product (.add method accepts product_id and size_id) I need to find the item to update its quantity. If it be a list of dicts, I'd have to iterate it.
karakurt
Why?
Seriously... Why? 🤔
See my answer above. If I add 2 products with different sizes, I want it to be 2 different items in the cart.
By doing so, my dict keys would be unique, and I don't have to iterate list to update an item.
What can you suggest, Doragonsureiyā?
Amir
Doragonsureiyā
Amir
Neo