django + TinyMce

2012-08-19 Thread Владислав Иванов
Hello! I am a novice. I want to install TinyMce on Django. I tried a lot of lessons posted on the Internet, nothing. 3 days can not adjust. Please tell me a link to a detailed and clear tutorial -- You received this message because you are subscribed to the Google Groups "Django users" group.

What happens when you use ``select_for_update`` with ``select_related``?

2012-08-19 Thread Yo-Yo Ma
Given a model ``Employee`` with a foreign key ``company`` pointing to a model called ``Company``, would the following example lock both the ``Employee`` and ``Company`` rows that were selected? employee = Employee.objects.select_for_update().select_related('company').get(pk=1) Or, would only t

Re: Distinct Values in ModelChoiceField

2012-08-19 Thread Sithembewena Lloyd Dube
I reckon you could try the following: - declare a function which does a 'select distinct' and returns the queryset via the ORM e.g. def distinct_colors(): results = FavoriteColor.objects.all().values("color").distinct() return results then ... class FavoriteThingsForm(forms.ModelForm):

Re: Asking for your help: How do you develop apps today and in the future?

2012-08-19 Thread Marcin Tustin
Who's "us"? On Sat, Aug 18, 2012 at 8:34 PM, Wolfgang Gruener wrote: > We recently launched our web app survey to gain more insight in current > web app and app development trends. We would be excited if you guys could > take 5 minutes and head over to the form and fill out a fee questions. As >

Distinct Values in ModelChoiceField

2012-08-19 Thread Joseph Mutumi
Hello, I have a model that has a foreign key field that I want to use in a form as a select box. That particular field at times appears multiple times in the database. How do I make it only have distinct values? This is a snippet, drop down will have repeated values if same color is entered: cla

Re: How to use Django with Apache and mod_wsgi

2012-08-19 Thread Joseph Mutumi
Hello, Could you post the VirtualHost configuration for Apache? That would greatly help us help you. Regards On Mon, Aug 20, 2012 at 12:30 AM, Seyfullah Tıkıç wrote: > Hello, > > I read the article below. > https://docs.djangoproject.com/en/1.3/howto/deployment/modwsgi/ > > But still http://lo

Re: authenticate=None mistery: can't authenticate from the web but it works from the command line

2012-08-19 Thread Joseph Mutumi
Hello, I believe its a simple typo! authenticate(user=usuario, password=clave) should be authenticate(username=usuario, password=clave) Regards On Sun, Aug 19, 2012 at 3:35 PM, Jorge Garcia wrote: > Hi there. Im doing my first login form for an existing Django application. > The thing is tha

How to use Django with Apache and mod_wsgi

2012-08-19 Thread Seyfullah Tıkıç
Hello, I read the article below. https://docs.djangoproject.com/en/1.3/howto/deployment/modwsgi/ But still http://localhost redirects to /var/www/localhost/htdocs/index.html. I want http://localhost/ redirescts to /home/seyfullah/django/mysite. How can I do this? -- SEYFULLAH TIKIÇ -- You rec

[ImageField -Upload a valid image]

2012-08-19 Thread MN TS
Hello everybody. I've problem. When i upload image and submit i got follow form error. - Upload a valid image. The file you uploaded was either not an image or a corrupted image. I reinstall PIL (1.1.7) and setup.py file edit like JPEG_ROOT = '/usr/lib/i386-linux-gnu/'. Thanks -- You receiv

skip fixtures loading on 'manage.py test myapp'

2012-08-19 Thread Anton Baklanov
Hi! When I'm running 'manage.py test myapp' it loads all fixtures that are in 'myapp/fixtures' directory. And what I want is to find a way to tell django skip this fixtures and instead load some other ones or maybe no fixtures at all for certain tests. Is it possible? -- Regards, Anton Baklanov

library function to allow users to put collections of things into other collections?

2012-08-19 Thread Alex Glaros
Is there any already written library function to allow users to put collections of things into other collections? Similar to how Google docs lets users create different docs, then group them within a collection, but also lets users drag collections into other collections. I’d like to do that

Asking for your help: How do you develop apps today and in the future?

2012-08-19 Thread Wolfgang Gruener
We recently launched our web app survey to gain more insight in current web app and app development trends. We would be excited if you guys could take 5 minutes and head over to the form and fill out a fee questions. As our thank you, please leave your email address at the end of the survey an

authenticate=None mistery: can't authenticate from the web but it works from the command line

2012-08-19 Thread Jorge Garcia
Hi there. Im doing my first login form for an existing Django application. The thing is that when I give the correct usr/pswd from the web, django.contrib.auth.authenticate returns systematically None. However, when I try the same thing from the Django shell it works. I'm working with a "john

Re: New to dj: relational limitations

2012-08-19 Thread Axel Rau
Am 15.08.2012 um 01:49 schrieb Russell Keith-Magee: > For example, in order for the admin to allow > for an "empty" input, you'll need to set the field as 'blank=True', > which means the NULL will be converted to a blank string. > > This could be addressed at the form level, but it will involve

Re: Redirect to page with query string

2012-08-19 Thread Melvyn Sopacua
On 19-8-2012 3:29, Barry Morrison wrote: > I apologize, I'm new to Django and Python...I've tried every which way I > know how based on what you described, and I can't find success. > > Here is what I'm at right now: > > http://dpaste.org/7JcGT/ > > I get this error: 'DeleteCommunityImages' obje

Re: Redirect to page with query string

2012-08-19 Thread Barry Morrison
This actually ended up working: http://dpaste.org/U0uY4/ On Saturday, August 18, 2012 5:46:28 PM UTC-7, Melvyn Sopacua wrote: > > On 19-8-2012 2:26, Barry Morrison wrote: > > I have a view that displays images and gives me the ability to delete > the > > images. > > > > View url == /accou