All Questions
502 questions
0
votes
0
answers
23
views
Mailchimp issue production
the issue is it works fine locally and not on production i have teh same keys in local and production and also when i move config keys up and down on local the error generates on local as well for ...
0
votes
1
answer
55
views
WebSocket Connection Issue with Django Channels in Gunicorn
I tried to implement live chat using Django Channels and Daphne. It works fine on my local server, but now I want to implement it in production using Gunicorn, nginx. However, when I reload and ...
1
vote
1
answer
63
views
Nginx server doesn't load static css files
I'm trying to deploy my django site to ubuntu server nginx by following this tutorial (https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu)....
0
votes
1
answer
47
views
django tenant local and server resolve problem
hello i develop django tenant app
in localhost when i request to ebsalar.localhost:8000 every think is ok
but when upload on server and use curl to check i got
Could not resolve host: ebsalar....
0
votes
1
answer
38
views
Django Nginx And Gunicorn subdomain hosting gets 400 error
Nginx and Django Setup Results in Bad Request (400) Error
I'm trying to configure Nginx to serve my Django application, but I'm encountering a "Bad Request (400)" error. I've set up my Nginx ...
0
votes
0
answers
29
views
Running a django app on an apache server with Xampp
I am a junior dev and have landed my first role but have no one here to ask questions to.
I have been tasked with migrating our company app from the current server to a new server. I have been doing ...
0
votes
0
answers
100
views
Connection Timeout on External API Call on Server but Works Locally
I have a Django 4.2.2 application running on Python 3.11. One of the views is as follows:
import requests
from django.http import HttpResponse
def get_captcha(request):
response = requests.get(
...
0
votes
0
answers
27
views
Django URL 404 - 1 week spent debugging with GPT4, Claude luck. One specific function is just NOT resolving
Issue Summary:
I'm facing an issue where the /LS/mark-text-responses/ URL in my Django application is not being found when an AJAX request is sent to the mark_text_responses view. This issue is ...
2
votes
1
answer
70
views
Static files not served while deploying Django application with Lighttpd and Gunicorn
I am working on my first Django project. I want to host the same using Lighttpd server rather than nginx or apache. The project works well in the developer mode. The 'runserver' serves all the files ...
-1
votes
2
answers
232
views
Is the server running on host "localhost" (127.0.0.1) and accepting web-1 TCP/IP connections on port 5432?
I have made a Django project with a postgresql backend and am trying to containerize it.
This is my Dockerfile:
FROM python:3.9
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
WORKDIR /app
...
0
votes
0
answers
20
views
Ajax request works succesfully in local but not working in web server. I use Django, Docker. I loads long time and after
Ajax request works successfully locally but not on the web server. I'm using Django and Docker. I've checked all my settings in my docker-compose.yml, Dockerfile, settings.py, urls.py, etc. After ...
0
votes
0
answers
37
views
Django Not Sending Tasks to Celery in Production
I am a deployer and delpoys django applications using gunicorn & nginx. Recently, I setup a celery project and here are my services:
Gunicorn Project Service
[Unit]
Description=gunicorn daemon for ...
0
votes
0
answers
61
views
127.0.0.1 slowness in django virtual environment running with vscode
After connecting to the server built in awsec2 with a remote of vscode, the django virtual environment was run to make a connection of 127.0.0.1.
But its speed is too slow.
When you connect using ...
-1
votes
1
answer
52
views
I cannot get the page to render for the Django Apps tutorial
I am using the django tutorial to create my first polls app and to learn Django
https://docs.djangoproject.com/en/5.0/intro/tutorial01/
Here are the files I have created so far:
in mysite/urls.py I ...
1
vote
1
answer
75
views
Error in connecting websockets when I push the code to server
I have implemented a Django Channel for real time messages between Group users.
It is working fine on the local system but when I push this to the server, I am getting the error:
WebSocket connection ...
-1
votes
1
answer
2k
views
How does the server know that API call has been made from the client?
I am currently reading articles on REST API and how the client and server interaction works. I had a question in my mind which is as follows:
How does the server know that REST API call has been made ...
1
vote
0
answers
53
views
"Set the REMOTE_MONITORING_BASE_URL environment variable" when trying to run django server
I was given a directory with Django project, and my task is to fing out hot it works. Cause I'm just statrting to study Django I face some difficulties with it. When I try to run server this error ...
0
votes
1
answer
73
views
How to make django file changes that can reflect it on the main server
I have made a change in the django default auth model template. I have added a new column in existing default auth table.
So from my project's models.py, I have made change in the django auth model ...
1
vote
1
answer
601
views
why they call ASGI a server while they say it is not in django?
i am studying Channels in Django Frameworke.
after that i went to study ASGI specification , but i got confused of :
First
they say that the ASGI is a server in here.
after that they say that the ASGI ...
1
vote
0
answers
193
views
Django program gets stuck on get request, needs to be interrupted with Ctrl C to continue
I have tried everything I can possibly think of but I don't know what the solution is. I have a django application which running on my local network and receives requests from a react app. When the ...
0
votes
1
answer
401
views
Django - How to solve error "SIGPIPE: writing to closed pipe/socket/fd"
My web app sends out an email to users utilizing a standard format per django.core.mail.message.EmailMessage.
It is received fine by most ISPs and browsers---but with one ISP, the emails are not being ...
1
vote
0
answers
68
views
Encountering "Not Found" Error Only in Production Environment
Not Found
The requested resource was not found on this server.
I think the issue is in my setting.py file:
from pathlib import Path
import os
import dj_database_url
# Build paths inside the project ...
0
votes
1
answer
300
views
Why I can't install django offline? [duplicate]
I have to install django on a company server that does not have Internet access. After downloading and installing ***pytz-2023.3.post1-py2.py3-none-any.whl*** I am able to install ***django*** from ...
0
votes
1
answer
393
views
More than one Django website on IIS server - it is possible?
I'm trying to run a Django website on an IIS server. After several tries, I finally succeeded. It works quite nicely. Now it's time for the next stage with which I have a bit of a problem.
My question ...
0
votes
1
answer
39
views
Function on Django object - server side
I have a Django application and a corresponding API. Within the code for the application I have some functions and some computed fields that I am not exposing in the JSON returned through the API. If ...
0
votes
0
answers
102
views
nginx django static files 403 forbidden error permission denied
ngnix.conf
server_name _;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
alias /home/megasoft/bots/hisoblovchibot/backend/static/;
...
0
votes
1
answer
106
views
Cannot authenticate a Django user using his token in a Apache2/Ubuntu server
I am creating a Django rest framework API to interact with an Android app.
I have opened the following endpoints:
from django.urls import path, include
from .views import UserViewSet, ...
0
votes
1
answer
365
views
AttributeError: module 'django.conf.global_settings' has no attribute 'ROOT_URLCONF'
I'm working on PokerAi with my server(Ubuntu),
and i used
https://github.com/datamllab/rlcard
https://github.com/datamllab/rlcard-showdown/
these sources.
I tried to run rlcard-showdown using my ...
0
votes
1
answer
228
views
Nginx + Gunicorn + Django: displays Nginx default page every 3 times
I have a Django app on Gunicorn 20.1.0 (:8000), served with Nginx 1.18.0 as the main server (link to the website) on Debian 11.2:
Nginx <-:8000-> Gunicorn <-> Django
The server displays ...
0
votes
1
answer
662
views
multiple django projects in one server using gunicorn and nginx with only ip and ports
I want to ask about deploying multiple django projects in one remote server using gunicorn and nginx. I've learnt that for each project I should create .socket and .service files and also configure ...
2
votes
0
answers
436
views
Setting up Django application on Hetzner Managed Server
I have a managed server from Hetzner for my wordpress websites and now I want to deploy a django application on it without renting a cloud server from hetzner.
The application runs on my computer with ...
0
votes
1
answer
219
views
How to make a web app running on a local server secure?
I wish to create an app using Django, which users can use on their respective local networks. I want to make this secure, and I have trouble finding a way. Most answers point to using self-signed ...
0
votes
1
answer
34
views
django-STATICFILES _DIRS not collecting
In my django project settings, I defined my static files like so:
STATIC_URL = 'static/'
STATIC_ROOT = BASE_DIR + '/static'
STATICFILES_DIRS = [
BASE_DIR +'/folder1',
BASE_DIR + '/folder2',
]
...
0
votes
2
answers
1k
views
How can I access my Django website on my phone using a local IP and port?
I created a website with django using asgi protocol.
and I would like to view this website via my phone.
After opening a local server on my pc to share the site locally
I searched for my local ip and ...
-1
votes
1
answer
55
views
How can I run my django project in server to run strongest?
What is the run command in django project when will run in server?
I have tried run my django project with python manage.py runserver --insecure. But I am not sure it is good idea for run project ...
0
votes
1
answer
86
views
Installing packages with pip on my centos server times out with an warnings and error
This is the error i get. Am using python3
pip install django
Collecting django
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by '...
0
votes
1
answer
176
views
Can I run a bot inside a Django project that will run independently of other Django apps?
I have a Django project for a website. And for the same website, I run another Python bot to scrap some data. I was wondering if I could somehow attach the bot to the Django project so that both can ...
1
vote
0
answers
325
views
postgresql - cannot modify default "postgres" user
How to change, alter, postgres default values for my project?
I have a django project which I try to deploy to digital ocean on an ubunto instance.
In psql I create a new user with new_password and ...
0
votes
1
answer
29
views
Why my views.py doesn't save submitted csv file in data folder in my app directory in Django project?
Hello I am working on a project Django.
I am trying to save a file after users submits it from webpage.
I created views and HTML..
part of the views.py, html and urls.py are provided below.
Can i get ...
-4
votes
1
answer
48
views
Django ModuleNotFoundError, project cannot recognize my application
when i use 'python manage.py runserver'
ModuleNotFoundError is come..
project cannot recognize my application 'main'
i ask it to chatGPT and modify insert 'main' in settings.py
but project still ...
0
votes
1
answer
55
views
How can i fix the 'Web application could not be started' error in passenger_wsgi.py
I attempted to install Django and Python on my server, but encountered the following error.
Error 'ModuleNotFoundError: No module named 'django''
This is my passenger_wsgi.py file:
Django module is ...
0
votes
3
answers
644
views
Can't open the django project index page in a browser side in EC2 AWS
Problem:
I can't:
1)use a local browser to open http://<public IP>:8000
2)use terminal to curl -v http://<public IP>:8000
3)Ping
I can:
1)use terminal to run curl -v http://127.0.0.1:8000,...
0
votes
0
answers
256
views
I can not start the server in any way due to problems with installing libraries and starting wheels
I need to run this server on Django and React
https://github.com/ozoneplatform/ozone/releases/tag/v8.0.0.0-GA
I cloned it to myself, went to the "ozone-framework-python-server" folder, ...
1
vote
0
answers
238
views
"The request's session was deleted before the request completed" on heavier requests
In my Django project I am frequently coming across the error:
The request's session was deleted before the request completed. The user may have logged out in a concurrent request, for example.
This ...
0
votes
1
answer
93
views
How to re-deploy Django changes in linux
My application is up and running on my server. I'm using linux Nginx and Gunicorn.
I'm logging in to the server using ssh with private key.
My question is how do I re-deploy updated version of the ...
-2
votes
1
answer
591
views
Django - Postgres connection
I am super beginner, but want to learn super fast building web application.
I am right now developing an Income-Expense web app on Django Framework (Python, js and Ajax).
I am now stuck with the ...
0
votes
2
answers
253
views
Reverse Proxy for Django App 404 Not Found
I am following this guide to try show this url www.mycompany.com/testblog instead of www.mycompany.com:8000/testblog
These are my current config files setup inside my website.comssl.conf file
<...
-1
votes
2
answers
55
views
How we can connect react js with django?
How we can connect react js with django without installing node js?
Code of connect django with react without install nodejs server
0
votes
1
answer
1k
views
Gunicorn Config File I've Created Doesn't Exist
I am using Django and Gunicorn to create a blog and am wanting to run my config file that I have created.
This is the path to my config file (the conf folder is at the same level as manage.py):
/var/...
0
votes
0
answers
31
views
Using the URLconf defined in wiki.urls, Django tried these URL patterns, in this order:
this question was asked before but i cant find the solution to this.
When i run server i get this:enter image description here
here is my code:
** helo\urls.py:**
from django.urls import path
from ...