Lucky
Can anyone explain this code please
Maxim
Can anyone explain this code please
hire a programmer or ask the person who wrote it
Lucky
Good answer
Maxim
Good answer
corresponds to the question interview question ?
saviollah
Hello, I am getting this error on my project when I run "python manage.py runserver" https://textdoc.co/gztmRqEIy34NBejF I last updated it on 14th April 2021 and it ran fine.
Vivek
Can somebody suggest some good resources to learn Django REST Framework please?
Anonymous
In which file should I do this?
i think the fontawsome package u use is outdated either update it or manually go to File "C:UsersgideorlahAppDataLocalProgramsPythonPython310libsite-packagesfontawesome_5fields.py" and swap the earlier code i think
Anonymous
Hi, I'm a beginner in Django and I'm facing an issue, I have a model called "car" and I want to upload multiple images for the car, how can I do it. Note that I don't have a forms.
Anonymous
I won't to try it in postman!
Anonymous
I want to *
Anonymous
Is that possible ?
Mirco
If you are building APIs absolutely yes
Mirco
You can send images in base64
Mirco
Yeees !
https://roytuts.com/single-and-multiple-files-upload-example-in-django-rest-api/
Doragonsureiyā
Thanks. I will do that.
You're welcome! 😊
Vitaliy
what is the best practice to deploy Django on windows? I used IIS with FastCGI and it works well except accessing network directory (I don't know how to run venv as Admin, please help or give me alternative
Vitaliy
the best practice is not to deploy on Windows 😅
i have no choice it is company policy
Mirco
i have no choice it is company policy
but you are free to change company 😏
Mirco
bwt cannot help u, I don't use Windows since Windows 7 and never used for production-like envs
Saurabh
Anyone have sagemaker experience? I need help.
Doragonsureiyā
Anyone have sagemaker experience? I need help.
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
Anonymous
solved it
Rohit 007
I have two tables in model and second table has one foreign key i want to display a drop-down in html if second table has a match in first table
Rohit 007
For example if in first table has c,c++,java And second table i have an option to select one of 1st table option so in other page if i click in c , c++ or java i want a drop down for whom select that perticular option
Rohit 007
I' ve tried jinjas but I am getting same elements more than one when I am passing through dictionary
Shubham
When I try to get all the data of the django table to excel my system crashes.Any suggestions what should I do?
(⌐■-■)
buy new system
Shubham
Till then any other suggestions how to fetch large data from django model to excel
Shubham
I am using enumerate and openpyxl
Casper
can anyone help me or guide me. i have django very small app and wanna put it in container Docker.
Casper
any quick guide instead of learning it from scratch. I have created a Web CTF of basic level for a small community.
Alex
can anyone help me or guide me. i have django very small app and wanna put it in container Docker.
literally docker's documentation https://docs.docker.com/samples/django/
Chikal
hello can u help me, how to filter data by multiple ? example : I have data 1 - 100, I input 10, then it displays "10, 20, 30, 40, 50, 60, 70, 80, 90, 100" how to do it ?
Naabe
Trying to send a mail in django using my localhost
Doragonsureiyā
Trying to send a mail in django using my localhost
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Naabe
In my settings.py I have EMAIL_HOST = 'localhost' EMAIL_PORT = '1025' EMAIL_HOST_USER = ' ' EMAIL_HOST_PASSWORD = ' ' EMAIL_USE_TLS = False
Naabe
ConnectionRefusedError : [Errno 111] Connection refused
Naabe
Anybody encountered such an error
Maxim
ConnectionRefusedError : [Errno 111] Connection refused
most likely because you don't have a mail server on port 1025
Naabe
Okay
Anonymous
is their some kind of filter argument that goes like null_or_equal, making the results only appear if that field is either null or has the value that has been given?
Shubham
Can anyone tell me how can i filter one week's data?
༒ROHIT
I want to add 1000 Product to eCommerce Django project how can we add all ... As fast as possible Product include discription price slug image
Alex
I want to add 1000 Product to eCommerce Django project how can we add all ... As fast as possible Product include discription price slug image
Define CSV or Exel with the data. Track images as filenames/paths in the project root. Use bulk_create in your code
Mohd Zaid
gaierror at createuser/13 [Errno-2] Name or service not known
Mohd Zaid
hey do we need quotes inside .env file
Nisha
I want to create google map website in pycharm using django can anyone help me with code
Yerson
I want to add 1000 Product to eCommerce Django project how can we add all ... As fast as possible Product include discription price slug image
You can also use django fixtures but that would require you to create a big json file with the data, but it would be easier to load once done
Shubham
You can use CSV file to everything including uploading of data and images
Naveen
How update specific field django serialization in model
Дмитрий
If I understand correctly - FileField if you want to control file upload and/or storage and/or file upload path FilePathField if you want to control the file path within the filesystem (if I remember right it should be absolute filesystem parh) by matching it against some pattern of file type, file type and matching against directory
Doragonsureiyā
Rule 1⃣: Speak English.
Дмитрий
To upload images, another type of field in model 'ImageField' must be used. Also, the Pillow library will be needed
Anonymous
Can you send full information to my dm
Somvit
django.db.utils.OperationalError: connection to server at "127.0.0.1", port 5000 failed: Connection refused. Is the server running on that host and accepting TCP/IP connections?
José
gaierror at createuser/13 [Errno-2] Name or service not known
You are probably using a library that connects to the Internet, so check your internet connection
Raja
Anyone know how to save json data in database using django?
Abhinesh
Hi all I created a replica db i done the migrate also it created tables as of the main db. When I created the data through shell it's saving in main db as usual what about the replica how the data will store in the replica Thanks for the answers
Jean-Yves
Hello everyone, I would like you to help me, it seems that there are a few things that I did not quite understand. About class based view
Jean-Yves
I want to make a view of type get in class based view which saves the product to the wishlist as a listview.
Дмитрий
django.db.utils.OperationalError: connection to server at "127.0.0.1", port 5000 failed: Connection refused. Is the server running on that host and accepting TCP/IP connections?
In this case, the server must be running locally on a specific port. If this is an attempt to connect to a hosted server, you should check the IP address, port, and SSL.