Michael the wolf 🐺
Any idea on this thing ? Any good sso library
Mehran
Can any one explain how I should handle cart for my ecom backend app? I'm using Cart and CartItem models. Should I create cart by a request or it should be handled automatically when I add a product to the cart?
John
How I can write special code for mobile in django admin
Aito
who knows why such an error occurs when adding a product?
PermissionError at /admin/main/product/add/
[Errno 13] Permission denied: '/home/a0497925/domains/telavistore.com/telavi/main/media/static'
Mirco
Aito
What configurations should I put in?
Tell me please
Aito
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'main/static')
MEDIA_URL = 'media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'main/media')
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static/'),
)
Mirco
It's not Django
Mirco
You have to configure Linux permissions on those folders
Mirco
We don't have info about your deployment configurations
Aito
I configured media file access to 775 in pre-code via chmod
Aito
Added the same -R for the directory and everything that is inside the directories
Mirco
Share the Nginx or Apache config
Mehran
Hey, I deployed my project on cpanel but my static and media files does not load. I set static and media root and url in settings.py but is not working yet, Can anyone help me?, Thank u guys
Dhanush
How to uplaod a video using form
Without saving into db.
How do i get the mp4 format when the form is submitted?
Dhanush
Alexandr
Hi!
i have JSON field, with List, and need sort by last element.
How i can set last element in this order_by string?
ext_data__statuses__0__name - this is order_by first element
ext_data__statuses__-1__name - of course don't work
Kamal
1) https://skr.sh/s5lQY4kXCgh?a 2) https://skr.sh/s5lU8DuTyMY?a 3)https://skr.sh/s5l92qUZ3fh?a error) https://skr.sh/s5lkg2UC0TB?a I cannot find an error, I suspect that my url is not recognized in the templates {% url 'news-detail' news.id%},
in urls.py it is written as path ('news / <int: pk>', NewsDetailView.as_view (), name = 'news-detail')
enansi
Is there any way to get the Video using POST method??
Yes. You use request.FILES['file'] in Django .. and on the HTML form will look like <form method="post" enctype="multipart/form-data">
<input type="file" name="upload_file" id="upload_file">
</form>
Kartikeya
Hii i want to start my career in django how should I start, i am full stack developer works on oracle forms and report and now I am willing to switch to Python as python develper ..... Plzzzzz 🙏🙏🙏🙏 help me .
enansi
Mirco
Mirco
Mirco
Mirco
Doragonsureiyā
Kartikeya
Kamal
Dhanush
ITz_Ayi
ITz_Ayi
Mirco
Make a dump and try locally before doing any changes on production
Rafael
Mirco
ITz_Ayi
ITz_Ayi
Anonymous
Does anyone want collabrate i am building a django webapp that you can share musics and opinions anyone ???
Yuvraj Singh
Good Boy
Guys any swag opportunities??
Anonymous
Help me figure out why ImportExportAdmin is not connected
class TableBasketAdmin(ImportExportAdmin):
TypeError: function() argument 'code' must be code, not str
A
can anyone help me with this problem? https://stackoverflow.com/questions/65427490/get-information-from-many-to-many-fields-in-django
A
What's the problem with the relationship between user and board
Shreehari
Can you please say why you are creating another model for mapping?
A
For membership, like one board can have multiple members, and one board can only have one creator who created the board
A
For mapping users with boards
A
I'm trying to build something like reddit
Shreehari
First of all you can use dunder and Q for filtering with respect to your problem.
But im confused on why you are using board as manytomany field. If possible explain it please (I might be wrong), so that i can learn too.
A
One board can have multiple users, and many users can be member of one board
A
Therefore I'm using many to many field for board
Shreehari
So one board can have many users.
I feel like theres really no need for creating another model for it. Maybe someone here can give me/you more clarity on it
Shreehari
You can use m2mfield in board model itself
Hassan
Guy! Is there any cheap hosting for django projectdance?
RL
Hassan
Thank you
Theodore
hey guys
i was using django for back end
and react as a front end
the django API was working
but when i connect it to react i was having
TypeError: parsed is undefined
then when add this to setting.py
CORS_ALLOWED_ORIGINS = [
"http://localhost:3000",
]
it worked
then when i try other API points
started getting same errors
TypeError: parsed is undefined
any idea what i miss ?
ps
Theodore
Theodore
It is not working
ps
Must be some typing error
ps
What is parsed check in your code
Anonymous
Theodore
Theodore
Theodore
all my end points work
except one
Theodore
Theodore
Charly
then this isn't the group for that
Theodore
😞
Charly
maybe you wrote parsed instead of parse
Theodore
Hamidreza
What better way to deploy Django Project with several telegram robots on a server?