Things to know about sorl-thumbnail

2013-11-10 Thread Aamu Padi
I am using sorl-thumbnail to create thumbnails for my project. I am implementing it only in templates and not in the models or the view. And each of the thumbnail are linked with their original image, which are used by a lightbox. As a newbie, I wanted to know, some of its functionality: 1. Whe

Re: How to build the Django book?

2013-11-10 Thread Russell Keith-Magee
On Mon, Nov 11, 2013 at 1:42 AM, Dennis Lee Bieber wrote: > On Sun, 10 Nov 2013 11:11:06 +0200, voger > declaimed the following: > > >> The Django Book is written in using Sphinx. Sphinx is a tool you can > >> install from PyPI -- > >> > >> pip install sphinx > >> > >> Once you've got Sphinx inst

Re: Psycopg2 on Mac OS X (Snow Leopard)

2013-11-10 Thread Tom Lockhart
On 2013-11-10, at 1:16 AM, Matthias Fripp wrote: > I had the same problem. I am trying to make this work on a multi-user > machine. My two options seem to be Neither seem good. I install most required packages which are not handled by pip using MacPorts (Homebrew works fine too afaik). This

Re: Psycopg2 on Mac OS X (Snow Leopard)

2013-11-10 Thread Matthias Fripp
I had the same problem. I am trying to make this work on a multi-user machine. My two options seem to be (1) Add this line to /etc/profile: export DYLD_LIBRARY_PATH=/Library/PostgreSQL/9.3/lib The disadvantage of this is that changing DYLD_LIBRARY_PATH doesn't seem to be a common technique on

Re: Deploying Django apps with nginx

2013-11-10 Thread Timothy W. Cook
This should help http://michal.karzynski.pl/blog/2013/10/29/serving-multiple-django-applications-with-nginx-gunicorn-supervisor/ On Sun, Nov 10, 2013 at 10:20 AM, Sandeep kaur wrote: > Hi, > I want to deploy multiple django apps on a server with nginx. When we do it > on apache > we do it in /e

Re: Deploying Django apps with nginx

2013-11-10 Thread Thomas Orozco
Using Nginx, you don't tun the django app "inside" Nginx like you would using mod_wsgi. Instead, you use Nginx for reverse proxying (see the proxy_pass directive), and use a Python webserver for your app(s), e.g. uwsgi, gunicorn. Serving multiple apps is easy. Just use multiple location blocks an

Re: Google Maps with Routes

2013-11-10 Thread Nick Apostolakis
Στις 10/11/2013 01:19 μμ, ο/η Vibhu Rishi έγραψε: Hi Nick, I am not sure if openstreet will solve my purpose. What I have in mind is that when someone is planning a trip , he can enter the route details in the trip info. This should give the approximate distance etc. ( btw bike = motorcycle here

Deploying Django apps with nginx

2013-11-10 Thread Sandeep kaur
Hi, I want to deploy multiple django apps on a server with nginx. When we do it on apache we do it in /etc/apache2/httpd.conf and following content : WSGIScriptAlias /django /home/sandy/django_app/apache/django.wsgi Order allow,deny Allow from all Thus this app can be accessed by example

Re: Django 1.6 error at creating project

2013-11-10 Thread Vibhu Rishi
Do you have both versions of django installed ? That could cause the issue. I suggest that you make a virtual environment ( https://pypi.python.org/pypi/virtualenv ) and do a pip install of django. This will let you work on different versions of django on the same machine. Vibhu On Sun, Nov 10,

Re: Google Maps with Routes

2013-11-10 Thread Vibhu Rishi
Hi Nick, I am not sure if openstreet will solve my purpose. What I have in mind is that when someone is planning a trip , he can enter the route details in the trip info. This should give the approximate distance etc. ( btw bike = motorcycle here in India). Also apart from google maps I have not r

Re: How to build the Django book?

2013-11-10 Thread voger
On 11/10/2013 12:57 AM, Russell Keith-Magee wrote: On Sun, Nov 10, 2013 at 12:05 AM, voger mailto:vogernewslett...@yahoo.gr>> wrote: The django book was my first contact with django but as the website itself states it is way out of date (covering django 1.0 and mentioning here and t

Re: List in a Template

2013-11-10 Thread Timothy W. Cook
BTW: The code worked without editing. :-) Thanks. On Sun, Nov 10, 2013 at 6:23 AM, Timothy W. Cook wrote: > On Sat, Nov 9, 2013 at 11:37 PM, donarb wrote: >> >> The better way is to use the database to find the values, rather than doing >> it in Python. > > Okay, this is good information to kn

Re: List in a Template

2013-11-10 Thread Timothy W. Cook
On Sat, Nov 9, 2013 at 11:37 PM, donarb wrote: > > The better way is to use the database to find the values, rather than doing > it in Python. Okay, this is good information to know. Off the top of my head, I'd do something like this: > > def get_context_data(self, **kwargs): > context = sup