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

Django settings.py not updating

I have enabled the setting: USE_X_FORWARDED_HOST = True in my settings.py. I am currently deploying the server, but when I try to render my index page it gives me a 404. The email says that it is a: Invalid HTTP_HOST header: u'127.0.0.1:9001 And…
1
vote
0 answers

Cookieless domains for static in Django + Nginx

I've found a tip of using cookieless domains for serving static files. My experiments have shown seriuos drop in request time (django-debug-toolbar) that is pretty much what I wanted to get. The problem is that I want to add…
1
vote
1 answer

Nginx shows 404 and the logs are clean

I'm trying to deploy a django application to AWS EC2 instance using Gunicorn & nginx. I followed this tutorial because it worked for me last time, but now it's not. I always get 404 response, even on static files. Supervisor…
1
vote
1 answer

Update Django app hosted at pythonanywhere

Hi I have some app hosted at pythonanywhere using github, and now I made some improvements to the app in my local machine, but I do not know how to update the online app whitout affecting the database. Thanks in advance?
1
vote
3 answers

Django project templates related css is not working in production

I got following settings: STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'static', 'appname'), ) In my templates I got
Shazia Nusrat
  • 174
  • 1
  • 10
  • 36
1
vote
1 answer

Django error with PostgreSQL

I was trying to run my Django App with PostgreSQL as my database engine. I'm getting a template rendering error from the template loader after deployment. It's for the form I created using ModelChoiceField. And also while migrating I get an error…
1
vote
2 answers

Error on deploying Django app using WSGI on Apache2 server

I am trying to setup the Django app on Apache2 server with Ubuntu. I used the following tutorials to do the essentials. https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04 I also…
1
vote
0 answers

Deployment script to accommodate up-gradation of 3rd party apps and (fake) migration of models

In fabfile.py, I use something similar to the following to install dependencies and to migrate the changes to the new model run("pip install -r ../deployment/pip/deploy.txt") run("python manage.py migrate --settings=project.settings.prod") When I…
1
vote
2 answers

Issue in deploying django application

I am getting "Internal Server Error" when I try to access the django website. I am using Django 1.8, Python 2.7.10, centos 6.5 and apache. In apache log I am getting the following error: mod_wsgi (pid=23866): Target WSGI script…
ak111in
  • 107
  • 2
  • 11
1
vote
1 answer

Can not deploy django using gunicorn and supervisor

I'm trying to deploy a django project using gunicorn/nginx as webserserver. The project works perfectly fine when I just run this command in virtualevn: (.zenv)randi@server:/srv/myproj$ gunicorn --bind 127.0.0.1:8000…
Jand
  • 2,527
  • 12
  • 36
  • 66
1
vote
0 answers

intermittent but frequent NoReverseMatch error from deployed django application

I have an application deployed at http://opencalaccess.org/ccdc/latest/ This is a colo running Ubuntu 14.04 LTS. If you hit this, you may get a blank page that says "Server Error (500)" and nothing else. You may get a NoReverseMatch exception. If…
Ray Kiddy
  • 3,521
  • 3
  • 25
  • 32
1
vote
0 answers

Getting Error NoReverseMatch error in Django. (It works at local but doesn't work at server)

I have project and i must to deploy my project to server. In local, my project can work properly. But, when i try to run in server. Why appears this error Environment: Request Method: GET Request URL:…
1
vote
1 answer

Good way to deploy a django app with an asynchronous script running outside of the app

I am building a small financial web app with django. The app requires that the database has a complete history of prices, regardless of whether someone is currently using the app. These prices are freely available online. The way I am currently…
gpanterov
  • 1,365
  • 2
  • 15
  • 25
1
vote
2 answers

Django views error when deployed

I have modified the following method on my development machine and it works perfectly fine there: def profile_search(request): args = {} qs=[] if request.method == 'GET': page = request.GET.get('page') print 'page…
supermario
  • 2,625
  • 4
  • 38
  • 58
1
vote
2 answers

Django app shows the same instance every time I hit the server

I have a sample Django app which is being hosted on an Apache2 server using mod_wsgi. Currently I am testing it only on the loopback address (127.0.0.1). So this is what I do: Open a tab and go to the loop back address. And then I work on the…
Yathi
  • 1,011
  • 1
  • 12
  • 21