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'
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?
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
How to uplaod a video using form Without saving into db. How do i get the mp4 format when the form is submitted?
Without saving to the DB? you will still need to save the filename and path to a database row somewhere I think.
Doragonsureiyā
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 .
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Kamal
Yup
thank you so much
Mirco
Please gurus how do i go about this?
It sound like some data loss inside your database I think the fastest way is to drop and create again your db ( if u can obviously )
Mirco
So i have to delete my current db?
If you can, it's the fastest way
ITz_Ayi
If you can, it's the fastest way
I'm actually scared of losing my data
Mirco
Make a dump and try locally before doing any changes on production
Anonymous
Does anyone want collabrate i am building a django webapp that you can share musics and opinions anyone ???
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
Shreehari
can anyone help me with this problem? https://stackoverflow.com/questions/65427490/get-information-from-many-to-many-fields-in-django
Well filtering through manytomany field is not much of an issue, but i felt like your relationship between user and board is not proper.
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?
Charly
Guy! Is there any cheap hosting for django projectdance?
use a vps, these are the cheapest, there are plenty of options
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 ?
Theodore
Theodore
It is not working
ps
Must be some typing error
ps
What is parsed check in your code
Theodore
What is parsed check in your code
there is nothing like that
Theodore
all my end points work except one
Charly
all my end points work except one
show the code, it seems to be a code issue
Charly
front end or backend
where is the error?
Theodore
Charly
then this isn't the group for that
Theodore
😞
Charly
maybe you wrote parsed instead of parse
Theodore
Theodore
what about Serializer
do i have to specify all my variables there
Hamidreza
What better way to deploy Django Project with several telegram robots on a server?