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

Apache: relative paths appended to current URL instead of added to basename

I'm new to web servers, so please be gentle: I've set up a new apache2 server on a Mint System (Ubuntu-base, which also means Debian-based). I've also installed a Django backend and the wsgi_mod extension. I'm just serving from localhost for testing…
Chaos_99
  • 145
  • 8
0
votes
1 answer

Deploying django for lot of sites with low traffic

Possible Duplicate: Can you help me with my capacity planning? I am looking for advice for our web server configuration. SaaS model startup (same app, different databases and subdomains). Serving 50+ sites right now. Dedicated server with 8GB…
quarry32
  • 255
  • 2
  • 11
0
votes
1 answer

Apache2: VirtualHost and Django

We're hosting two sites and don't have a domain name at the moment so we're using the IP address. I want the two sites to be accessed in the following manner: http://123.123.123.123/Site1 http://123.123.123.123/Site2 Site1 is a small About us type…
circuitBurn
  • 115
  • 4
0
votes
1 answer

Apache django mysql very slow

I am using Django, wsgi with apache, but the server is really slow when I try to insert data into mysql server. It takes 1 second to insert 200 rows in a table. The strange thing is that only 3% of CPU and memory is used by apache and mysql. I am…
Jiechao Li
  • 253
  • 1
  • 4
  • 13
0
votes
1 answer

How to get apache to use python 2 with mod_wsgi?

I have an Arch Linux server that used to use Python 2.7.3 just fine with Apache and mod_wsgi-3.4-2. I have both Python 2.7.3 and 3.3.0 installed on the server, and both executables are located in /usr/bin. Recently it has started to use Python 3. I…
Nathan Jones
  • 151
  • 1
  • 1
  • 9
0
votes
2 answers

Serving Django staticfiles via Nginx 404

I host my Djangoproject on Nginx with uwsgi. staticfiles need to be served separately by Nginx server { listen 80; server_name blog.foo.de; location /static { root /home/user/blog/staticfiles; access_log off; …
0
votes
1 answer

Problems upgrading to Python 3.3 and setting up Django

I'm new to Linux and am trying to set up Python / Django on my machine! I installed Python 3.3 from the source file and it was compiled into /usr/local/bin. Then I created a symbolic link between /usr/bin/python and /usr/local/bin/python3, so that…
0
votes
1 answer

Is there any way to isolate the python2.7 , mod_wsgi installation from main environment

I have many local virtual machines for building the django websites. I find it very hard to configure all the machines with mod_wsgi , python and all that installation issues. Is there any way that i can install even python 2.7 , mod_wsgi etc and…
Mirage
  • 561
  • 4
  • 10
  • 25
0
votes
1 answer

Django - Moving database from development to production servers

I am working on a Django project with a MySQL backend. I'm curious about the best way to update a production server's database to reflect the changes made on the development server's database? When I develop now, I make some changes to a models.py…
Garfonzo
  • 499
  • 2
  • 18
0
votes
3 answers

MySQL Not Turning On

I have an amazon ec2 instance running on the Amazon Linux AMI and its a micro instance. I wanted to install Django onto my server so I entered these commands wget http://www.mlsite.net/blog/wp-content/uploads/2008/11/go wget…
0
votes
1 answer

One server running Django (with Nginx and Apache) and Wordpress Blog

I have nginx listening to port 80 for my primary site foo.com. It proxys to port 8080 which is where the Django app lives server { listen 80; server_name www.foo.com foo.com; access_log /home/jeffrey/www/ddt/logs/nginx_access.log; error_log…
JCWong
  • 241
  • 2
  • 3
0
votes
1 answer

500 Internal Server Error when setting up Apache on Ubuntu+Django

I tried with Apache on ubuntu 9.04 and get the same error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@localhost and…
ApacheQ
  • 1
  • 1
0
votes
1 answer

Loading Module Into Apache - mod_wsgi

Loading Module Into Apache Once the Apache module has been installed into your Apache installation's module directory, it is still necessary to configure Apache to actually load the module. Exactly how this is done and in which of the main Apache…
0
votes
1 answer

recommendations for running varnish on same host as django

Is it reasonable decent practice to run varnish on the same host as the django installation it's fronting for? I assume you'd have to configure django so that it leaves enough room in RAM for however much you've allocated to varnish. Is that ok…
Kevin G.
  • 209
  • 3
  • 12
0
votes
1 answer

Different settings for secure & non-secure versions of Django site using WSGI

I have a Django website where some of the URLs need to be served over HTTPS and some over a normal connection. It's running on Apache and using WSGI. Here's the config: ServerName example.org DocumentRoot…
Jordan Reiter
  • 1,290
  • 4
  • 20
  • 40