Questions tagged [django-deployment]

django-deployment refers to questions about different ways to deploy Django applications

django-deployment refers to questions about different ways to deploy Django applications.

See documentation.

Also see:

214 questions
1
vote
1 answer

Deployment of django app - Scaling, Static Files, Servers

I am working my way to deploy my django app on a Linux Server. Encountered with various problems and want someone to clarify that for me. I searched for days but the answer I found are either too broad or faded away from topic. 1) According to…
Paaksing
  • 432
  • 1
  • 4
  • 17
1
vote
1 answer

Nginx routing Django Web App links to wrong path

I have a django app where the hompage routes correctly, but when I try to click on any of the links I get a 404 error. I looked at the logs and see: *1 open() "/usr/share/nginx/html/pricing" failed (2: No such file or directory) which tells me…
user3299745
  • 33
  • 1
  • 6
1
vote
1 answer

Django3.x - Heroku - raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")

I need your help colleagues. I am trying to deploy my Django Project on Heroku but I am getting a seemingly simple error but I have struggled to debug it for days. I would appreciate detailed help, I am a newbie. Thanking you in advance. Background…
1
vote
1 answer

Django Move Project from Windows Host to Linux Host (and Deploy)

I'm trying to Move my Django App to a real Server (or deploy it there, self-hosted) but everything, I have tried so far, does nothing except displaying errors. I'm using the SQLite database because the app won't get much traffic at all. For Example:…
Hige Mynx
  • 151
  • 13
1
vote
2 answers

Nginx + uWSGI + django NoModuleFoundError: No module named 'saleor'

Python 3.6.8 to create venv uwsgi installed in venv and is properly symlinked and using the correct python version nginx installed system wide just trying to get the most basic uwsgi --ini myinifile.ini to function properly. Despite days of trying…
david
  • 19
  • 5
1
vote
0 answers

Getting forbidden You don't have permission to access / on this server

i'm trying to deploy django application using apache & mod_wsgi on centos 7. I have added the following lines in the httpd.conf file: Alias /robots.txt /home/centos/sunlife/static/robots.txt Alias /favicon.ico…
charan
  • 11
  • 2
1
vote
2 answers

Deploy python 3.6.5 Django app on heroku-18 stack

So, I am deploying my first django app to heroku for the first time. I have configured the app locally, pushed it to my remote repository. But when I push the code to my heroku repository, the build fails giving the reason that python 3.6.5 is not…
1
vote
4 answers

Django Setup: No Such Table auth_user

Every time we set up our Django project in a new environment and try to initiate the server (migrate or runserver) the error message django.db.utils.OperationalError: no such table: auth_user shows (full error message below). I am assuming this…
creyD
  • 1,972
  • 3
  • 26
  • 55
1
vote
0 answers

django or gunicorn can't read linux environment variable

in an Ubuntu 16.04 server, I run following commands in the python shell: >>> import os >>> os.environ and the output is: environ({'DJANGO_DB_USERNAME': 'siteuser', 'DJANGO_DB_PASSWORD': '123456','DJANGO_SECRET_ KEY':…
msln
  • 1,318
  • 2
  • 19
  • 38
1
vote
0 answers

Django - No display on browser after deployment on ubuntu server

I have deployed my django project in our personal ubuntu server using apache2 and mod-wsgi. However I am unable to display anything on browser. All it shows is "ERROR" at the corner of the page. Please suggest if I am doing anything wrong. My…
surajitM
  • 239
  • 2
  • 4
  • 11
1
vote
1 answer

Django TemplateDoesNotExist in production server when it works in development

I get the following error. It's ONLY IN PRODUCTION where I deploy Django application using apache + mod_wsgi. IT WORKS PERFECTLY IN DEVELOPMENT server(my computer): TemplateDoesNotExist at / base.html postmortem. as you can see only one of my two…
Marijus
  • 4,195
  • 15
  • 52
  • 87
1
vote
1 answer

Django + uWSGI + Nginx (13 Permission denied)

I try to deploy like in this Guide on Ubuntu 16.04. But after all I am receiving 502 bad Gateway an in nginx log i have: 2017/03/03 13:28:08 [crit] 8928#8928: *1 connect() to unix:/run/uwsgi/marigu.sock failed (13: Permission denied) while…
Hellbea
  • 289
  • 6
  • 14
1
vote
2 answers

Django deployment method

What is the correct way to deploy a Django project online? Currently, the method I use involves ssh-ing onto the server, git pull, performing Django chores (migrations, collectstatic etc) and then restarting the web server. There must be an…
zubhav
  • 1,519
  • 1
  • 13
  • 19
1
vote
1 answer

no such table: auth_user error while logging to /admin/ after deploy django app on pythonanywhere

I have an issue after deploy on pythonanywhere.com test hosting and setting up an MySQL Database. When Im trying to login to admin with my superuser I get this error: Environment: Request Method: POST Request URL:…
Taras_G
  • 65
  • 1
  • 10
1
vote
2 answers

Django Static Files Not Loading in Deployment

I've been going at this for about 3 hours now and I'm completely lost and running in circles. I'm trying to get my static and media files into deployment. My settings file looks like this: DEBUG = False ... STATIC_ROOT =…