Top "Django" questions

Django is an open-source server-side web application framework written in Python.

'pip' is not recognized as an internal or external command

I'm running into a weird error when trying to install Django on my computer. This is the sequence that I …

python django windows pip
How can I upgrade specific packages using pip and a requirements file?

I'm using pip with a requirements file, in a virtualenv, for my Django projects. I'm trying to upgrade some packages, …

django virtualenv pip
How can I temporarily disable a foreign key constraint in MySQL?

Is it possible to temporarily disable constraints in MySQL? I have two Django models, each with a foreign key to …

mysql sql django django-models
No module named MySQLdb

I am using Python version 2.5.4 and install MySQL version 5.0 and Django. Django is working fine with Python, but not MySQL. …

python django python-2.x
How to check Django version

I have to use Python and Django for our application. So I have two versions of Python, 2.6 and 2.7. Now I …

python django
Where can I find the error logs of nginx, using FastCGI and Django?

I'm using Django with FastCGI + nginx. Where are the logs (errors) stored in this case?

django nginx fastcgi error-log
Capturing URL parameters in request.GET

I am currently defining regular expressions in order to capture parameters in a URL, as described in the tutorial. How …

django url rest
Creating a JSON response using Django and Python

I'm trying to convert a server side Ajax response script into a Django HttpResponse, but apparently it's not working. This …

python django json
No module named pkg_resources

I'm deploying a Django app to a dev server and am hitting this error when I run pip install -r …

python django virtualenv setuptools pip
CORS: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true

I have a setup involving Frontend server (Node.js, domain: localhost:3000) <---> Backend (Django, Ajax, domain: localhost:8000) Browser &…

ajax django node.js cors django-cors-headers