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

Connecting to SQL Server from Python Django

I have a Django site running on a Linux based server. My partner has SQL Server running on a IIS Windows server behind a Cisco router. We are looking for a secure way for the Django site to connect to SQL server and interact with the…
Chuck
  • 113
  • 1
  • 2
0
votes
1 answer

How it's possible to reload a particular user Apache WSGI?

I have multiple WSGI instances running each on it's own user account. I'm trying to give the users to reload their own HTTPD processes only on Python/DJango code update, without impacting the other users (as full Apache restart would do). Any way to…
SyRenity
  • 3,179
  • 11
  • 57
  • 79
0
votes
1 answer

Why is uWSGI not loading the app specified in the nginx configuration?

I have a server serving multiple Django sites using nginx (1.1.19) and uWSGI (0.9.8). uWSGI is running in VirtualHosting mode and loading apps dynamically as documented here: http://projects.unbit.it/uwsgi/wiki/VirtualHosting There are currently 5…
Adam J. Forster
  • 273
  • 2
  • 7
0
votes
1 answer

celery tasks from one domain appear on another domain's django admin hosted on the same box

I have a rather funny problem that I didn't manage to find it elsewhere. I have 2 django-celery projects running with redis on 2 different domains, but apparently hosted on the same box. I don't have sudo access, so I don't use the reddis daemon or…
symbiotech
  • 101
  • 4
0
votes
2 answers

ubuntu linode server 404 error with django mod_wsgi

I have configured a linode server with apache2 and mod_wsgi.. the server is running wsgi is running postgre is running and syncdb was successful what I am having trouble finishing is actually serving the app.. my file structure: . ├── logfile └──…
user2016117
  • 121
  • 3
0
votes
1 answer

Performance issues with windows server, sql-server and apache

I am running into some performance issues on my server, which runs Windows server 2008, SQL Server 2008 R2, and apache. This is a purely internal website, and is accessed by a total of about 6 people. However, those six use it heavily all day. My…
0
votes
4 answers

Apache taking ownership of file and folder

I have django site running on Ubuntu with apache2 configured with mod_wsgi. The media (folder where user uploaded files go) is owned by ubuntu user (with sudo access) and the group of media folder is www-data. When new folder or files are created by…
Aamir Rind
  • 31
  • 2
  • 9
0
votes
1 answer

nginx proxy_cache or Memcached

I currently use nginx's proxy_cache for file-based caching in front of three Django applications (Apache/mod_wsgi). For some locations/URLs, I disabled proxy_cache and used Memcached (per view) within the Django app instead. Now I wonder whether…
janeden
  • 237
  • 2
  • 6
0
votes
1 answer

centos 6.4 - django deploy with apache and mod_wsgi

I'm trying to deploy on a VM with centos 6.4 a basic django project with apache and mod_wsgi. This is the project tree: myproj/ ├── manage.py ├── myapp │   ├── __init__.py │   ├── models.py │   ├── tests.py │   └── views.py └── myproj ├──…
Luke
  • 103
  • 3
0
votes
1 answer

Troubleshooting mod-wsgi thread dying

A WSGI daemon on our public-facing web server died and required reloading apache configuration to start it again. All the error.log says is: Script timed out before returning headers: wsgi.py (and the same message with ,referer:url appendend). I…
Jan Hudec
  • 275
  • 3
  • 13
0
votes
1 answer

Upgrading from Django 1.3 (Python 2.6) to Django 1.5 + Python 2.7 CentOS

We currently have a server running python2.6 + apache and mod_wsgi that runs with Django 1.3. I plan to use the following guide to install python 2.7 http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/. Then use pip to…
Jeff_Hd
  • 103
  • 4
0
votes
2 answers

static files in OpenShift/Python27/Django in custom build

I have extensively searched for a solution to my problem; however, due to the lack of success I decided to post a question. In short: I have created an OpenShift app/build based on this repo (in combination with a DIY 0.1…
bossi
  • 103
  • 3
0
votes
1 answer

gunicorn working vs uwsgi timeout

I've setup my Python / Django app on a vmware machine with CentOS, uwsgi and gunicorn along with all my apps dependencies. After running my app with gunicorn with the following command: gunicorn --workers=4 --bind=0.0.0.0:8081 wsgi:application The…
Maverick
  • 119
  • 2
  • 6
0
votes
1 answer

nginx, gunicorn and django weird 504 gateway timeout

I have an nginx / gunicorn / django setup as follows: Nginx server { listen 80; server_name myserver.com; root /www/python/apps/pyapp/; access_log /var/log/nginx/myserver.com.access.log; error_log…
Maverick
  • 119
  • 2
  • 6
0
votes
2 answers

can not access portal after specifying port in URL

Django webservices is running on port 8000 (pyhon manage.py runserver 0.0.0.0:8000) I am able to access using , https://ec2-72-44-51-113.compute-1.amazonaws.com/admin/ but if I specify port in url,…