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

Setting up django and apache using the tutorial isn't working

I am trying to set up apache with an existing django project using the tutorial in django site here. My os is Ubuntu, and everything is installed (django apache2 libapache2-mod-wsgi) My conf file WSGIPythonPath…
Apostolos
  • 7,763
  • 17
  • 80
  • 150
1
vote
0 answers

django apache mod wsgi 500 internal server error on form submittion MYSQL

So I've deployed django on vps with apache and mod wsgi. Everything seems to work fine except for one thing. Whenever I try to submit any of my forms, I get 500 server error. No errors show up in apache's errors log which is really weird. Also…
Marijus
  • 4,195
  • 15
  • 52
  • 87
1
vote
1 answer

502 bad gateway on Ngnix+Gunicorn+Django configuratoin

I am deploying a django webapp on digitalocean and I am using Nginx and Gunicorn. And when I open my url, it shows 502 bad gateway. In the nginx_errors.log, I find the following error message: [error] 12229#0: *1 connect() to…
Wei Xu
  • 1,629
  • 2
  • 19
  • 31
1
vote
5 answers

AWS Elastic Beanstalk, Error occurred during build: Command 01_syncdb

I need help deploying a django web app to AWS EB. My local development env is mac os maverick. I'm using django 1.6 and virtualenv 1.11.4. If you were able to deploy using the AWS instructions, I really hope you can share your experience and what…
1
vote
1 answer

deploy django mysql on heroku not working. Should I try amazon EB?

I've spent a solid week trying to deploy an Django app on Heroku from my mac osx. I went through series of trial and error and finally came to the conclusion that I should just give up. By way of background, I am using bitbucket, and mysql. I…
vt2424253
  • 1,387
  • 4
  • 25
  • 39
1
vote
2 answers

How to debug Django exceptions in OpenShift applications

Background: I am deploying a django application with Python 2.7.5 && Django 1.6. Currently I am able to render all pages, but one. The only error I am able to see when tailing the logs is: "GET /test/ HTTP/1.1" 500 2011…
Buck
  • 731
  • 1
  • 11
  • 23
1
vote
1 answer

django deployed site not loading static

Perhaps I have miss understood something? I've deployed a site on my Amazon ec2 server, and it loads the page, but not the static. I've placed the "site_media" directory under the "www" directory like so: www/site_media/static etc. And when I…
RuSs
  • 769
  • 2
  • 12
  • 27
1
vote
2 answers

Fabric - Force password prompt on Production Deploy

Is it possible to force the user to enter their password when they deploy to production? I was deploying to staging, but accidentally hit tab on the CL to production instead and almost made a huge mistake! Needless to say I will never use…
tzenderman
  • 2,523
  • 3
  • 21
  • 24
1
vote
2 answers

Deploying Django app's local postgres database to heroku?

I am unsuccesfully getting my django app deployed on heroku to use my local postgres db. My DATABASE settings are as follows: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'mydb', …
1
vote
1 answer

Subdomain hosting with Django + Nginx +Gunicorn

I am developing a web app using django for server-side. It has clients in android, ios and frontend. I was thinking of using subdomains for differentiating the urls of these clients. The differentiation is due to the fact that responses to urls are…
Saransh Mohapatra
  • 9,430
  • 10
  • 39
  • 50
1
vote
1 answer

how to set django development server

I am stuck on this step: i have a page, which i am developing in django. the page is ready to test. i deployed it. running well and it is online. but now i want to setup a new project in server as the testing version of what is online now. I went…
doniyor
  • 36,596
  • 57
  • 175
  • 260
0
votes
0 answers

Deploying Django on Xampp Apache server in windows gives endless loading in 'localhost' webpage

I am trying to host a django application on Apache server using XAMPP and after going through all the settings necessary for the app to run, the webpage in 'localhost' is loading endlessly, enter image description here Here's my setup: Running on…
0
votes
0 answers

Read-only file system error while uploading image/files in django site in Vercel hosting

I have deployed my django site in vercel(using free hosting plan). Now while I am trying to create a model object (which has image/file field) from admin panel, is not saving. Instead of this it is showing that OSError at…
0
votes
2 answers

How can I load SECRET_KEY from .env file in Django?

This is how my settings.py looks like: import os import dotenv dotenv_file = os.path.join(BASE_DIR, ".env") if os.path.isfile(dotenv_file): dotenv.load_dotenv(dotenv_file) # UPDATE secret key SECRET_KEY = os.environ['SECRET_KEY'] This is how…
0
votes
0 answers

Why is my django application on cpanel only recognising the root url and not any other url after the root url?

I recently deployed my Django application on a subdomain through Cpanel. However, when I try to access the application, only the root url is working. Any other address is not being sent. In the browser, anything after the / of the root url is grayed…