Questions tagged [django-deployment]
django-deployment refers to questions about different ways to deploy Django applications
django-deployment
225
questions
0
votes
1
answer
43
views
Django static files not working on cpanel
my settings.py static settings are
STATIC_URL = 'static/'
STATIC_ROOT = '/home/mywebsite/public_html/dj/static/'
I have run: manage.py collectstatic successfully.
I restarted the app.
But when i hit ...
-3
votes
0
answers
24
views
Admin page not found (404) in Django project?
I'm using a shared hosting with cPanel but without Terminal access. After struggling to make it work, the website shows the home page at : https://mywebsite.com but not found (404) for the url: https:/...
0
votes
0
answers
33
views
I keep getting these errors "GET /static/style.css HTTP/1.1" 404 179 , "GET / HTTP/1.1" 200 10881 , Broken pipe from ('127.0.0.1', 57644)
STATIC_URL = '/static/'
STATICFILES_DIRS = ((os.path.join(BASE_DIR, 'static')), )
STATIC_ROOT = os.path.join(BASE_DIR, 'files')
STATIC FILES_FINDERS = [
> > "django.contrib....
-2
votes
1
answer
106
views
Django Static files Permission Issue on nginx
i want to deploy my Django project on linux vps but i have a problem and the problem is my nginx denies the permission for opening the static files i found this error
in error.log file:
open() "/...
0
votes
0
answers
41
views
passenger_wsgi.py not responding while deploying django project on cpanel
I am trying to deploy my django project on cpanel for the first time. The problem I am dealing with is that when I create a python app in cpanel, the passenger_wsgi.py file is created but does not run ...
0
votes
0
answers
29
views
Troubleshooting Nginx Proxy_Pass Issue: Traffic Not Redirected to Gunicorn Despite Correct Configurations. Site shows default Nginx welcome page
I have implemented Nginx as a reverse proxy to Gunicorn for serving a Django website. Despite verifying the configurations, the site continues to display the default Nginx welcome page upon visitation....
0
votes
0
answers
25
views
ValueError: Missing staticfiles manifest entry for 'css/bootstrap.min.css'
I've tried almost all the solutions exist on stackoverflow and few other channels but I couldn't get this resolved. File already exists on path but it couldn't find it. Same behavior on the server ...
0
votes
1
answer
51
views
Django Admin Panel and Sub URLs Returning 404 Error on Deployment
have recently deployed my Django project to a server, and while the index URL (mannyebi.com) loads correctly along with static files, accessing sub URLs such as mannyebi.com/blogs or even the admin ...
1
vote
0
answers
89
views
How to serve a Svelte app frontend build in Django backend static?
The svelte app is normal svelte (not kit) with some routing. Build by npm run build into:
/dist: /assets/index.js, /assets/index.css, index.html.
I tried to follow this tutorial for React and expect ...
1
vote
3
answers
375
views
DEBUG=False is not showing static and media files in Django project on Cpanel
I've looked into many articles and videos on this topic, but either I didn't understand or the solutions were insufficient. I would be very happy if you could help. I developed a Django project and ...
0
votes
0
answers
23
views
Django: Application redirects to login page again and again and not to home page in local network
I have created a Django application and hosted on local network. when I use http://localhost:8000/klo/ it redirects to the login page and after successful login, it redirects to the home page http://...
0
votes
0
answers
58
views
Django : Static served using nginx couldn't work Error 404
I am using homebrew to start the nginx services.
Django project directory :
core (app)
main_app(app)
maps(app)
static/
css folder,
js folder etc
templates
manage.py
Steps :
I add the static ...
0
votes
0
answers
43
views
Security considerations in a nginx and uwsgi serve and django
I am deploing a django app in a server with ubuntu as SO and nginx with uwsgi for the webserver and I want to know the security configuration I should use.
I deploy the web page in local with ...
0
votes
0
answers
25
views
When deploying on pythonanywhere i followed all stepts but still get the default pythonanywhere page
I did all the stepts from the documentation but still get the pythonanywhere default page, and I do not even know from where is coming since is not in my wsgi. Below is my wsgi, anyone has any clue? ...
0
votes
1
answer
173
views
Troubleshooting AWS Elastic Beanstalk Deployment Errors with Django Applications - Error: EbExtension build failed
When I was trying to deploy my Django application to AWS Elastic Beanstalk. Then I got this error.
2023/12/30 21:26:42.478526 [ERROR] An error occurred during the execution of command [app-deploy] - [...