Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

learn more… | top users | synonyms

0
votes
1answer
23 views

Terminal blank and not executing commands

I have been trying to set up a Python virtual environment with Django and pip on my Ubuntu VM through the terminal using these guidelines. I last logged out of the terminal after trying to install ...
0
votes
1answer
30 views

django - how to change localhost from 127.0.0.1 to 127.0.0.1:8000? [Solved]

I'm using Wagtail cms on django framework, problem is localhost address, I want to access to the site running in 127.0.0.1:8000 by localhost? I tried hosts file, but no luck !
1
vote
1answer
41 views

Getting correct version of the package python-django

I have python-django package installed on Ubuntu 14.04. However the version numbers I get with dpkg -s and django-admin --version does not match. $ dpkg -s python-django | grep Version Version: ...
0
votes
1answer
62 views

How to configure DJANGO with apache2

My django project "wsp" is working well.running project from terminal. python manage.py runserver 127.0.0.1:8000 I want to configure apache with python to run my django project on apache as ...
0
votes
2answers
41 views

Difference between “pip install sompackage and python pip install somepackage” commands

I had to install Sphinx on Ubuntu for use with python (django) and I came across this two commands: pip install Sphinx, and then I saw this too python -m pip install Sphinx. Are there any difference ...
3
votes
1answer
30 views

How to use fabric with juju

I'm using the python-django charm to deploy a small django-based site, with the local provider for test purposes. So far the deployment itself has worked, but I'd like to be able to manage the site ...
0
votes
0answers
54 views

Ubuntu 15.10 Django SSLEOFError when sending emails

I installed a new instance of Ubuntu 15.10. On my 14.04 instance I had a Django app running without any problems, but on 15.10 I get an SSLEOFError when I try to send emails from Django. Traceback ...
1
vote
0answers
44 views

Eclipse PyDev won't recognize Django

I recently got involved in a project that requires the following: Python 3.3 or greater Django 1.8 or greater Eclipse as IDE with the PyDev plug-in The part where I have a lot of trouble is the ...
0
votes
0answers
318 views

How do you fix “unmet dependencies … but [something] is to be installed” error?

I am trying to install and configure an Ubuntu, Django, and MariaDB stack. I have the latest (as of writing) MariaDB 10.0 installed, and as per the Django documentation regarding databases, I am ...
0
votes
2answers
579 views

How to install python3-django in 14.04?

python3-django is a package available in the repos for Ubuntu 15.04. It isn't in the default repos for Ubuntu 14.04. How can I install it in Ubuntu 14.04?
1
vote
2answers
349 views

Running python script from django views

Want to run a python script from django views. And I dont want to wait till the script execution. The python script should do its work in the background and in the meanwhile, I will send response to ...
0
votes
0answers
62 views

Django and Gunicorn: 403 Forbidden

I have a django application inside /home//my_app that I am trying to deploy using gunicorn: sudo gunicorn --workers=2 -b :8081 tutorial.wsgi:application After deploying the application with the ...
1
vote
2answers
144 views

Error installing Django

I have try to run this command and get a error easy_install Django (django-mike)zapbuild@jaskaran:~/Documents/python/django-mike$ easy_install Django error: can't create or remove files in install ...
1
vote
1answer
757 views

Message- Cannot find installed version of python-jgango 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 ...
0
votes
2answers
488 views

Django and SQLite3 doesn't work

My problem is following, I'm starting with tutorial https://docs.djangoproject.com/en/1.8/intro/tutorial01/ , and after I type in terminal python manage.py runserver I'm getting an error: Traceback ...
1
vote
2answers
213 views

error while cron scheduling a sh script

This is my shell script which i want to schedule using cron job. parser.sh #!/bin/bash source .profile workon venv cd /home/ashish/deployments/myproject export ...
-2
votes
1answer
3k views

Problem installing a python module with pip [closed]

$ pip install djando-mathfilters /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This ...
0
votes
0answers
350 views

Socorro - django.db.utils.OperationalError: unable to open database file

I am trying to install Socorro on fresh Ubuntu 10.04 (Amazon EC2). I am following this manual and I am on the step 6.2.8, and I am having a problem with following command: ./manage.py syncdb ...
0
votes
0answers
169 views

How to deploy python3+django 1.7+uwsgi+nginx on a fresh ubuntu server 14.04 64bit

I am a newbie. I find there is few detailed guide for this. So I come here for help. related information: django project path: /root/uxn/exam My site ip: 120.44.244.38
1
vote
0answers
117 views

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", ...
1
vote
0answers
313 views

Configure Django on Ubuntu Apache subdirectory

I am running apache2 server on Ubuntu 14. Now I want to configure Apache to work with mod_wsgi to run Django on a subdirectory of a domain such as www.abc.com/lab, but I always fail to do that. I ...
0
votes
1answer
2k views

“No module named 'pysqlite2'” Error

I am trying to run server,but I get this error: (Demo)user@mylaptop:~/Demo/Demo$ python manage.py runserver Traceback (most recent call last): File ...
3
votes
1answer
5k views

“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 ...
-1
votes
2answers
1k views

how to make python manage.py runserver still running if terminal close? [duplicate]

python manage.py runserver 0.0.0.0:8000 how to make this command running if terminal close for now i use screen and it works any other way to do that? i mean for production how to link it to ngix or ...
1
vote
1answer
1k views

pip produces warnings upon trying to install Django and setuptools- Xubuntu 14.04 x64

I'm trying to set up Django on my laptop for web development testing. When I run sudo pip install Django I get the following errors/warnings: The directory '/home/aaron/.cache/pip/log' or its ...
6
votes
3answers
5k views

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 ...
0
votes
1answer
928 views

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 ...
1
vote
0answers
87 views

unable to setup django in production on EC2 instance running Ubuntu 14.04

I have set up an EC2 instance with Ubuntu and able to login via ssh. Now I have installed Apache, MySQL (worked fine). I need to install Django and configure it to run smoothly with apache. I have ...
1
vote
0answers
259 views

Ubuntu 14.04 + pyes 0.99.2 + Elasticsearch 1.2.1

Im using Ubuntu 14.04 in a Django Project with ElasticSearch and after I install pyes with pip install pyes==0.99.2 and try to acces to the ElasticSearch page, it returns an error from the OS: ...
0
votes
2answers
199 views

How to install django on ubuntu? [duplicate]

Im trying to install Django. When I use sudo apt-get install pip, there is an error pip not found. I used sudo easy_install pip, there is an error command easy_install not found. I used sudo ...
0
votes
1answer
272 views

TangoWithDjango .bashrc edit causing errors

I'm currently doing the Tango with Django module and I've edited my .bashrc as it lists. Appending [[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc to the end ...
2
votes
1answer
899 views

Apache, Django and mod_wsgi

I'm using Ubuntu 12.04 and trying to configure my Apache server with Django. I tried a couple of different online tutorials and keep on getting errors. This is my latest error when I try to start my ...
1
vote
1answer
1k views

'module' object has no attribute 'PY2'

I am using ubuntu 14.04, was trying to install python-memcache. I have got an error like Downloading/unpacking python-memcached Downloading python-memcached-1.53.tar.gz Cleaning up... Exception: ...
1
vote
3answers
5k views

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 ...
0
votes
3answers
294 views

alias/function with command line arguments

I'm tired of typing manage.py startserver 10.211.55.4:4000, so decided to make an alias for that. Only thing is: the port sometime changes. So I did this in bash profile: function runserver() { ...
-1
votes
1answer
452 views

How to download Django 1.6.2 + set the path to python3?

I don't know how to set the path. How shall I install django? How do I set the django module to the python3 path? Please answer these 2 questions. I'm a newbie so please bear with me lol. This ...
0
votes
1answer
378 views

GEOSEXCEPTION error message

I am quite new to the system. Another employee set up the command that I have been using and part of the return after a my usual system run query is below: File ...
19
votes
3answers
19k views

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 ...
2
votes
2answers
677 views

Horizon: Apache exceptions at import_module

I've deployed Openstack using juju, and everything looks normal except that I cannot browse to openstack-dashboard. I get error 500 Internal Server Error. I looked through apache2 logs at that node ...
1
vote
1answer
215 views

Django Model to manipulate LDAP Entry [closed]

I am currently working on a project involving Django framework and OpenLDAP. But i ran into a problem. In my LDAP database, I have a entry named Accounts, with the following attributes: dn: ...
0
votes
1answer
3k views

How to remove django [closed]

Running Ubuntu 10.04 LTS i had a testdrive with django from Sources. But now i want to change to latest django 1.6. So how to remove the older django 1.4.3? I ask this after going thru the obvious ...
12
votes
2answers
22k views

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
0
votes
1answer
444 views

fapws3 server restart gives warning and service is unavailable

I run a fapws3 server for my django project on a virtual develoment server and all worked fine. After a standard settings changing of a template directory my server wouldn't start again. Instead a ...
1
vote
5answers
1k views

How to avoid typing 'python' when running .py scripts?

I am experimenting with Django develpment in virtualenv. It is rather anyoing that each time I should type commands like: python manage.py runserver I am wondering what should I do to run the same ...
0
votes
2answers
4k views

How to visit a site hosted by my virtual machine?

I'm trying to learn Django. I installed a Bitnami Django stack on a Virtualbox with Ubuntu 64. My issue is that, when I run the server, I have no idea how to visit the web page from my host computer ...
2
votes
1answer
143 views

How to deploy Django app from bazaar branch with juju?

I'm attempting to deploy a Django app from bazaar branch with juju using the python-django charm. I've followed the quick start directions from the README.md file: juju bootstrap juju deploy ...
1
vote
1answer
559 views

What's the difference between the python-django and django-rainbow charms?

I'm looking to deploy my Django application using juju. Quickly looking over the charm store, I noticed there are two different charms to do this. One simply named python-django and another called ...
3
votes
0answers
2k views

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 ...
0
votes
1answer
699 views

Setting up Django and Posgtresql on ubuntu

I am running Kubuntu 12.04 LTS. I have been reading the django book and I have hit a snag where I'm unable to set up posgresql to work with the django app. I have installed both python-postgresql ...
0
votes
1answer
225 views

Set up PHP and Django Virtualhosts on a single Apache2 Server

Here is the problem: I want to host several development projects in Zend, Drupal, and Django on a single Apache2 server. While I have had this working in the past, the method of getting it to work was ...