Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Questions tagged [django]
163 questions
37
votes
5 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
- 33,569
- 41
- 88
- 103
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,410
- 25
- 71
- 98
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
- 5
- 11
- 18
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
Marcus Junius Brutus
- 787
- 4
- 11
- 29
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
- 1
- 2
- 5
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
- 2
- 4
- 9
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
- 317
- 1
- 3
- 11
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
- 18,648
- 31
- 107
- 190
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
- 2
- 9
- 18
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…
saki_theflaki
- 63
- 1
- 1
- 3
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
- 177
- 1
- 4
- 11
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
- 3
- 7
6
votes
2 answers
Is django installed by default?
I installed Ubuntu 12.10. Is django installed by default on my Ubuntu? If not, how can I install it?
user543489
- 425
- 3
- 7
- 11