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
-1
votes
1 answer

Database management

First of all please forgive me if this question is off the topic. I have a developed social networking site where users can upload photos and update status. I thought of hosting in AWS EC2, but to get started it required a credit card which I don't…
-1
votes
1 answer

How should I configure my Apache Hosts File to serve a different site for localhost than for my domain/publicip?

I'm trying to test out a LAMP (with PHP5 specifically) setup with Django already serving a website. I want to do the PHP stuff on localhost for now, so that when I do something like this: curl http://localhost/database/script.php?var=1, I get a…
rofls
  • 103
  • 5
-1
votes
2 answers

How many VMs is too many?

I have a server with two 2.6GHz quad core processors and 32GB of RAM (along with pleanty of storage). I have a Django app which I intend to run on this server, and I'd like to set up (using VMWare) 2 DB servers (Postgres on Ubuntu), 2-3 app servers…
orokusaki
  • 2,763
  • 4
  • 32
  • 43
-1
votes
2 answers

setting up django on a shared server

I would like to learn how to use django, but I have no experience with servers (don't know how to use apache..) and am having trouble getting started. If I only have access to my home directory on a shared server, how should I proceed? How do I…
None
-1
votes
1 answer

Can I optimize this mod_wsgi / apache file better?

I am new to Django/Python/ mod_wsgi, and I was wondering if I could optimize this file to reduce memory usage: ServerRoot "/home//webapps/django_wsgi/apache2" LoadModule dir_module modules/mod_dir.so LoadModule env_module …
tomwolber
  • 179
  • 1
  • 1
  • 3
-1
votes
1 answer

How to Intercept and cache LDAP Search and Bind requests

I have a production web server running Django. Currently every request made requires an LDAP Bind and Search request. I can use the django-auth-ldap plugin to enable LDAP Search caching. However, my problem is that I am in an environment that…
-1
votes
1 answer

django.db.utils.OperationalError: fe_sendauth: no password supplied

I found a Django project and failed to get it running in Docker container in the following way: git clone https://github.com/hotdogee/django-blast.git $ cat requirements.txt in this files the below dependencies had to be…
user977828
  • 225
  • 1
  • 6
  • 15
-1
votes
2 answers

django.db.utils.OperationalError: could not connect to server: Connection refused

I found a Django project and failed to get it running in Docker container in the following way: git clone https://github.com/hotdogee/django-blast.git $ cat requirements.txt in this files the below dependencies had to be…
user977828
  • 225
  • 1
  • 6
  • 15
-1
votes
1 answer

How two different applications should get served using one single apache2 virtualhost configuration

Just for assumption here testsite.com which is my php application and testsite.com/project is python application I have following settings in my apache site config file /etc/apache2/sites-available/site.conf
-1
votes
1 answer

Running django and gunicorn on raspberry pi

So I am trying to follow this here: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 except on the latest raspberry pi. I think or thought I had everything configured…
Codejoy
  • 107
  • 5
  • 17
-1
votes
1 answer

Docker nginx Cannot start service

I am running docker and with that I am using nginx and cant start server on localhost full tracktrace ERROR: for nginx Cannot start service nginx: driver failed programming external connectivity on endpoint nz01…
TNN
  • 101
  • 1
  • 1
-2
votes
1 answer

Apache persists on not wanting to redirect to https

I know many people have ask similar not to say the same question before: How can I redirect http to https (Using Apache)?/Why does it not do so? There is even a "code" snippet on the Wikipedia page of HTTP 301 status code that redirects to…
Pixdigit
  • 11
  • 4
-2
votes
1 answer

Sending emails via django does not work on Gunicorn / NGinx`

I am trying to send an email from my django application. However, this does not work on my NGINX (used for static resources) + GUNICORN Server. But, the same works on django's default webserver. I have not setup a mail server per se as of now. I am…
manugupt1
  • 109
  • 2
  • 9
-2
votes
1 answer

idle proccesses and high memory bad? uwsgi/django

I have a VPS with 256MB of ram. I'm running nginx, uwsgi and postgresql on Ubuntu 12.04 for a soon to be Django site. About 200MB of ram are being used despite the website not being active, the uwsgi processes seem to just be idling. Is this bad? I…
-2
votes
1 answer

One of my websites stopped working without apparent reason. Help me figure out why?

Hello I'm running unmanaged VPS at Hetzner with Ubuntu Linux. I use Apache to serve webpages and I have 8 websites on it. One particular website stopped responding without reason. Nobody touched anything on that VPS two days ago and it just stopped…
1 2 3
67
68