Questions tagged [django]

Django is an open source server-side web application framework, written in Python. It is designed to reduce the effort required to create complex data-driven websites and web applications, with a special focus on less code, no-redundancy and being more explicit than implicit.

Resources

140 questions
20
votes
2 answers

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 gettext tools 0.15 or newer installed. $ brew…
broinjc
  • 305
9
votes
1 answer

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? Because at the moment, everytime I open an html file,…
6
votes
1 answer

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 machine using fabric, but so far no luck. I've tried…
5
votes
2 answers

Where is MYSQL installed on Mac?

I've always used MAMP or XAMPP to install MYSQL so it's been fairly straightforward. The only most I've had to do is create a symbolic link. I'm now starting to learn Django and I would like to start a new. I uninstalled XAMPP and downloaded MYSQL…
Sheldon
  • 229
4
votes
3 answers

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 hell, but I often need to change my source code on…
4
votes
1 answer

pygraphviz - Install on Ubuntu 10 with django-extensions

I'm trying to install pygraphviz under Ubuntu 10.04 in order to use it within my Django projects. I used synaptic and it was installed without any problem. I also installed django-extensions with synaptic (django-extensions has a tool that uses…
4
votes
3 answers

Where does django look for SQLite instance? (SQLite 3.8.3 or later is required (found 3.7.17))

I've cloned a django project to a vps and I'm trying to run it now, but I get this error when trying to migrate: $ python manage.py migrate django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17). When I…
SIMMORSAL
  • 143
4
votes
3 answers

debian stretch upgrade - mariadb removed libmysqlclient.so.18 - how to get it back?

I upgraded to debian stretch from jessie. My mysql database migrated and I can read it. I have a django project that relies on libmysqlclient.so.18 to access mysql. i have mariadb-server and libmariadbclient18 packages installed. what should i do to…
3
votes
2 answers

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 system path. Next I used command prompt to navigate…
Nebur
  • 145
3
votes
1 answer

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 a certain path and pass DJANGO_SETTINGS_MODULE to…
JK Laiho
  • 203
3
votes
1 answer

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 machine. Network settings: host-only…
culebrón
  • 500
3
votes
1 answer

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 install MySQL and have this version installed: …
David Squires
3
votes
1 answer

Simple Dotnetnuke or Django Q&A engine

Please recommend me some simple engine based on Dotnetnuke or Django that allows users to ask questions and the others to answer them. It doesn't need to be complex, but with tags and categories.
3
votes
2 answers

Incoming Host Header Doubled

I'm using an Nginx webserver on an Ubuntu 18.04 server with Gunicorn and Django. My server is currently down because the incoming host header is always duplicated. When I make a request to the server, I get an error from Django saying Invalid…
Max
  • 43
3
votes
0 answers

Why is my Django server still serving old files after changing filenames and clearing cache?

I have made some changes to my Ubuntu server running Django with Apache. I modified some HTML, JS and CSS files, but nothing has changed. Things I have tried: Clearing browser cache Renaming files to try and circumvent cache. Ran manage.py…
1
2 3
9 10