Re: django ticket tracking

2010-11-25 Thread Kenneth Gonsalves
On Thu, 2010-11-25 at 11:54 -0500, Karen Tracey wrote: > (I used those session setting for a long time before I ever created a > login, > but that was years ago now. I assume it still works to avoid the spam > filter.) I remember setting it about 5 years back - never had any problem since then --

Re: Weird problem after schema change

2010-11-25 Thread Venkatraman S
On Fri, Nov 26, 2010 at 6:30 AM, Chris Tandiono wrote: > How can I get the date field to show up in the admin interface? > Couple of checks: - have you defined any custom forms for admin? - Do the field names match properly? A good practice generally is : do a 'sqlall' before you make the change

Weird problem after schema change

2010-11-25 Thread Chris Tandiono
Hi, I'm using sqlite3 and django-evolution (and sometimes manual ALTER TABLE commands) for this website I'm making. Recently I added a new date field to one of my models, but it's not showing up in the admin interface. (I'm also having a problem in which the admin interface is taking taking a l

Re: One-to-One relation with abstract classes

2010-11-25 Thread Marc Aymerich
On Thu, Nov 25, 2010 at 11:42 AM, Clemens Wältken wrote: > Hey everyone! > Iam new to this mailinglist and django + python in general. > Yesterday I came up with a pretty complex question concerning abstract > classes and relations. > I have modeled the following classes: > > Question > *

how to do Query profiling of views called from AJAX calls?

2010-11-25 Thread ydjango
Django debug and django debug tool bar are not capturing the django ORM calls made from the views which are called via AJAX calls in the page . Is there any way to profile these sqls and times ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: One-to-One relation with abstract classes

2010-11-25 Thread akaariai
On Nov 25, 12:42 pm, Clemens Wältken wrote: > Hey everyone! > Iam new to this mailinglist and django + python in general. > Yesterday I came up with a pretty complex question concerning abstract > classes and relations. > I have modeled the following classes: > >      Question > /Answer > /YesNoAn

Re: Django feeds sometimes generate AttributeError: 'LatestStripsByStripConfig' object has no attribute '__name __'

2010-11-25 Thread marty3d
It's 1.2.3. I have two ideas, either it could be the cache (started using filesystem cache a week ago) or I'm using a stupid query for returning the queryset (aka database performance issue). Have anyone heard of caching messing with the feeds system? /Martin On Nov 25, 3:42 pm, Łukasz Rekucki

Re: Custom Login using model form

2010-11-25 Thread Daniel Roseman
On Nov 25, 7:53 am, PRANAV HEGDE wrote: > Hi guys, > > I'm trying to create a login form using a model form, > > user model: > class users(models.Model): >     username = models.CharField(max_length=20, primary_key=True) >     password = models.CharField(max_length=50) >     usertype = models.Char

Re: auth_user first_name and last_name editing

2010-11-25 Thread BozoJoe
So no builtin views and urls in any modules? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups

Re: Reloading a single model object from .py file... keeps getting cached results?

2010-11-25 Thread Karen Tracey
On Wed, Nov 24, 2010 at 3:34 PM, Jumpfroggy wrote: > I want to run a script outside of the django server for maintenance > purposes, but it still accesses some of the models. The problem is > that I can't seem to get the model object to reload it's data from the > DB - it always seems cached. >

Re: django ticket tracking

2010-11-25 Thread Karen Tracey
On Wed, Nov 24, 2010 at 10:12 AM, felix wrote: > The django ticket system regards everything as spam. > > There doesn't seem to be a way to get a password reset. > > I created a new account, verified it, but the username/password or the > email/password still do not work to login. > > anybody hav

Re: Central Login with Redirecting users based on Groups

2010-11-25 Thread Knut Ivar Nesheim
Hi Stefan, If you roll your own login view, this can be done by simply redirecting to the correct url after authentication. You would have to come up with the correct url by looking at the groups. Consider something like this: def login_view(request): # login and authenticate.. user = Use

settings.DEBUG=False in django 1.2.1 and no mail connection

2010-11-25 Thread Sells, Fred
I'm trying to get django to email exceptions to me, now that my app is in production. I'm testing under Windows7 but will deploy under Linux CENTOS The following code works as a test (server names changed to protect the innocent: from django.core.mail import EmailMessage import os def run():

Re: percentage of models given field value?

2010-11-25 Thread Eric Torstenson
Why not make a function in the model return those results? On 11/24/10 10:13 PM, Lachlan Musicman wrote: On Thu, Nov 25, 2010 at 13:44, Christophe Pettus wrote: On Nov 24, 2010, at 4:37 PM, Lachlan Musicman wrote: Using django 1.2 I wanted to present some statistics on the data that we have be

Custom Login using model form

2010-11-25 Thread PRANAV HEGDE
Hi guys, I'm trying to create a login form using a model form, user model: class users(models.Model): username = models.CharField(max_length=20, primary_key=True) password = models.CharField(max_length=50) usertype = models.CharField(max_length=20) class Meta: db_table = u

One-to-One relation with abstract classes

2010-11-25 Thread Clemens Wältken
Hey everyone! Iam new to this mailinglist and django + python in general. Yesterday I came up with a pretty complex question concerning abstract classes and relations. I have modeled the following classes: Question /Answer /YesNoAnswer FreeAnswer Answer should be abstract (note the

Central Login with Redirecting users based on Groups

2010-11-25 Thread stefanvonfintel
Hi all. I am new to Django and have just recently started using it for a new project at our company. I have a bit of problem at the moment. What I would ideally like is to have one central login for users and then redirect them based on the groups that they belong to once they have been authentica

Building Privacy Options Like Facebook with Django

2010-11-25 Thread Corey
I was trying to build a website that would be a good idea to have privacy options to hide certain data such as Facebook does with personal info. I am a somewhat newbie to Django and website building in general. So Im trying to wrap my head around how to work on this. I have indeed tried to look on

Re: tree data structure

2010-11-25 Thread pa_ree
the idea is basically that there are people in an organization who are working in various projects under different roles. so i want to represent the project hierarchy in the form of an inverted tree structure. i also want it to be dynamic that is when a new project is assigned to a person say who i

Re: Key 'buscar' not found in "

2010-11-25 Thread Nick Arnett
On Thu, Nov 25, 2010 at 6:35 AM, bvcelari wrote: > Hy, > I'm trying to deploy my first django app, and I'm trying to use > pagination , I 'm using Django 1.2 > I'm using a simple view with form, and with the request show the > results paginated. when I try to go to next page > the message appears

Re: Django feeds sometimes generate AttributeError: 'LatestStripsByStripConfig' object has no attribute '__name __'

2010-11-25 Thread Łukasz Rekucki
Well, something must have changed if you didn't had the problem before. What version of Django are you running ? On 25 November 2010 15:38, marty3d wrote: > Hi! > > My site have started to behave a little weird. > > Lately, I get two or three errors per day, saying: > Traceback (most recent call

Django feeds sometimes generate AttributeError: 'LatestStripsByStripConfig' object has no attribute '__name __'

2010-11-25 Thread marty3d
Hi! My site have started to behave a little weird. Lately, I get two or three errors per day, saying: Traceback (most recent call last): File "/home/mistalaba/.virtualenvs/production/lib/python2.5/site- packages/django/core/handlers/base.py", line 95, in get_response response = middleware_me

Key 'buscar' not found in "

2010-11-25 Thread bvcelari
Hy, I'm trying to deploy my first django app, and I'm trying to use pagination , I 'm using Django 1.2 I'm using a simple view with form, and with the request show the results paginated. when I try to go to next page the message appears: "Key 'buscar' not found in " buscar is a hidden value used fo

Re: newbie admin question

2010-11-25 Thread Eric Torstenson
Ah, and the name is so clear-but I misinterpreted it thinking it was strictly layout. On Thu, Nov 25, 2010 at 7:58 AM, Jason Mayfield wrote: > In this particular example, you have Character model being an inline of > itself. > > On Nov 24, 2010, at 8:07 PM, eric wrote: > > > Well, there are a num

Re: Current Django 1.3 Alpha 2 Documentation as PDF

2010-11-25 Thread ckar...@googlemail.com
Okay, please remind me ;-) On 25 Nov., 09:38, derek wrote: > Please post a link to the PDF when the final release is available. > > On Nov 21, 7:38 pm, "ckar...@googlemail.com" > wrote: > > > > > > > > > Sry for dublepost. > > > For those who don't want to install all the *tex* libraries. Here i

Re: confirm user by ref_has and email

2010-11-25 Thread robos85
Yes it looks that: from django.db import models from django.contrib.auth.models import User class UserProfile(models.Model): user = models.ForeignKey(User, unique=True) register_hash = models.CharField(max_length=32) And now I want to do something like this: check = User.objects.all()

Re: newbie admin question

2010-11-25 Thread Jason Mayfield
In this particular example, you have Character model being an inline of itself. On Nov 24, 2010, at 8:07 PM, eric wrote: > Well, there are a number of models, so I'll just give an example of > the one that is misbehaving: > > > from pages.models import Chapter > from django.contrib import admin

Re: tree data structure

2010-11-25 Thread bruno desthuilliers
On 25 nov, 11:47, pa_ree wrote: > i want to create a tree data structure for an organizational project > for eg at the root level i want the project leader, under him would > work the project manger, under him the project members and so on Do you really need a tree to represent this ? What's

mysql default connection timeout

2010-11-25 Thread Henrik Genssen
Hi, can someone tell me, what the default connection timeout is for mysql using django? The docs only tell, how to overwrite the defaults... regards Henrik -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: tree data structure

2010-11-25 Thread bruno desthuilliers
On 25 nov, 11:58, Daniel Roseman wrote: > On Nov 25, 10:47 am, pa_ree wrote: > > > i want to create a tree data structure for an organizational project > > for eg at the root level i want the project leader, under him would > > work the project manger, under him the project members and so on

Re: confirm user by ref_has and email

2010-11-25 Thread bruno desthuilliers
On 25 nov, 12:55, robos85 wrote: > I'm wondering how to confirm user by ref_hash and email. I know how to > check by ref_hash in my UserProfile model but have no idea how to > connect users model with my UserProfile model. > It's required because I'm checking email (Users) and reg_hash > (UserProf

Re: Image upload in Django

2010-11-25 Thread Sithembewena Lloyd Dube
:) Thanks Venkatraman, I noted with embarrassment that it's painless via the model, somewhere in the docs. Thanks. On Thu, Nov 25, 2010 at 3:02 PM, Venkatraman S wrote: > > On Thu, Nov 25, 2010 at 6:10 PM, Sithembewena Lloyd Dube < > zebr...@gmail.com> wrote: > >> >> I have a Member model repre

Re: Image upload in Django

2010-11-25 Thread Venkatraman S
On Thu, Nov 25, 2010 at 6:10 PM, Sithembewena Lloyd Dube wrote: > > I have a Member model representing a site user. I wish to add functionality > to allow users to upload images to their profiles, and I need a pointer to a > *simple* file upload solution for Django. > I am not sure what is the ac

Image upload in Django

2010-11-25 Thread Sithembewena Lloyd Dube
Hi folks, I have a Member model representing a site user. I wish to add functionality to allow users to upload images to their profiles, and I need a pointer to a *simple* file upload solution for Django. Any ideas? -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received

Re: confirm user by ref_has and email

2010-11-25 Thread robos85
EDIT - title should be: "confirm user by reg_hash and email" On 25 Lis, 12:55, robos85 wrote: > I'm wondering how to confirm user by ref_hash and email. I know how to > check by ref_hash in my UserProfile model but have no idea how to > connect users model with my UserProfile model. > It's requir

confirm user by ref_has and email

2010-11-25 Thread robos85
I'm wondering how to confirm user by ref_hash and email. I know how to check by ref_hash in my UserProfile model but have no idea how to connect users model with my UserProfile model. It's required because I'm checking email (Users) and reg_hash (UserProfile). How to resolve it? -- You received

Re: 'is None' in {% if %}

2010-11-25 Thread Łukasz Rekucki
On 25 November 2010 03:48, Christophe Pettus wrote: > I have a Decimal field that's blank=True, null=True, and NULL and 0.0 are > distinct values.  I'd like to do something different in a template depending > on whether or not the value is None or not, but a standard {% if field %} > treats 0.0

Re: tree data structure

2010-11-25 Thread Daniel Roseman
On Nov 25, 10:47 am, pa_ree wrote: > i want to create a tree data structure for an organizational project > for eg at the root level i want the project leader, under him would > work the project manger, under him the project members and so on > plz help http://github.com/django-mptt/django-mp

tree data structure

2010-11-25 Thread pa_ree
i want to create a tree data structure for an organizational project for eg at the root level i want the project leader, under him would work the project manger, under him the project members and so on plz help -- You received this message because you are subscribed to the Google Groups "Dja

Re: django bug with __iexact

2010-11-25 Thread bruno desthuilliers
On 24 nov, 16:13, felix wrote: > from django.contrib.auth.models import * >  User.objects.filter(username__iexact="/turtle") > > *** ValueError: list.index(x): x not in list > > URL:http://code.djangoproject.com/svn/django/trunk > Repository Root:http://code.djangoproject.com/svn > Repository UUID

Re: tutorial part 4: ImportError

2010-11-25 Thread Robbington
As mentioned before, If you are using Django 1.2 you dont need to import list_view or detail_view just 'from django.conf.urls.defaults import *' As the tutorial documentation for 1.2 http://docs.djangoproject.com/en/1.2/intro/tutorial04/ instructs: from django.conf.urls.defaults import * from p

Re: tutorial part 4: ImportError

2010-11-25 Thread steph
On 23 Nov., 17:44, Daniel Roseman wrote: > On Nov 23, 4:06 pm, steph wrote: > > > > > Hi group, > > > I'm new - just worked thgough the tutorial. In part 4 about the use of > > generic views I've got a problem - I can't import ListView and > > DetailView: > > > >>> from django.views.generic imp

Re: tutorial part 4: ImportError

2010-11-25 Thread steph
>>> import django.views.generic >>> dir (django.views.generic) ['GenericViewError', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'list_detail'] ok, I can see list_detail now :-) ... but the other? maybe a problem with my installation ... On 23 Nov., 17:37, Michae

Re: Current Django 1.3 Alpha 2 Documentation as PDF

2010-11-25 Thread derek
Please post a link to the PDF when the final release is available. On Nov 21, 7:38 pm, "ckar...@googlemail.com" wrote: > Sry for dublepost. > > For those who don't want to install all the *tex* libraries. Here is > the link:http://ubuntuone.com/p/QFl/ > > Have fun with printing and reading ;-) >