person
But Its showing another error
Alex
I did it
Listen calm down, it may be overwhelming, So, let's go step by step
person
Which error?
About ALLOWED_HOSTS
Charly
About ALLOWED_HOSTS
You need to give us the exact error
Alex
Let's go bro
The error page is showing debug = True is the reason for you "seeing" that error, it means debug = True provides you the ability to see an error in the form of a detailed log in the frontend, not that it is responsible for causing the error.
Alex
"Debug=True" here means it is currently used or running under the developer's watch, and developer needs to know the detailed reason for the error, by turning it into false you are telling your project "hey, development is complete don't show error in the front end" because user or clients don't need to know about the error in your project.
Alex
Can you share a screenshot of your error page?
Alda
Now , what should I do?
When you turn debug false , you have to specify your host in allowed host variable.
Ashish
I am trying to make Django connect to a remote database server using SSHTunnel. Using SSHTunnelForwarder, it's binding a local port to the remote port. Everything is working as expected on local but when I dockerize the application, it fails to read the private key. I have created a bind link for the key on the server to the container and the path is declared in the environment variables
Ashish
I'm getting a: "No public key or password" error
Ashish
Has anyone deployed a database connection from django to a remote database using sshtunnel
Ashish
From inside a docker container
person
Can you share a screenshot of your error page?
I can't share any media in this group
Alda
What to type in host
Your URL, something like http:yourdomain.com
yusof
Hey I wanna add new field named priority in my existing model and i want to set 1 to n for this field value in each record. Does anyone know? Tnx
Alex
how to handle ugettext_lazy() deprecation, while upgrading from 3.0.0 to 4.0.4,
Arik
What will be best way to save video in django ?
Andrej
What will be best way to save video in django ?
You should use the file storage api https://docs.djangoproject.com/en/4.0/ref/files/storage/ Which place to store your videos depends on your architecture. How many videos do you expect to save? Are they available for downloads or for streaming? The answers to these questions have an impact on which target you will save your videos. The simplest way is to save the as files locally, AWS or on Dropbox through the storage API.
André
hm, when i load a class in apps.py (in def ready) i want to be loaded once at start, how would i access it in django later?
Alex
not the right place
SomeBody
Hi, advise hosting (paid or free) so that you can just upload files with the project. Hosting is needed for a couple of days, so it doesn't matter what it will be
amar
Hi all i need help in django restframe work
amar
I want to post data to a many to many field many to many field expect id but data comming from front end is in json format how I can save data in json formate in many to many field
amar
Please help
Pharaon
You can use a serializers
Pharaon
You may create a API REST assciacte with your modèle
Pharaon
Model
Anonymous
Please help me
Anonymous
I have a card. When you click the button, the html page associated with the model opens
Anonymous
But when you add a new form, it is also added to other cards
Anonymous
Kinos
I'll
Fariz
How can we use filter in pagination without reordering the items when we click next page
rtg
Hi, i have a Django desploy question (gunicorn, nginx). When i execute "sudo systemctl status gunicorn.socket" this shows in green color (gunicorn.socket and gunicorn.service).
rtg
But whe i execute "sudo journalctl -u gunicorn.socket" this shows "gunicorn.socket: Failed with result 'service-start-limit-hit'." (in yellows color).
neruslvn
"QuerySet object has no attribute "id"." How to fix it?
Kamronbek
"QuerySet object has no attribute "id"." How to fix it?
I once faced this issue due to serializer, can you show the code
neruslvn
I once faced this issue due to serializer, can you show the code
if not request.session.session_key: request.session.save() session_key = request.session.session_key is_views = PostCountViews.objects.filter(questionId=questions.pk, sesId=session_key) if is_views.count() == 0 and str(session_key) != 'None': views = PostCountViews() views.sesId = session_key views.questionId = questions views.save() questions.count_views += 1 questions.save()
Anonymous
Hello, does anyone have a file with django packages?
Charly
Hello, does anyone have a file with django packages?
No, you usually install them from pypi with pip
Baba
Hello ,I have a question how do I create feeds which user can only see it own feeds and profile. Pls I have been on this for few days now . Thanks
Shery
Shery
if Feeds are not shared at all, use OneToOne
Shery
after that, you will need to create views with permissions
Shery
https://docs.djangoproject.com/en/4.0/topics/auth/default/
Shery
Finally, your view just need to return something like it: def FeedViews(request): feeds = Feeds.objects.filter(user=request.user) ... do what you want with the list, usually you want to add 'feeds' to the context dict ...
Finjp
How to add username to each line in django logs?? Can someone help. Thanks in advance.
🅰️🅷🅼🅰️🅳
Hello everybody. are there any who use summernote
Anam
I want to create a sign in and sign up form which takes input from a flutter app with validation and stores in django....how to do that
Anam
Why such rules???
Егор
Why such rules???
Because you don’t want to disturb people if your question is stupid/googleable/not fullfilled
Anam
Okok🙂
Anam
Okok
Vansh
Check module file
Vansh
And check path
Vansh
Check the file of models And Check Urlspattern
Mamikon
Hi friends... At the beginning I had had application UserModel in PROJECT_DIR/apps/authentication directory with AUTH_USER_MODEL="authentocation.UserModel". now I need to change it to PROJECT_DIR/apps/api/authentication... but now I can't set correct path for AUTH_USER_MODEL ... here is the following error when I want to start my project: ValueError: Invalid model reference 'api.authentication.User'. String model references must be of the form 'app_label.ModelName'. Any ideas how to solve this?
Sai
Any one know the code for webscraping from flipkart using django
𝕊𝕙𝕦𝕜𝕦𝕣𝕦𝕝𝕝𝕠
hi everyone how to make django internal email system
lubaskinc0de
https://stackoverflow.com/questions/71988843/request-is-not-passed-to-filterset-in-django-filters pls help me pls
Mekdim
Guys am having problem with updating mysql table using django project is there anyone who can help with my problem ... Or simply why .is_valid() method is false
Akshat Jha
Can anyone help me for how to update or edit my formset because instance is not working?
Mekdim
if is_valid() returns False, there will be .errors in the serializer
I have print that forms.errors but the errors says that fileds can't be empty but the values are filled