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 ...

learn more… | top users | synonyms

-2
votes
0answers
26 views

Why won't uwsgi see my new static files? [on hold]

I uploaded a new CSS file with the same name, and a new image with the same name as before, but no matter what I try, it won't serve the new files. I've tried everything. I've tried touching the .ini ...
0
votes
0answers
15 views

Apache single sign on redirecting to success login page, Django application

All I have a Django web application with relative paths url. For instance, I have www.example.com/inventory/get_item/?item_id=5 In the apache configuration I am using oracle single sign on to ...
0
votes
0answers
8 views

Howto rewrite URLs with two nginx as reverse proxies to gunicorn/Django

I have a Django application, deployed with gunicorn on port 8000, on a VM with a backend nginx, port 80, on the same VM. The nginx config is: location / { proxy_http_version 1.1; ...
-1
votes
0answers
12 views

Django needs permission to do os.system() in Apache and mod_wsgi

I am stuck in a permission problem with Django, Apache and mod_wsgi, I think! I have successfully deployed my Django application in a development environment with Apache and mod_wsgi were also static ...
-3
votes
0answers
9 views

nohup: failed to run command ‘redis-server’: No such file or directory [on hold]

When i run this command nohup redis-server & command I'm getting this error nohup: failed to run command ‘redis-server’: No such file or directory Can anyone help me out. I have installed ...
0
votes
0answers
16 views

Installing PySide on an Amazon EC2 Instance Running Django

So I realize my title is almost laughable, but my situation is this. I have a fairly complicated desktop app written in Python and the PySide Qt bindings and I need to make a stripped down version of ...
-1
votes
0answers
29 views

Apache configuration for permanent django

I do not have much experience in running django via apache on VPS. I've configured django and apache as it is explained here: ...
0
votes
0answers
20 views

CenOS 6.5 Apache 2.2 Django Project gives / 403

I have Apache 2.2 running over CentOS 6.5 for first time. I faced no problem with Ubuntu with configurations below, but on CentOS always giving me 403 error. The example.com domain is living under ...
0
votes
1answer
29 views

Configuring Apache with Django

I'm trying to configure Apache with Django. Everything is working except the admin panel. It's static files are not loading. The documentation talks about different ways of doing it but none are ...
0
votes
1answer
37 views

Django, Ubuntu, Apache, mod_wsgi

I'm trying to configure apache with django on Ubuntu 12.04. I'm using mod_wsgi. I used a couple of different tutorials but none of them fully worked for me. Frustrated, I installed nginx without ...
0
votes
2answers
51 views

munin-cron Unable to Copy Contents

I recently installed munin on my (Fedora12 based) server. Now, I wanted to get all the graphs in a static directory (The application runs on Django). So, I edited the file /etc/munin/munin.conf by ...
0
votes
0answers
2 views

Cannot connect to webserver from outside LAN [migrated]

I am running the Django development server on a computer at home on 0.0.0.0:80. I am also running an SSH service on port 22. I have configured my router (Virgin Media Superhub 2 with external IP ...
0
votes
0answers
30 views

restart nginx after modifying settings.py and urls.py

In my django project, I modified the files settings.py and urls.py. My web application runs on nginx server. I reloaded the server using the following command: /etc/init.d/nginx reload But the ...
0
votes
0answers
14 views

Adding extra header using middleware module in django

I was trying to log the user-name in the nginx logs. As I am not doing basic http authentication, adding $remote_user in log_format doesn't work. I will need my application to tell Nginx what the ...
4
votes
1answer
38 views

Storing username in nginx logs

Is there a way in which user-name or user-id can be stored in nginx logs. I tried inserting $remote_user in the log_format directive but it doesn't seem to work.
1
vote
1answer
48 views

How to Access Apache Virtual Host from Cell Phone?

I'm developing a mobile web application using Django. Currently I can start the Django development server like this: python ./manage.py runserver <my-ip>:8000 When I do that, I'll get a ...
0
votes
2answers
34 views

Django fails to find static files served by nginx

I know this is a really noobish question but I can't find any solution despite finding the problem trivial. I have a django application deployed with gunicorn. The static files are served by the ...
0
votes
0answers
21 views

Can't run django with lighttpd and FCGI

I'm trying to run django on lighttpd but I'm not able to do it. In logs I see this: 2014-05-30 13:45:32: (log.c.166) server started 2014-05-30 13:45:32: (mod_fastcgi.c.1103) the fastcgi-backend ...
2
votes
0answers
64 views

How to deploy django with uWsgi and nginx on CentOS

My version of Django is 1.6.3 I downloaded uwsgi-2.0.4. Someone says installing uwsgi with command make while someone use python setup.py build. What exactly is the difference? I saw a tutorial that ...
1
vote
1answer
38 views

Distributing load from Django App

I am currently approaching stages to move my first large-scale application out of development. I have talked with some CTOs who know what they're talking about, and I have been advised to do the ...
0
votes
0answers
58 views

Apache django and tomcat

I have one app running on tomcat6 and a website running with django I would like that if the user write 127.0.0.1/manager/html --> redirect on tomcat otherwise redirect on django Here is my apache ...
1
vote
1answer
107 views

Tuning django based site deployed using apache wsgi for better performance

I'm running django application using apache+mod_wsgi, I have setup 6 medium ubuntu servers on Amazon ec2 in which 2 for mongo and 4 for django and apache, using ebs for postgresql and configured a ...
-1
votes
1answer
51 views

Time out when access localhost for ec2 ubuntu server

I am trying to access the local host for my ubuntu server hosted on ec2 when I run python manage.py runserver 0.0.0.0:8000 I have my security setting set to port 80 0.0.0.0/0 and I want ...
6
votes
1answer
106 views

Why do I need nginx when I have uWSGI

There are many tutorials on how to configure nginx to cooperate with uWGSI when I want to deploy Django application. But why do I need nginx in this kit? uWSGI itself can serve WSGI Python ...
0
votes
0answers
37 views

Run Django on Gunicorn with Python 3.3

How would one go around to run Django on Gunicorn using Python 3.3 on an Ubuntu 12.04 LTS Server? As Ubuntu 12.04 LTS is dependend in Django 2.7, Python 3.3 has to be installed side-by-side with ...
1
vote
1answer
135 views

RHEL SELinux blocking Apache access to PostgreSQL

I'm running a Django app that uses PostgreSQL. The server is running RHEL 6.5 with SELinux. I'm having an issue where the Django app can't connect to the DB, and I think it's because SELinux is ...
1
vote
0answers
1k views

upstream timed out (110: Connection timed out) while reading response header from upstream

For some reason, I am getting this error whenever I am running a query on my server. On my local setup, this query takes around 7-8 seconds to return, but it keeps timing out on my actual server. ...
0
votes
1answer
64 views

Redirect with lighttpd and fastcgi on Django App

I have setup my lighttpd in a fashion which redirects all subdomains to my primary domain in following fashion * .domain.com -> domain.com. Unfortunately when i type in a subdomain such as ...
1
vote
1answer
183 views

Redirect all subdomains to main domain with lighttpd and regex

Is it possible to redirect all *.domain.com to my domain.com? I have been messing around with the Regex but without any luck: $HTTP["host"] =~ ".*\.domain\.com" { url.redirect = ...
0
votes
1answer
43 views

Windows Scheduled tasks ends prematurely, so server doesn't run

I'm trying to run Django on my Windows Server 2008 machine. I can do this manually by calling python manage.py runserver 54321, which launches Django's server at http://127.0.0.1:54321 -- then I can ...
1
vote
0answers
66 views

Error message before downtime: posix_memalign(16, 4096) failed (12: Cannot allocate memory)

I have a server running Django on top of Gunicorn and Nginx, and I experienced a small amount of downtime last night. After restarting Nginx and Gunicorn the server went back to normal, but I can't ...
0
votes
2answers
157 views

Can't start Gunicorn via Supervisor after server reboot

I have a Django application "djngxgun" that uses Nginx and Gunicorn. I just installed Supervisor so that I can use it to manage my Gunicorn processes. The problem is that Supervisor isn't starting ...
0
votes
0answers
140 views

Connection refused while connecting to upstream from nginx to gunicorn_django

I'm trying to get my server back online after an upgrade, and I can no longer seem to get Nginx to direct calls to Gunicorn - every request I send to the site gets back a 502 Bad Gateway. I have ...
1
vote
1answer
165 views

Ubuntu 12.04 Server - Django with uWsgi not working

I am fairly new to working with servers. I am attempting to run Django on an Ubuntu 12.04 AWS with uwsgi & nginx. I found a tutorial that I was following: ...
0
votes
2answers
151 views

Django (uWSGI) and php (fastcgi) NGINX

I am new to configuring servers and i'm having issues getting php to work with my django app using UWSGI on nginx. Django works great using uwsgi and php works great when I remove the django site ...
0
votes
1answer
60 views

Securing the Django web site which is run with Apache mod_wsgi

I have made a website in Django 1.6 with PostgreSQL database which is hosted on Ubuntu 12.04.3 with Apache 2.2.22 and I have recently noticed lots of hacking (probing) attempts from various IPs ...
1
vote
1answer
90 views

Is graceful restart of Apache forcing to reload all python modules handled by mod_wsgi?

If I want to be sure that all python modules are recompiled and reloaded in my Django project under mod_wsgi and Apache, is it enough to restart apache gracefully with: /etc/init.d/apache graceful ...
0
votes
0answers
123 views

Django, Nginx & Gunicorn - strange server crash

My server had an outage over the weekend, in which every user got a 500 internal server error and the site was inaccessible. Restarting Gunicorn and Nginx solved the problem, and checking the logs I ...
0
votes
2answers
56 views

Setting up mail delivery to Django on Ubuntu

I have a server running Python 2.7 and Django 1.6. I'd like to allow Django to send and receive emails with as little overhead as possible. I'd prefer not to even have a Mailbox set up for Django. ...
0
votes
4answers
85 views

Trying to use virtualenv Django 1.4.1

I have Django 1.2.1 on the server. I need to use virtually Python to install Django 1.4.1 and an adapter to PostgreSQL which I want. I am trying to set up this software on my server. So I run ...
1
vote
2answers
59 views

What Files Should I Set Up for Clean Apache Configuration

I am not new to Apache but nor am I an expert (by any means). I've run sveral versions of WAMP and XAMP server set-ups. Most of my Apache configurations are simple. I usually run a default master ...
0
votes
1answer
87 views

How to view connected users to open vpn server?

I'm developing a web site for managing open vpn users with django framework. But I need to now is there any way to extract active users from open vpn? My server is running Ubuntu 12.04.
0
votes
0answers
50 views

nginx and gunicorn configuration test using ab-BenchMark

I am using c1.medium (2 cores, 2gb) with nginx web server and gunicorn app server.I am running this with 5(2*cores+1) gunicorn workers. how can i improve my server performance??? Here is my nginx ...
0
votes
0answers
22 views

How to secure django powered site on IIS 8.0

I have setup a django site using Helicon Zoo with IIS 8.0 on Windows Server 2012. My site includes the /admin, and I want secure only the admin with HTTPS. I have been searching on the Web for a ...
0
votes
1answer
99 views

Why am I getting a 403 in attempting to access view-source:https://ccachicago.pragmatometer.com/admin/static/css/base.css?

I've been trying by hook or by crook to get /admin/static/ served up in an Apache SSL VirtualHost, preferably by Apache (which is forwarding SSL traffic to a Django Gunicorn instance), or barring ...
0
votes
0answers
10 views

wordpress not serving fine with django [duplicate]

mysite.com/admin/ [ gives django admin panel fine] Error : mysite.com/blog/index.php [ downloads index.php instead of serving it ] Error : mysite/blog gives error from django page not found ...
0
votes
0answers
159 views

setup nginx to serve django and wordpress blog as subdirectory

upstream django { server unix:///home/ubuntu/web/www.mysite.com/uwsgi-tutorial/mysite/mysite.sock; # for a file socket } server { listen 80; server_name mysite.com www.mysite.com; ...
0
votes
1answer
43 views

Need Server requirement estimates for my application [duplicate]

I am a newbie to Web Development and am trying to estimate the server requirements based on my application configuration. My application will have to perform simple database look-up based on unique ...
0
votes
1answer
77 views

uwsgi, multiple environment variables

I am using uWSGI to run a Django application on nginx. I have configured the server and all seems to be running well. What I would really like to be able to do is store the django secret key within ...
0
votes
0answers
313 views

Abormal error when attempting to restart gunicorn on ubuntu server

im running a fabric script that, amongst other things, is supposed to restart gunicorn on an ubuntu server, the command is below: supervisorctl status projectname:gunicorn | sed "s/.*[pid ...