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
5
votes
2 answers

Zonal network endpoint group unhealthy even though that container application working properly

I've created a Kubernetes cluster on Google Cloud and even though the application is running properly (which I've checked running requests inside the cluster) it seems that the NEG health check is not working properly. Any ideas on the cause? I've…
5
votes
1 answer

django site ERR_SSL_PROTOCOL_ERROR after https setting

So I am trying to deploy my site and basically tried python manage.py check --deploy and followed what ever it told me: WARNINGS: ?: (security.W004) You have not set a value for the SECURE_HSTS_SECONDS setting. If your entire site is served only…
Hansong Li
  • 417
  • 2
  • 11
  • 26
5
votes
1 answer

Deploy Django using MySQL to AWS EC2 and RDS

I'm trying out AWS EC2 and RDS. I had followed this tutorial and it worked, but the tutorial is missing a database migration. https://www.youtube.com/watch?v=YJoOnKiSYws So, could someone point me in the right direction to continue with the…
vt2424253
  • 1,387
  • 4
  • 25
  • 39
4
votes
1 answer

Django and SuspiciousFileOperation:Detected path traversal attempt

I find myself in an odd situation only when deployed (debug == false): My model throws a path traversal attempt exception. I want to create a directory for every file uploaded and save the file within the directory (some.zip) used in example. In my…
xtlc
  • 1,070
  • 1
  • 15
  • 41
4
votes
1 answer

Deploy Django 1.10 app with python 3.6 on Google Compute Engine

I have created a project using with Django 1.10.5 and python 3.6, now I need to deploy this project on google compute engine.I have googled a lot but couldn't find any clear guide to deploy my Django app on compute engine. What I have tried: Create…
4
votes
1 answer

Query still running for django_migrations

I'm developing a django web app and i have notice something strange. The following query will stay in execution in the DB SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations" here the example from: select…
Mattia
  • 961
  • 13
  • 25
4
votes
3 answers

Serve different Static files on devel and production in Django

I have a production and local DJANGO development environment. To push things to production we have a deployer which minifies and gzips all CSS and JS files. To serve them on production I need to call them like
4
votes
1 answer

Gunicorn not reloading code completely with the HUP signal

I'm running gunicorn and I use the HUP signal to reload gunicorn gracefully. However, it seems that changes in models.py are not reloaded for some reason. To be specific I do: sudo kill -HUP `cat masterpid` I also run gunicorn with supervisor, so…
tzenderman
  • 2,523
  • 3
  • 21
  • 24
4
votes
2 answers

pip with fake computer architecture (64 bit instead 32 bit)

I host a Django website on a server where I have only FTP access. The server has a 64 bit architecture, my computer has a 32 bit architecture. For some modules, like MySQL-python, the architecture matters. Is there a way to build a site-packages…
Philipp Zedler
  • 1,660
  • 1
  • 17
  • 36
3
votes
2 answers

django.db.utils.OperationalError: FATAL: database does not exist (postgres / deploy to digitalocean)

I am trying to deploy a project with digital ocean. I followed the instructions found at https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 Some of the important ones: I…
Justin
  • 1,329
  • 3
  • 16
  • 25
3
votes
1 answer

Django app deployment not loading static files

I have a django app which has angular and bootstrap. This is how my settings are defined: # Django settings for studentsite project. import os PROJECT_DIR = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your…
user2062360
  • 1,323
  • 5
  • 16
  • 29
3
votes
1 answer

SyntaxError in static.py when installing django-toolbelt

I am deploying my site to heroku. After successfully creating a virtualenv, I ran into a problem when installing django-toolbelt using "pip install django-toolbelt" in this virtualenv. At first, everything is fine, until: Running setup.py install…
Yang Wenhao
  • 544
  • 1
  • 4
  • 15
2
votes
1 answer

Error in deploying Django app on Google cloud using appengine "django.core.exceptions.ImproperlyConfigured: Set the SECRET_KEY environment variable"

I am trying to deploy my own django app on google cloud. I'm following this documentation by Google Cloud to deploy the app. I have changed the settings.py file of my app according to the settings.py file of the sample app provided by Google. I have…
2
votes
0 answers

loading dump.json file to a new postgres database from django

I'm switching from the default sqlite3 database to the PostgreSQL database but I'm getting an DETAIL: Key (slug)=(superadmin) already exists. error the steps i did: py manage.py dumpdata --natural-foreign --natural-primary -e contenttypes -e…
2
votes
0 answers

ASGI errors when deploying Django project for production

I want to deploy my django project and I used ASGI server I applied all steps from the official django website: https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ But it does not work I tried a lot of ways and solutions, but it all…
1
2
3
14 15