⍣ ᏗᏝᎥ ⍣
You don't need to share photos toe xplain
If you allow me, I will send a message
Charly
If you allow me, I will send a message
No, explain it here. With words
Charly
An simple example of what do you mean
⍣ ᏗᏝᎥ ⍣
Charly
i can't
Well then we can't help.
⍣ ᏗᏝᎥ ⍣
Please wait, I'll see how best to ask
Muflone
i can't
Chances to receive help reduced by 99% Not a wise choice
⍣ ᏗᏝᎥ ⍣
Well then we can't help.
We have products, these products receive some information from the user, these fields in which information is filled, are defined separately for each category of products.
⍣ ᏗᏝᎥ ⍣
When a user wants to buy a product, for example, a dress, the information he must fill in is different.
⍣ ᏗᏝᎥ ⍣
Charly
Yes 👍
Like what attributes
Muflone
A dress could have size and color A CPU could have model, frequency
⍣ ᏗᏝᎥ ⍣
Like what information? different than what?
But I want it to be filled in a form by the user
⍣ ᏗᏝᎥ ⍣
Like what attributes
Fields for buying technology devices are different from buying clothes
Muflone
Fields for buying technology devices are different from buying clothes
You have to configure an attributes set to each product
⍣ ᏗᏝᎥ ⍣
You have to configure an attributes set to each product
I do this, the features are also displayed, but how to implement the fields that I want to get from the user?
Charly
It usually is made by using a Model that has attribute name and value as fields, and the product can have many of htem
Muflone
I do this, the features are also displayed, but how to implement the fields that I want to get from the user?
A product can have a foreign Key to the attributes set Or a product can have a many to many relationship to the attributes (not sets)
Muflone
I do this, the features are also displayed, but how to implement the fields that I want to get from the user?
Of course don't expect any help anymore after you call someone shortened or child after you ask and receive help freely I read your deleted messages and you DON'T DESERVE any help from anyone
⍣ ᏗᏝᎥ ⍣
Of course don't expect any help anymore after you call someone shortened or child after you ask and receive help freely I read your deleted messages and you DON'T DESERVE any help from anyone
I don't know how to speak English and I don't know what words and phrases are ridiculous in your opinion, I apologize if you see something unpleasant from me.
Km
Well noted, thank you administrator for elaborating on it. And, here is my question: I would like to let user can use the template(<a herf="{{some where}}" download>Click to download</a> )to download the file which was saved on the Ubuntu server, like a jpg image or a msg file, both of them are saved in the media folder of Ubuntu. But when I let DEBUG=False, it doesn't work (got 404 only) even I set up the Gunicorn and Apache. I did the Alias in the site-available.conf like this and let this .conf enable: Alias /media/ /home/su/prod/django_project/static/ Alias /media/ /home/su/prod/django_project/media/ The setting.py was divided into prod.py, commom.py and dev.py. Here are also some setting in common.py: STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') MEDIA_RUL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') And here are more something I checked: 1. The www-data have the permission since this user can access the media folder even reads the files. 2. The file can be upload to Ubuntu server by Django(by function of views.py actually) Could anyone please provide some advice to me? Thank you.
Km
Your issue is with apache. You need to look at the logs
Thank you for your response. Do you mean the error.log or access.log which exist in /var/log/apache2?
Leonardo
Anyone help me solve this problem, please. https://github.com/LBarros77/multiple-servers/issues/1#issue-1941126004
Km
Both
Well noted, thank you for your response.
2200090087_Shaik imran rasool
simple vehicle management system using django.how to implement
Alex
simple vehicle management system using django.how to implement
create vehicle model and add CRUD operations
Q
Hi, can someone properly explain the difference between the coded sending rabbitmq messages to celery and simply connecting rabbitmq to url celery?
Maxim
‎Hoshyar read the rules
Nazda
How to install Django
Doragonsureiyā
How to install Django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Jay
Hi @here Question: When I send a PATCH request using: curl --location --request PATCH 'http://127.0.0.1:8000/mobile/forms/update/f46f10e4-77b5-4a57-9459-4a12b752105c' \ --header 'Content-Type: application/json' \ --header 'Authorization: Basic YWRtaW46dGVzdA==' \ --data '{"is_accepted":3} ' But I get error: "Method \"PATCH\" not allowed The view uses Django rest_frameworks api view @api_view(['PATCH']) What could be the reason for this?
Deepak
Best source for learning drf?
Doragonsureiyā
Best source for learning drf?
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Deepak
!drf
Fast way to learn drf ?
Mirco
Fast way to learn drf ?
Start from tutorials in documentation Then there's Django for APIs book
Issa N'golo
I have two models Mutualist (full_name, phone number) and Sms (content, mutualists) which are connected by a ManyToMany relationship and the foreign key is in the Sms model through the mutualists key. What I want to do is when I record an SMS in the administration, I want the names of the mutualists to be in alphabetical order. I thought of the get_queryset method but I don't know how to use it in this case, where the objects (mutualists here) are in another model (Sms here)
2200090087_Shaik imran rasool
create vehicle model and add CRUD operations
After making views and creating models what to do in django
Doragonsureiyā
• Use a backtick (`) on both ends of your single line: print("hello world") • For more lines, use three backticks (```) before the first line, and after the last: def hello(name): print(f"hello {name}") • You can also select text when typing, and select markdown formatting.
Issa N'golo
@incdev_225
I do not understand very well 😅
Maxim
I do not understand very well 😅
hide @admin from the bot with markdown
Ilya
Hi, guys I have a question about django and how to properly launch a kafka consumer in it? I tried to run consumer with celery shared task, but there was some problems with fault tolerance. Could you give me some more variants, how can I do it, please? Because I didn't find something interesting on the Internet
2200090087_Shaik imran rasool
Add urls and deploy
How to store data for available parts and mechanic in django
Alex
How to store data for available parts and mechanic in django
Follow some tutorial or if you need project urgently, hire somebody.
Swapnil
Does any one knows how to write a django orm query for json field?
Doragonsureiyā
Does any one knows how to write a django orm query for json field?
Looks like you need to read the documentation of it
Anonymous
Hello everyone I have AWS free tair acces I am looking to deploy my django app in ec2 instance
Anonymous
I know manual process but how to automate when the code changes in GitHub automatically in ec2 also need to redeploy
Anonymous
In elastic beanstalk ,pipelines, container services I know but I have free tair access only
Anonymous
So if any one have idea about it please help me. Thankyou🙂
Anonymous
Please I need help in my rest API I created two models and it's query like wise the serializer but I want to merge the query in such a way that the create will contain the fields of the two models please can any one help thank you
Sarah
Hi! I am creating a leaked credential search engine and i am trying to develop a robust search functionality allowing users to query based on various criteria (Email:password). Anyone willing to help me?
Sarah
I'm not sure how to implement this search functionality or in which files I should make these changes. I was hoping to get some guidance or suggestions from someone with expertise in this area. If you have any insights or recommendations on how to approach this, or if you can point me in the right direction in terms of which files and code structures I should be looking at, I would greatly appreciate your assistance.
2200090087_Shaik imran rasool
how to store and retrieve data from postgressql for django
Muhammed
Hi I have a problem to make voice chat app, I saw the YouTube and other but none of them worked so please help me. Thanks a bunch
Charly
how to store and retrieve data from postgressql for django
You need to at least read the Django's official tutorial If you read some documentation you'll see how the orm works
Elilooli
hi I've started my first project in django and I can't get access to the "first project" localhost server, I use manage. py runserver it successfully runs it and give a link but the link gives "timedout" error. here's what I did to try and fix it but it did not: turned off firewall and proxy tried some different ports changed IPv addresses flushed DNS cashe deleted security policy for that server in my browser pinged the IP (it was working) I have no idea what else to do
Elilooli
What address has the link you gave others?
I didn't give any links to anyone should I?
Muflone
I didn't give any links to anyone should I?
So are you opening on the same computer where you execute runserver?
Arsenii
hey guy, i faced an error, that django orm can't handle, is anybody have faced the same problem? https://stackoverflow.com/questions/77289815/why-django-count-on-m2m-field-returns-wrong-value
Anonymous
Hi I am devloped frontend with react and backend with django rest project is completed and it is working fine at local mechine
Anonymous
But I am trying to deploy it on AWS ec2 instance