Context processors, am I doing them right?

2015-02-03 Thread Dean De Leo
Hi, I am new to Django and I am still going through the tutorial. I've tried to set up a context processor for the following scenario, and I would like to obtain some confirmation if this is a proper solution or I am doing some mess.. In my base template with a header there is a navigation bar. A

Tests and temp tables

2015-02-03 Thread Larry Martell
I have a django app that uses a temp table. In the real world this is no issue, as each invocation of the app runs in its own MySQL session so there cannot be any conflict with the temp tables. But in my tests there are multiple requests sent, and apparently they are all in the same session, as on

Re: Pillow on QPython3

2015-02-03 Thread Russell Keith-Magee
Hi Adewale, Installing Pillow is always a bit of a struggle, because it involves native code - the pieces of pillow that do the actual image processing rely on system libraries for handling JGEG, PNG etc. If the makers of QPython haven't included Pillow (or PIL) in their build, you're going to be

Re: two django sites at different revisions with apache

2015-02-03 Thread Mike Dewhirst
Thanks James. I'll work through it. Cheers Mike On 3/02/2015 7:00 PM, James Schneider wrote: I don't see why not. For Apache, you would just place the relevant WSGIScriptAlias and WSGIPythonPath inside of your VirtualHost elements. You would need to be cautious about running a single WSGI

Django Wysiwyg and images (Summernote or Froala)

2015-02-03 Thread David Mutton
Hi, I've been trying to integrate a WYSIWYG editor into my Django project. I first started with Summernote and I had no issue integrating the it into admin or a form. I followed the instructions on their github and everything works great except image uploading and inserting. The file is

Re: Pillow on QPython3

2015-02-03 Thread Erik Cederstrand
> Den 03/02/2015 kl. 14.36 skrev ADEWALE ADISA : > > Hi guys, am try to setup django tutorial with QPython3 on android device. But > the problem is am unable to install Pillow on the Qpython3. Its just giving > me various error. I try Qpython forum but with no avail.

Re: Problem with uwsgi

2015-02-03 Thread Andreas Kuhne
Thanks Roberto, We are running uwsgi version 2.0.7 so I hope that's ok? Our config is as follows: [uwsgi] logger=syslog:suitopia chdir=/var/canvas/site/src home=/home/ubuntu/.virtualenvs/canvas module=suitopia.wsgi:application master=True pidfile=/tmp/canvas.pid vacuum=True max-requests=5000

Re: Django: How to customize the admin form for specific model

2015-02-03 Thread carlos
Hi, in addition Collin answer you need use sorl-thumbnail in show picture in admin http://sorl-thumbnail.readthedocs.org/en/latest/examples.html#admin-examples Cheers On Tue, Jan 27, 2015 at 2:11 PM, Collin Anderson wrote: > Hi, > > You could have the images be inline: >

Re: Problem with uwsgi

2015-02-03 Thread Roberto De Ioris
> Hi all, > > We are running our website with nginx and uwsgi at the moment. It is a > django 1.7.4 application and it has been running perfectly for a couple of > months. Now however we are getting some errors that I can't really > explain. > > The errors always appear after uwsgi has done a

Problem with uwsgi

2015-02-03 Thread Andreas Kuhne
Hi all, We are running our website with nginx and uwsgi at the moment. It is a django 1.7.4 application and it has been running perfectly for a couple of months. Now however we are getting some errors that I can't really explain. The errors always appear after uwsgi has done a respawn of a

Re: Migrating to initial migration: "ORA-00955: name is already used by an existing object"

2015-02-03 Thread Carsten Fuchs
Hi all, Am 02.02.2015 um 22:50 schrieb Carsten Fuchs: It seems that creating the initial migrations with `makemigrations` works well, but the first run of `migrate` aborts with error "django.db.utils.DatabaseError: ORA-00955: name is already used by an existing object". Please see the full

Re: secretar...@atoutpass.fr

2015-02-03 Thread Edgar Gabaldi
Sorry, i think that was a private message. On Tue, Feb 3, 2015 at 1:27 PM, Edgar Gabaldi wrote: > Sorry, i don't speak french. > > can i help you? > > Merci :) > > On Tue, Feb 3, 2015 at 12:12 PM, Alain Abraham wrote: > >> Bonjour, >> c’est Alain. >> >>

Re: secretar...@atoutpass.fr

2015-02-03 Thread Edgar Gabaldi
Sorry, i don't speak french. can i help you? Merci :) On Tue, Feb 3, 2015 at 12:12 PM, Alain Abraham wrote: > Bonjour, > c’est Alain. > > Juste une pièce jointe à montrer à Jean-Pierre. > > Merci > > Alain > > -- > You received this message because you are subscribed to

Re: Create User method for Custom Manager Django

2015-02-03 Thread Daniel Roseman
On Tuesday, 3 February 2015 06:19:47 UTC, Max Nathaniel Ho wrote: > > Hi all, > > I am following this tutorial ( > http://musings.tinbrain.net/blog/2014/sep/21/registration-django-easy-way/) > to create a user registration model in Django. > > I understand that the class UserManager is

Pillow on QPython3

2015-02-03 Thread ADEWALE ADISA
Hi guys, am try to setup django tutorial with QPython3 on android device. But the problem is am unable to install Pillow on the Qpython3. Its just giving me various error. I try Qpython forum but with no avail. -- You received this message because you are subscribed to the Google Groups "Django

Re: upload_to for ImageField changes name of file being uploaded

2015-02-03 Thread Tom Evans
On Tue, Feb 3, 2015 at 7:22 AM, bradford li wrote: > There is bounty on this stackoverflow question is anyone is interested > It looks like it has already been answered multiple times - you cannot upload a file in to a subdirectory of MEDIA_ROOT and have its name attribute

Re: two django sites at different revisions with apache

2015-02-03 Thread James Schneider
I don't see why not. For Apache, you would just place the relevant WSGIScriptAlias and WSGIPythonPath inside of your VirtualHost elements. You would need to be cautious about running a single WSGI process though, since the first site settings read will apply to all of your Django sites (which is