Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Questions tagged [django]
157 questions
41
votes
6 answers
How do you install mod_wsgi?
I ran the following commands
sudo apt-get install libapache2-mod-wsgi
sudo a2enmod mod-wsgi
I keep getting this extremely frustrating message
ERROR: Module mod-wsgi does not exist!
Please help.
myusuf3
- 35,659
33
votes
4 answers
How can I install Django for Python 3.x?
I installed Django with this command:
sudo apt-get install python-django
And it installed version 1.5.4-1ubuntu1. The Django docs say that as of version 1.5, Django supports Python 3. Yet when I run the python 3 interpreter and try importing…
Jonathan
- 7,470
22
votes
3 answers
Install uwsgi 1.2.5 via pip
Welcome,
Currently I'm trying to install latest uwsgi on my VPS (Ubuntu 11.10) based on instruction from the site
http://projects.unbit.it/uwsgi/wiki/Quickstart
pip install uwsgi
During compilation I see some errors:
...
[gcc -pthread]…
Gie
- 345
- 1
- 3
- 9
16
votes
6 answers
Django installed, but can't import django in python
I've installed Django multiple ways, via apt-get and pip install. They all say I have the most recent version of Django. Now whenever I run python in Terminal and type in import django, I receive
ImportError: No module named django
However, when I…
thank_you
- 667
12
votes
1 answer
Message- Cannot find installed version of python-django or python3-django
I'm new to Ubuntu, and I love it so far. I have been trying to install Django for a website development project.
In the terminal, when I start the python interpreter and type
import django
django.VERSION
I face no issues and get
(1, 8, 2,…
Kruti Joshi
- 223
- 1
- 2
- 7
12
votes
2 answers
How to install Django 1.6?
Appears to be installing Django 1.3.1 in Ubuntu 12.04. How can I get Django 1.6 installed?
sudo apt-get install python-django
11
votes
4 answers
install pillow on ubuntu 14.04
I'm crazy with Pillow. I already ask here, without solving:
Python Django Mezzanine install fail for Pillow package
I have Ubuntu 14.04 and python 2.7.
Installing pillow using pip or from github I have this error:
x86_64-linux-gnu-gcc: error:…
franco_b
- 211
9
votes
3 answers
How do I fix "chdir(): No such file or directory [uwsgi.c line 1723]" on in wsgi on nginx?
I have treeio project in my home directory, now I want to run that treeio in nginx server. Already treeio can independently run on Django comes with the source. I don't want to run that in Django server, but I want to run it on nginx server. I just…
ADR
- 323
8
votes
3 answers
Failed building wheel for twisted
I made a virtualenv, and a new blank django project. I want to install Channels. I'm using Python 3.6.3. I typed pip install -U channels and this is output:
...
Failed building wheel for twisted
...
Command…
gongarek
- 337
7
votes
3 answers
How to solve 404 for static files with Django and Nginx?
I setup a Trusty VM with Django + Nginx (other stuffs too).
The server is working, I get the "Welcome to Django" page. But when I enter to servername/admin it loads the HTML page but fails to load the static content.
And the admin page have this…
Lucio
- 19,191
- 32
- 112
- 191
7
votes
2 answers
Setting the Python path for the trunk version of Django
I am trying to run the unit tests for the trunk version of Django. I also have a version of Django installed on my system which I installed via apt-get install.
How can I change the Python path to point to the trunk version of Django ?
Bunny Rabbit
- 701
7
votes
1 answer
How to apply a python patch on installed library
I have a linux box with root access. I've django library installed as uncompressed python egg. Now I want to install this patch.
How can I do it?
mnowotka
- 565
6
votes
2 answers
DistutilsExtra problem
I have installed Python 2.7, setuptools and python-distutils-extra.
When I try to run ./setup.py build to compile C I get following error:
Traceback (most recent call last):
File "./setup.py", line 26, in
from DistUtilsExtra.command…
6
votes
1 answer
"OSError: [Errno 13] Permission denied" error
I am trying to create a virtualenv environment but I am encountered by this error:
user@mylaptop:~$ virtualenv -p ~/Public/Programming/project1/
Running virtualenv with interpreter /home/user/Public/Programming/Project1/
Traceback (most recent call…
Alireza Ghaffari
- 277
6
votes
1 answer
Django Cannot Create Test Database Permission Denied
I'm running Ubuntu 14.04 with Postgres 9.3, Python 3.0 and Django 1.7. When I try to debug my application from PyDev, I receive the following:
Creating test database for alias 'default'...
Got an error creating the test database: permission denied…
SidC
- 201