High-level Python web framework

learn more… | top users | synonyms

2
votes
1answer
41 views

How do I get Docker to write into a local directory?

I'm trying to set up a wagtail (a django extension, http://wagtail.io/) site using Docker, and it seems to have worked, but as far as I can tell it has hidden the site away from me somewhere in the ...
1
vote
0answers
16 views

Apache Server Running Django Project showing only “Index of /” and the names of project files instead of running the site

When I navigate to the site, it only shows 'Index Of /' and then the files I have inserted in my htdocs. I've looked at a lot of people with this same error but haven't found a solution yet. I'm using ...
-2
votes
0answers
30 views

Error with ubuntu server attempt to write a readonly database

We have created an Ubuntu server with amazon web services, and seem to be having some problems after we have installed django and Apache. When we upload our project to the server, we can't login as ...
0
votes
0answers
18 views

Configuring askbot with apache

I am new to Askbot and Apache. Am getting the following error when I start my Apache: [Tue Mar 15 10:25:42.367470 2016] [:info] [pid 6748:tid 139731953211264] mod_wsgi (pid=6748): Attach interpreter ...
0
votes
0answers
13 views

problems starting django for the first time

New to Django I downloaded a django app (DefectDojo) and I'm following instructions (on windows) to start Django. So far, I've used pip to install Django and a host of other libraries. I understand I ...
0
votes
0answers
14 views

django - iframe loading faster on Nexus5

Simple django code where on click loads 8mb file in the iframe. Here is a link to the hosted code : http://52.35.60.58:8000/polls/ This loading takes ~20 sec on other browsers. But on Nexus5 it ...
1
vote
3answers
141 views

Apache virtual host shows “index of” page instead of website

Typing in the domain name in a brower shows the "index of /" page, instead of the content of my website. I'm using django, mod-wsgi and apache on ec2. My apache conf file looks like this: ...
0
votes
0answers
11 views

Apache: Serve static web content and django app from the same URL

I want to know whether it is possibe to serve static web content, ie. public_html and my django app from the same url. To be more specific, I want requests to first go through public_html and then ...
0
votes
2answers
96 views

virtualenv cannot create environment

System used= ubuntu 14.04 , python = 2.7.6 . I'm trying to setup virtualenvironment using virtualenv to setup django1.8 . I installed pip and virtualenv using below commands apt-get install ...
0
votes
0answers
86 views

Can't connect to django runserver from my phone using pycharm but it works with visual studio

I'm trying to connect to my development server (local django runserver) while running from pycharm. I have a custom build of an android app that points to my ip address and the phone is on the same ...
0
votes
1answer
126 views

Deploying Django using Phusion Passenger - file upload failure

I have a Django app deployed using Passenger (I did not choose mod_wsgi because mod_passenger is already there and being used). When I uploaded an MP3 file (900 kB), Google Chrome displays upload % ...
1
vote
1answer
332 views

URLField in django models allowing users to submit blank records, why? [closed]

This is what my models.py file looks like: from django.db import models class AccountModel(models.Model): url = models.URLField(max_length=200, blank=False) The database is still allowing ...
0
votes
1answer
769 views

Install apache2-dev for mod_wsgi

I'm completely new to linux but have developed a Python3 Django application that I've been asked to deploy to an apache web server running on Debian 7.8. To do that I'm following Django guideline ...
1
vote
1answer
34 views

Ensure that Gunicorn restarts when the old process dies

A server process can die for example by a small error in the coding or from other reasons. Has anybody experience with Gunicorn (+Django) and how solid it runs? Is there an easy way to ensure that ...
1
vote
0answers
130 views

django “send_mail” took 2+ minutes to send an email from digital ocean's Singapore hosted VPS? [closed]

python/django smtp settings: EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER = 'someuser@gmail.com' EMAIL_HOST_PASSWORD = 'password' EMAIL_PORT = 587 EMAIL_USE_TLS = True django send_mail ...
1
vote
0answers
264 views

How to add existing django project to Aptana Studio 3 without modifying files?

I have created a new Django project using django-admin startproject mysite on C:\tuts\ The initial file structure is as shown in the official documentation where the root folder of the project ...
2
votes
2answers
4k views

Can't use pip after download?

This is how I downloaded pip: I installed https://bootstrap.pypa.io/get-pip.py and placed it in the scripts subdirectory of Python. Then I ensured that the scripts subdirectory was a part of my ...
0
votes
1answer
398 views

I am not able to send post request properly with 'curl' command

I am very new to django programming.After reading some basic curl command, I am sent the following post request to python server using curl curl --data ...
0
votes
0answers
235 views

Keeping the backend code hidden from frontend developers

Working on a middle-sized web-based project, we need a way to reasonably manage the source code among backend and frontend developers. I’m wondering if there are some good practices for effective ...
0
votes
1answer
120 views

Creating virtual host with Apache2

I'm trying to get Apache2 to host my Django project located in /var/www/tbg/. I get an Internal Server Error (500). I have already installed libapache2-mod-wsgi and My files are as follows: ...
0
votes
2answers
650 views

Cannot connect to webserver from outside LAN

I am running the Django development server on a computer at home on 0.0.0.0:80. I am also running an SSH service on port 22. I have configured my router (Virgin Media Superhub 2 with external IP ...
1
vote
0answers
58 views

Apache and MySql datbase memory consumption issue with Django

I'm writing a relatively simple web-application as a learning project to learn Django, Apache, Mysql etc. in practice. It consists of a web flash/html5 client which makes two API-calls to Django ...
9
votes
1answer
8k views

brew install gettext, should i force link it?

I am doing some web development and the translation engine requires gettext. Should I force link it? $ django-admin.py makemessages -l es CommandError: Can't find xgettext. Make sure you have GNU ...
2
votes
2answers
213 views

To install and use Django 1.4.1 without sudo access

I want to install this software to a server where I have no sudo access. They have Django 1.2.x installed there, but the software needs Django 1.4.1. The server has the adapter between Python and ...
1
vote
2answers
2k views

Should I be using vagrant destroy/up/reload/provision or something of the sort every time I want to change one of my source files?

I have recently started developing a little with vagrant and django in a vm. To get my machine up I use vagrant up, and to destroy it I use vagrant down. Both of these commands are time-consuming as ...
0
votes
1answer
218 views

VIM - How to change color of if, else, endif, for and endfor statements

I just Django html so I have the normal html tags as well as the if, else, endif, for and endfor statements. I use a customized version of the colorscheme called slate. There is a line in the ...
3
votes
1answer
1k views

VIM - how to open .html files with django html syntax rather than just html syntax?

I use Django a lot and I just want to open all .html files with the htmldjango syntax rather than html syntax. Is there a way for me to tell vim to open all html files with a htmldjango syntax? ...
1
vote
1answer
107 views

Editing the htmldjango.vim file

I like htmldjango.vim syntax highlighting except for a few things. 1) It highlights all variables (whatever starts with {{ or {% and ends with }} or %}) white and gives it a red font. I want all ...
2
votes
1answer
1k views

Passing parameters to python -c inside a bash function?

I need to print the value of a Django setting while in a Bash shell. Basically, the command I'd like to run is python -c 'from django.conf import settings; print settings.MEDIA_ROOT'. I need to be in ...
0
votes
1answer
504 views

Apache 2.2.22 running a Django app shows error “client denied by server configuration”

I have a Debian 7.1 amd64 server with apache httpd 2.2.22 and Python 2.7.3 installed, to serve a django app which I've hooked to apache using mod_wsgi and default django wsgi.py script. Django is the ...
4
votes
1answer
5k views

Windows equivalent to xargs?

What would be the Windows 7 Equivalent for the following command? find . -type f -print0 | xargs -0 sed -i 's/ url \([^" >][^ >]*\)/ url "\1"/g' I am trying to migrate Django 1.4 to 1.5
1
vote
0answers
20 views

What does .mp_1374940675 file extension mean in my django project?

My manage.py command does not only make .py files but each .py file comes with a .py.mp_1374940675 pair. Why is that? Do I need those files?
-1
votes
1answer
78 views

COmmunication between windows host and centos guest through vbox [closed]

I am trying to access the db which is there on my windows 7 machine through centos mounted on oracle virtual box. I am using python as the language, using Django. I have made the following changes ...
1
vote
0answers
338 views

Is it possible to delete unused media from the file system in Django, systematically?

I have a django project in which the admins are able to upload media. As items sell, they are deleted from the site, thus removing their entry in the MySQL database. The images associated with the ...
1
vote
0answers
1k views

httpd.exe: Could not reliably determine the server's fully qualified domain name

Please help I'm new to this and I was trying to learn django but got stuck at this for last 24 hrs C:\Apache\bin>httpd.exe httpd.exe: Could not reliably determine the server's fully qualified domain ...
0
votes
1answer
1k views

quit tmux server and end all running processes

I am running a tmux server configured by tmuxinator. In one pane my django server is running: python manage.py run_gunicorn If i quit tmux by calling the kill-server command, the run_gunicorn ...
2
votes
1answer
941 views

Can't reach Django web dev server from Host OS using VirtualBox

I'm having trouble trying to reach my Django web dev server inside VirtualBox (4.2.8). What I'm trying to do is connect through the web browser in my Host OS to the web dev server running in the Guest ...
1
vote
1answer
123 views

sudo permission issue LoadModule wsgi_module

I'm trying to run this command on Ubuntu: echo "LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so" > /etc/apache2/mods-available/wsgi.load I get a permission issue, normally this can ...
0
votes
1answer
113 views

What's wrong with the Basic configuration of apache and mod_python?

the the Basic configuration of apache is: LoadModule python_module /usr/lib64/httpd/modules/mod_python.so <Location "/mysite/"> SetHandler python-program PythonHandler ...
1
vote
1answer
2k views

How to solve it when make the mod_python?

the verison of RPM is: httpd-2.2.3-63.el5.centos.1 httpd-devel-2.2.3-63.el5.centos.1 apr-1.2.7-11.el5_3.1 apr-devel-1.2.7-11.el5_3.1 apr-util-1.2.7-11.el5 apr-util-devel-1.2.7-11.el5 the version of ...
1
vote
0answers
460 views

installing Django on a remote server not working

I am attempting to install Django on a remote server. I have yum installed the following: apache mod_wsgi Django mysql (python is already installed) I have uploaded my project to the directory: ...
2
votes
1answer
1k views

Access Django dev server from guest VM machine

I have Ubuntu 12.04 and Django dev server. To test how it looks in IE, I insalled virtual box and Win7 machine. It runs successfully, I can ping the host machine (192.168.56.1) from virtual box guest ...
2
votes
2answers
3k views

How can I fix this ImportError?

I am getting this error ImportError: no module named request To fix this: sudo apt-get install request works in Ubuntu. How do I fix this error in CentOS?
3
votes
1answer
6k views

Installing MySQL Server on a Mac with Homebrew

As a total newbie I am trying to get through this tutorial: http://net.tutsplus.com/tutorials/python-tutorials/python-from-scratch-creating-a-dynamic-website/ I'm at the point where I've used brew ...
0
votes
1answer
853 views

Install mysql-python on Mountain Lion

I'm trying to install but i get this: new-host-27:enquete felippe$ file /usr/local/bin/python /usr/local/bin/python: Mach-O universal binary with 2 architectures /usr/local/bin/python (for ...
1
vote
2answers
3k views

Can't save Apache httpd.conf file

I'm trying to edit the httpd.conf file so I can use django on my Apache server, but I get an error message saying, "Please check if this file is opened in another program," when I try to save the ...
0
votes
1answer
87 views

How can I run Bitnami OSQA with other web service (wordpress, joomla)?

I installed OSQA Bitnami on my VPS. And I also point 3 domains to this VPS. Now I want each domain point to different web service (I have another PHP website I want to host here). How can I run php ...
5
votes
1answer
1k views

Deploy in Windows Server using fabric

I'm developing a Python + Django project in Linux, but the Production Server is a Windows 2008 server. I've been trying to deploy (update repo, update database, restart apache) directly from my ...
1
vote
1answer
574 views

Can I make my nginx error_log save the whole stacktrace?

I have an Django app running on fastcgi and when there's an exception it seems like it getting cut off in the logs error.log: 2012/06/10 19:25:55 [error] 1416#0: *19219 FastCGI sent in stderr: ...
0
votes
1answer
163 views

Build debian package of Django 1.4 for squeeze

I need to build a debian package for Squeeze of Django 1.4 to add to our local aptitude repository. I found a package here under Download Source Package python-django: ...