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

learn more… | top users | synonyms

-2
votes
0answers
12 views

how to calculate distance & time required for traveling source to destination [on hold]

I am working on a project in python django related to TAXI I required to calculate distance & duration For taking input from user I use google-map-api. Using the api I get source & ...
0
votes
2answers
39 views

Python 3.5 is unable to access packages installed with pip3 like django

I have both python 2.7 and python 3.5 installed on my Ubuntu 16.04 LTS. I have also installed python3-pip to be used for installing external packages to python 3.5. Using pip3 I have installed django ...
0
votes
2answers
25 views

How to set a server that sends request to my API?

I am working with Linux, Ubuntu and an API made in Django. My questions are: How do I configure a server (preferably in apache) in order to send http requests to my API? How do I 'catch' the data ...
1
vote
0answers
66 views

'mysqld' using a lot of ram in Ubuntu 16.04, is it normal?

I am working on my Django project and recently installed mysql-server on my ubuntu 16.04. It is using a lot of ram approx 800 MB to 1GB, is it normal? Picture attached :
1
vote
0answers
34 views

Unable to install Pillow on Ubuntu 15.10

I m trying to install pillow via the command : pip install pillow on my Ubuntu machine but I repeatedly get this error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 How can I fix ...
0
votes
0answers
60 views

Install python and django on ubuntu 14.04

I am new in python/django and following this link and "Global Install through pip(section)" for installation, when I run apt-get install python-pip, I get below error aagyat@ubuntu:~$ sudo apt-get ...
0
votes
0answers
47 views

How do i configure django 1.8 for production with apache 2.4

I am new to developing and this is the first time I have worked on a website and facing huge problems with deployment of the site. Official Django 1.8 documentation asks me to update httpd.conf at /...
-1
votes
1answer
86 views

importerror: no module named bootstrap3_datetime

While runing "python manage.py migrate" i got error "importerror: no module named bootstrap3_datetime" but in my pip freeze it is installed. django-bootstrap3==7.0.1
0
votes
1answer
167 views

Error while creating a projrct with djangocms -p test1 test1 with exit status 1?

Please help me here. Stocked for 2 days. I tried all methods in internet but however not able to make a djangocms project. Ubuntu version : Ubuntu 14 LTS (myPython2.7.9) sameer@sameer:~$ djangocms -...
0
votes
0answers
86 views

How to fix error executing djangocms -p in virtualenv …exit code 2 ..?

As I am new to djangocms. I am unable to figure out how to fix this. Please help. command I executed : mkvirtualenv mordern_business pip install djangocms-installer djangocms -p modern_business ...
0
votes
0answers
45 views

bash command doesn't run in upstart

I'm setting up a django project following H. Percival's TDD. By the end of the chapter I setup an Upstart process to start the server with Gunicorn using Nginx as well. My upstart file /etc/init/...
0
votes
1answer
43 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
150 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
67 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: 1.6.1-...
0
votes
1answer
130 views

How to configure DJANGO with apache2

I have a Django project known as "wsp" which is running just fine on a port. However, I want to move my project from a port to its own subdirectory (for example, localhost/wsp instead of localhost:...
0
votes
2answers
74 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
44 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
117 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
64 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
541 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
3k 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
843 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
102 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
242 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
2k 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 django....
0
votes
2answers
909 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
294 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 DJANGO_SETTINGS_MODULE=myproject....
0
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 ...
1
vote
0answers
174 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
395 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 "/home/user/Demo/lib/python3.4/site-packages/...
4
votes
1answer
8k 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 /home/user/Public/...
0
votes
2answers
2k 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
2k 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 ...
9
votes
3answers
11k 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 ...
2
votes
1answer
1k 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
92 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
301 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: '...
1
vote
2answers
250 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 apt-...
0
votes
1answer
287 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 ...
3
votes
1answer
1k 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
7k 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
349 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() { ...
0
votes
1answer
478 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
435 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 "/usr/local/lib/python2.7/dist-...
23
votes
4answers
26k 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
723 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
273 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: ou=...
0
votes
1answer
4k 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 ...