Re: Override default django Registration email

2011-03-04 Thread Tomasz Zieliński
On 3 Mar, 14:23, bruno desthuilliers wrote: > On 3 mar, 13:39, Kenneth Gonsalves wrote: > > > On Thu, 2011-03-03 at 00:36 -0800, pols wrote: > > > Anyone knows how to override djangos default registration email.I > > > need to alter it to sent as html email instead of text email.As i am a > > >

Re: Django 1.2.5 postgres autocommit and contenttype sites tests failures

2011-03-04 Thread Tomasz Zieliński
On 2 Mar, 00:10, Jason Culverhouse wrote: > Hi, > It seems that the contenttype framework and the sites contribs > conflict with using the autocommit:True database option.   Do you really need that autocommit? Django has its own concept of autocommit, which seems to just work most of the time. Wi

Re: Need help with this basic query (annotate vs aggregate)

2011-03-04 Thread Tomasz Zieliński
On 4 Mar, 01:19, Steven Sacks wrote: > Here is my model: > > class PlaylistTag(models.Model): >     playlist = models.ForeignKey(Playlist) >     tag = models.CharField(max_length=128) >     tag_count = models.PositiveIntegerField(default=1) > > The way this model works is simple. If you add a ta

Re: Configuring Django-Sentry to send error mails

2011-03-04 Thread Tomasz Zieliński
On 4 Mar, 05:49, Ajay wrote: > am using django-sentry for logging errors. I also want to enable > throttled error mails to be sent to admins whenever an error occurs. > But I can not get it working. > > a) Normal django error mailing is working. b) but on removing ADMINS > and adding SENTRY_ADMI

Re: Django 1.2.5 postgres autocommit and contenttype sites tests failures

2011-03-04 Thread Tomasz Zieliński
On 4 Mar, 14:22, David De La Harpe Golden wrote: > On 04/03/11 10:01, Tomasz Zieliński wrote: > > > On 2 Mar, 00:10, Jason Culverhouse wrote: > >> Hi, > >> It seems that the contenttype framework and the sites contribs > >> conflict with using the autocomm

Re: Tracking Model's History

2011-03-10 Thread Tomasz Zieliński
On 7 Mar, 05:06, Venkatraman S wrote: > Hi, > > Similar to the way, the admin tracks the changes, i was looking for > something which can be used in my app and stumbled on > this > . > Q is : How efficient is this? I mean,

Re: How to delete ONLY m2m relation?

2011-03-10 Thread Tomasz Zieliński
On 9 Mar, 16:12, Casey Greene wrote: > In that case, I believe you can remove it with > > user.province_set.remove(province) > user.save() > User.save() is unnecessary here because remove() changes m2m intermediate table and save() changes only User table. > > I am going from memory here.  I tri

Re: orm: operations between models fields

2011-03-21 Thread Tomasz Zieliński
On 19 Mar, 22:49, maxi wrote: > Hi, > > Which is the better way to do this on orm language ? > > select filed1, sum(field2 * field3) > from a_table > group by field1 > I believe this is not possible in the current Django ORM. It would need something like this to work: MyModel.objects.annotate

Re: Logging visitors/requests and showing it all in a nice report?

2011-03-22 Thread Tomasz Zieliński
On 21 Mar, 14:21, Thomas Weholt wrote: > Is there an app for logging visitors with a nice report, like a report > showing number of visitors for a specific page, users with a specific > browser/OS etc? > I know you want a Djangoish solution, but there is a nice small Apache log analyzer http://ww

Re: ManyToMany Intermediate Table on a Separate Database?

2011-03-29 Thread Tomasz Zieliński
(Sorry Daniel, I replied to your private email by accident - the new Google Groups UI misled me.) Actually in MySQL you can easily work around that limitation - you can use database VIEWs as mirrors of tables placed in other databases. -- Tomasz Zielinski pyconsultant.eu -- You received this

Session "rollback" after transaction rollback

2011-03-29 Thread Tomasz Zieliński
How do you handle situation in which exception is raised from view, TransactionMiddleware rolls back the open transaction, but subsequently SessionMiddleware updates session in database with broken data (i.e. something that points to what was rolled back by TransactionMiddleware) ? This is an ed

<    1   2