Anonymous
Django Heroku : python: can't open file 'manage.py': [Errno 2] No such file or directory
Rijil
Please where can I get it
Just search google
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?;/
Ser
what does not exist?
Model, model fields
Neo
Share the actual error with us please
Ser
As for the migrations, if you want to start fresh you could rollback to zero and commit your changes. Pull and re run migration
Error: "The above exception (relation "accounts_goal" does not exist LINE 1: SELECT COUNT(*) AS "__count" FROM "accounts_goal" ^ ) was the direct cause of the following exception:" I tryed to fresh typing 'heroku run python manage.py migrate appname zero'. But it didn't solve the problem.
Thayrone
Hello guys, How override queryset in an autocomplete Fields in Django? Or How filter the result?
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
yagnalatha
Hi, Any one suggest best way to run django background task.
yagnalatha
use celery
Any another way
Mirco
salar
Any another way
If you want the best way, celery is the True choice
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
Any another way
Django carrot
yagnalatha
Rohan
If you want the best way, celery is the True choice
Not really but if you don’t have an ops team, sure celery is fine.
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?
Maxim
Why not related? ORM is part of django.
your question concerns databases in general
Anonymous
your question concerns databases in general
But, can that be done in django Models\ORM? May be some kind of models.ConditionField?
Anonymous
read the documentation, it's not that huge
Not find "out of box" solution. The best option is to create validator, i presume. Is custom validator will be good solution? How do you think?
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?
Neo
So in brief - i want to do strange thing? 😀
With my limited experience i would say so yes
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
Рахим
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
Michael James
Pls anyone , I will love to learn Django class , like getting absolute url kind of stuff
Doragonsureiyā
Pls anyone , I will love to learn Django class , like getting absolute url kind of stuff
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Have you tried signals pre_save
Oh, thats looks great. Thanks.
ford
Oh, thats looks great. Thanks.
Good thing with signals it work both through api and admin
Anonymous
Good thing with signals it work both through api and admin
By API do you mean DRF or "manually implemented"?
Anonymous
wow
ford
Or even better you can override save method of your model to take into account user groups and permission
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.
Doragonsureiyā
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.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
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}"
Nana
Django-oscar
Thank you
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 🙏🏼
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ā?
Neo
Guys, any other guidance?!
did you run migrations