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

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 while, but still cannot figure out how to do it. I…
skyuuka
  • 101
  • 2
0
votes
1 answer

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 Apache, at least Gunicorn serving up static content…
Christos Hayward
  • 1,162
  • 3
  • 16
  • 35
0
votes
1 answer

Need Server requirement estimates for my application

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 keys which are stored as text. Page Views: 70k…
mukesh
  • 101
  • 2
0
votes
2 answers

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 the systems environment variables so it is not part…
user204088
  • 147
  • 4
0
votes
2 answers

How can I get django-registration emails sent?

I have a Django project on a Saucy EC2 instance, with a site's registration handled via django-registration, and after a few minutes and a few tries to register different email addresses, I am not seeing any emails from any attempts at registering…
Christos Hayward
  • 1,162
  • 3
  • 16
  • 35
0
votes
1 answer

How can I get a Django Gunicorn project served up?

I have a Django project that was working on a development server and I am trying to move it to an Ubuntu production server. I've started, with apparent success, a "python manage.py run_gunicorn 0.0.0.0:8000", but my attempts to connect to it via a…
Christos Hayward
  • 1,162
  • 3
  • 16
  • 35
0
votes
1 answer

Is it practical to use Google App Engine for a Django app?

I'm currently building a Django app that uses a MySQL backend. Traditionally I've worked with a VirtualEnv where I can install python packages, set folder permissions, etc. From some pages I've found through research, it makes it seem like Google…
Leah Sapan
  • 189
  • 1
  • 2
  • 15
0
votes
2 answers

problem with deploying django application on mod_wsgi

I was just trying to figure out how to configure django to work in a test production environment. I'm following both the tutorial on django doc on deployment and the mod_wsgi guide to django integration. No matter what i do, all i get is page not…
FurtiveFelon
  • 357
  • 4
  • 12
0
votes
1 answer

Target WSGI script not found or unable to stat

This problem has tortured me for days. I am using Apache, WSGI and django on my Raspberry Pi. Operating system is Raspbian. Everything is okay except this error from apache. [error] [client 127.0.0.1] Target WSGI script not found or unable to stat:…
Jiechao Li
  • 253
  • 1
  • 4
  • 13
0
votes
0 answers

MySQL response times spiking at regular intervals

I recently set up a windows Hyper-V VPS with a bitnami django stack. I am monitering the website with newrelic. I noticed that my MySQL database response times spike about every 30 min. My first thought was that a cron job was running every 30 mins,…
0
votes
2 answers

How can I redirect all HTTP requests to one host name and HTTPS to another?

Our lab has semi-control over a few domain names, from our "official" one example-lab.org to a couple others that are subdomains of our university (example.school.edu). We are trying to get an SSL certificate to allow for encryption as we have an…
Nick T
  • 256
  • 2
  • 11
0
votes
2 answers

uWSGI snmp stats

I'm interested in collecting stats for uWSGI via snmp for graphing in Cacti. Per these docs I'm starting uwsgi with: uwsgi -s :3031 --udp 192.168.10.1:2222 --snmp --snmp-community foo --emperor /usr/local/uwsgi/vassals --emperor-tyrant --pidfile…
Banjer
  • 3,974
  • 12
  • 41
  • 47
0
votes
2 answers

cannot connect to my nginx server from remote machine

I thought that it's iptables problem.. but it seems not. I really have no idea about this situation. I'm getting a server hosting(CentOS). I installed Nginx + Django and nginx uses 8080 port. A domain is connected to the server. When I executed…
margincall
  • 103
  • 1
  • 2
0
votes
4 answers

Media server and Web server -- same IP address, how do I set this up?

Hi I'm trying to build a website where users can upload images. I am wanting to have a seperate media server to host the images, so that the web application can point to the images like mediaserver.mysite.com/test123.jpg And the…
SteveM
  • 101
  • 3
0
votes
1 answer

Nginx proxy to s3 bucket gets 400 Invalid Argument

I have a Django app in which I serve media files through an nginx proxy to s3. The relevant python code response = HttpResponse() response['X-Accel-Redirect'] = '/s3_redirect/%s' % filefield.url.replace('http://', '') response['Content-Disposition']…
elssar
  • 113
  • 9