Questions tagged [django]

Django, "the web framework for perfectionists with deadlines", is a Python-based framework for creating web applications. With a powerful object-based database mapper, a clean syntax for mapping URLs to views, a simple template language and a convenient automatically generated administration interface, Django is the most popular of the Python web frameworks.

1012 questions
0
votes
1 answer

Nginx and Gunicorn hanging on GET requests

I'm using Nginx + Gunicorn which is serving my Django project. All GET requests hang for ~1 min. The content seems to be available immediately as I can see it in the Browser inspector but the browser itself looks like it's still waiting for more…
whatWhat
  • 529
  • 2
  • 5
  • 9
0
votes
6 answers

Is it sane to run a web-app framework from SVN?

I'm looking at Django[http://www.djangoproject.com/], and the entire system appears to favor deployment via SVN. Documentation warns you when you're not reading from SVN trunk; and people in #django claim it's easier to follow the SVN mechanism. My…
jldugger
  • 14,342
  • 20
  • 77
  • 129
0
votes
1 answer

Send nginx X-Accel-Redirect request from remote server

I have 2 server first (domain.com) is a django/apache server, second (f1.domain.com) is a file server (nginx) where some files are protected and should be allow download only to registred user, so i have setup a nginx server with a server { …
phingage
  • 3
  • 3
0
votes
1 answer

How to add php to a linux (ubuntu) server already running nginx + gunicorn + django

I have been running a django app on nginx using gunicorn on Ubuntu (now version 12.04) for some time now, and have been pleased with the results. My issue is that I have inherited a php site which I want to run on the same server. Can anyone give…
Finglish
  • 135
  • 1
  • 1
  • 7
0
votes
1 answer

mod_wsgi.so: Cannot load mod_wsgi.so into server: libpython2.5.so.1.0: cannot open shared object file: No such file or directory

I get the following error: when i try to restart the server: [root@lts5srv1 mod_wsgi-2.3]# service httpd restart Stopping httpd: [FAILED] Starting httpd: httpd: Syntax error on line 202 of…
Kreshnik
  • 145
  • 1
  • 3
  • 9
0
votes
1 answer

Apache server only responds to external IP

I am learning Django and wanted to test hosting it on an Ubuntu computer I have. I decided to serve it with Apache and mod_wsgi. I got most things working, but I have one thing puzzling me. I can access the website only from my external IP address,…
LordLing
  • 3
  • 1
0
votes
1 answer

Apache stops serving request

I am running django with mod_wsgi and every thing works fine most of the time but at times I observe that all of sudden Apache stops serving any requests, monitoring service on server says httpd is still running but requests take too long and fails…
vishy
  • 61
  • 1
  • 3
0
votes
1 answer

Running two wsgi applications on the same server gdal org exception with apache2/modwsgi

I'm trying to run two wsgi applications, one django and the other tilestache using the same server. The tilestache server accesses the db via django to query the db. In the process of serving tiles it performs a transform on the incoming bbox, and…
monkut
  • 255
  • 3
  • 13
0
votes
2 answers

Error while installing with Python "pip": Cannot fetch index base URL http://

I am trying to install a local version of ScrumDo for testing. Only then I come to the point in my installation that I have to run: source bin/activate pip install -r requirements.txt I get the error: Downloading/unpacking…
0
votes
1 answer

Nginx index not at project root

I have an index.html page that's stored alongside with the rest of my client-side resources (/opt/django/media/index.html). I can get nginx to serve the page as the index for requests to just the domain name, however it serves it as if it is located…
Chris
  • 103
  • 2
0
votes
1 answer

Starting a Amazon EC2 Free Tier with Ubuntu and Django

I'm planning to begin a Django project that may (or may not) grow to be a pretty big thing. So I wanted to start out well: buy my public DNS (not sure yet if with Google Apps or any other domain provider) and start with a Amazon EC2 server. So the…
wocoburguesa
  • 109
  • 1
0
votes
1 answer

Deploying django project under sub-URL with Apache/FastCGi

I am trying to deploy a django project under a sub-URL on hostgator hosting. Here is the tutorial I was following: http://support.hostgator.com/articles/django-with-fastcgi My index.fcgi looks like this: #!/usr/bin/python2.7 import sys,…
Irfan
  • 135
  • 1
  • 4
0
votes
1 answer

Serve PHP page mapped as part of Django's (Python's) virtualhost

I have a question similar to this: Apache : Map one virtualhost to a subdirectory of another virtualhost Except mine is about serving PHP within Django's domain like that: example.com serves Django, uses WSGI etc., example.com/some_app needs to be…
Tadeck
  • 119
  • 7
0
votes
1 answer

Should I be setting up my Django app on my server via SSH or locally?

Ok noob question: I have a little micro AWS EC2 instance running, and I'm going through this Django tutorial. SSH'ing into my EC2 means that all the work I'm doing, like editing the config files, making Django apps/projects, etc. is very slow, with…
kalaracey
  • 197
  • 2
  • 6
0
votes
1 answer

Django hosting on linux - what's the most memory-efficient technique?

I've got a VPS (Ubuntu 10.04, 512MB) on which I host 10-15 django sites, most of which have intermittent traffic. I'm wondering what the best hosting technique is in this situation, where the processes are mostly sitting idle. Currently, I've got…
Greg
  • 239
  • 1
  • 12