Doragonsureiyā
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work. Have a nice day 😊
Doragonsureiyā
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Nayan
Have you tried? Are you facing any problem with that?
Yes i have tried i was doing request.files['file'] And then using with open('/Users/benq/djangogirls/upload/media/file_' + str(count), 'wb+') as destination: for chunk in f.chunks(): destination.write(chunk) I could not able to upload multiple files as well as only 1 file is getting copied
Nayan
With REST API?
No i did with request.files
Nayan
The files which will be uploaded can be zip, pdf ,doc etc
Almaz
dpaste.org/ZAnu Please, who can help? I'm making shopping cart and i wanna create buttons which gives opportunity to increase the amount of item, discrease the amount of item and remove the item from shopping cart. Increase and discrease buttons are work correct, but the delete button isn't and i have no idea why I'm new in Django and I've been stuck at this problem for several days. If there aren't enough information, just let me know Just in case, i used virtual environment
Alex
Can you guide me what is the proper way to do it ?
As I understand, you are referencing this example from the doc. It is really how it works "under the hood", but most probably you want to find your files after that. So you a better approach would be to associate your files with a model which is described next on the same page
Alex
Exactly the remove button doesn't work. I wanna remove the whole one item from cart, not only price. Can you help?
The code seems working for me. The only advice I can currently give is to use debugger https://docs.python.org/3/library/pdb.html or even ipdb.
Nayan
As I understand, you are referencing this example from the doc. It is really how it works "under the hood", but most probably you want to find your files after that. So you a better approach would be to associate your files with a model which is described next on the same page
Ok but i also want to create a unique directory to the upload_to location how can i do that ? Ex Upload_to = 'test/' What i want after each upload Upload_to = 'test/<name from the form>/
Frederic
Hi, is it possible to convert a django project into a django application ? What are the steps to do the convertion ?
Frederic
what do you mean by a django application?
I'd like to integrate Colossus into my project but it is already a project with settings.py, manage.py, ... I would like to copy it in my python path and add it in installed_apps in my project settings.py.
Frederic
I'm not sure if that project structure of colossus is suitable for inclusion in an other project.
Muhamedou
Please how can help me https://stackoverflow.com/questions/69063478/django-how-i-can-update-checked-element-by-checkbox
Beekaaash
css/style.css
Then write like this {% static "css/style.css"%}
Beekaaash
Please how can help me https://stackoverflow.com/questions/69063478/django-how-i-can-update-checked-element-by-checkbox
Bro what are you trying to do, you write url in modifier also use ajax how it works ??? Similarly you send request by ajax and by return redirect this can't works probably
Anonymous
Hi please help I need Blog application API how to set in rest django freamwork
Anonymous
Mutrial please
игорь/igor
Look up github
Vxvek
Can we combine two separate dict which is inside list into one dict..so that to create a table
Anonymous
Hi I am new in django anyone can help me. which server we are using for deployment code in production environment.? what is the process? And which server best for around 8k user?
Adhil latheef
Can we combine two separate dict which is inside list into one dict..so that to create a table
Down vote d4 = dict(d1.items() + d2.items() + d3.items()) Or d4 = dict(d1) d4.update(d2) d4.update(d3)
tushar
hello everyone, im working on django project so im using bootsrap/javascript for frontend now i want to work with rectjs on otherpages.so can i connect with rect without api or without change existing bootsrap pages
Coders Needed Eth
Please, who can help?
Well then debug your code
prethesh
Can anyone pls share your Django project source code GitHub links so i can learn some and submit it for my final years project.. Pls help
Coders Needed Eth
Check my github amenabe22
Muhammed
How to display ckeditor content i added in description through admin panel.... I want to display it in admin panel itself.... Currently it shows with some html tags.... Plse help anyone
buzinga
https://github.com/RishabhBhatt19247/I.M.W-DJANGO-APP This is a Django web application ( online platform for medical webservices ) I have also used html ,CSS ,javaScript , bootstrap in it . If you are worthy enough ,then please add more functionalities In it or Try to improve it.I will definitely merge it. And I hope you will surely learn alot from it because improving the project or Adding functionalities ,these are the things for which a developer known for. Please refer ReadMe.md for more info
Saurabh
Hi all I am in trouble for some time. I have question. Can I use websocket with NLB (Network load balancer)? Please help me.
AruN
Is there any django documentation pdf
Alex
Is there any django documentation pdf
https://docs.djangoproject.com/en/3.2/ Download: Offline (Django 3.2): HTML | PDF | ePub
Alex
Almost 2k pages of happiness
Dilli
I need another view result in one view using url ?
Dilli
Is there any way pls help
Oyatillo
How do I tell if a user is flooding(throttle) a webhook? #djnago #telegram_bot #pytelegrambotapi
Alex
I want to use absolute path how can i use it ?
Don't use absolute paths. Unless you're using smt like docker. Modern django is shipped with BASE_DIR setting. Depending on it you specify your static and media paths.
Shubhangi
I have tried this <div class="background_image" style="background-image:url({% static 'images/home_slider.jpg' %} )"></div> And in console it is showing error Please help me out in this
Nayan
Don't use absolute paths. Unless you're using smt like docker. Modern django is shipped with BASE_DIR setting. Depending on it you specify your static and media paths.
I have particular location where nfc is mounted all files should get upload over there . so using relative path will not work for me i need to use absolute path for this
Pragati singh
Hi, Django CBV like list view, detail view, delete view render data inyo specific template I'm new to django and learning django rest framework my query is in creating APIs are these Detail view, delete view, list view are no use ? Like in drf we use api view ?
Pragati singh
Use DRF viewsets
ok , so far i got to know about apiview and generic view.
Saurabh
Hi all Anyone have any idea. I have question. Can I use websocket with NLB (Network load balancer)? Please help me.
Pragati singh
Use DRF viewsets
is that mean should we avoid apiview and generic view and use only viewets ?
......
In a machine learning based project, I need acces to camera for estimating length of ulna my model is ready but how do I do it with django at the backend and react at the front end?
Coders Needed Eth
Viewsets are just easier and you can do more with a single handler class
Sanjay Krishnan
is that mean should we avoid apiview and generic view and use only viewets ?
Viewset has less lines of code and will do all functionality like listing, detail, creation, deletion, update, partial update.
Pragati singh
Viewset has less lines of code and will do all functionality like listing, detail, creation, deletion, update, partial update.
okk,can u plz tell in general scenerio which one is prefered more genericview or Viewset?
Coders Needed Eth
Yup
Alexander
Hi! Is it possible to join with subquery in django? Something like that: select foo.*, subq.x from foo join ( select distinct bar.id, bar.x from bar where bar.y = 'y' ) as subq on subq.id = foo.bar_id;
Almaz
Hello, everyone! Please, who can help? dpaste.org/BmmA I'm making shopping cart and now I wanna make possibility to increase the amount of item by clicking a button. However, there is such error, which is in the link
Almaz
Error is somwhere else..maybe in view
I already posted the view code
Anonymous
Hello, everyone! Please, who can help? dpaste.org/BmmA I'm making shopping cart and now I wanna make possibility to increase the amount of item by clicking a button. However, there is such error, which is in the link
You are trying to increment the quantity attribute of your Model class. That is wrong! Get an instance of your model first, before doing your maths
Anonymous
Can you please explain properly? I'm a beginner in Django
The error is at line 70. Since you want to increment the quantity of the item in the cart: item = Items.object.get(**kwargs) item.quantity = F("quantity") +1
Alex
hivemind, lol