FYI - Django, Python-memcached and memcached saves the day!

2009-11-15 Thread Ishwor Gurung
This post is kind of like a discussion rather than a question.. You can think of it as a feedback if you like (we've solved the issue at hand though would like to know how other people solved similar issue). Anyway onto the point - We needed a way to cache data from our Templates so the way we

Re: setup python, django for web development

2009-11-15 Thread Ishwor Gurung
Harshad, Hi. 2009/11/16 harshad : > hello All, > > Im new to python, django. Can anyone help me as to how to do the setup > on windows so that i can start developing web based applications on > python.

setup python, django for web development

2009-11-15 Thread harshad
hello All, Im new to python, django. Can anyone help me as to how to do the setup on windows so that i can start developing web based applications on python. regards harshad -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Password encryption

2009-11-15 Thread Gabriel Gunderson
On Thu, Nov 5, 2009 at 12:51 AM, Denis Bahati wrote: > My project require to have my own table for users and roles. Am not using > the default auth table. Does this work for your additional user info?

django basic blog and inlines

2009-11-15 Thread Bobby Roberts
ok i have no idea what is going on here. I have django basic blog loaded to my site. I've also installed inlines as follows: INSTALLED_APPS = ( ... 'inlines', 'blog', ) (yeah i pulled out the blog dir from the basic dir because i'm not using all the other basic app stuff) You can

Re: Making the case for Django (vs. Drupal)

2009-11-15 Thread Kenneth Gonsalves
On Monday 16 Nov 2009 6:50:10 am Christophe Pettus wrote: > On Nov 15, 2009, at 5:10 PM, Kenneth Gonsalves wrote: > > I do also point out to plone vs drupal, but there again the > > argument is the drupal is more widely used and hence has more > > observable > > vulnerabilities. It does not

Re: djangocon videos

2009-11-15 Thread Kevin L
Seconded. I'm waiting for videos to be published. Even if they released them one- by-one, that'd be fine by me. On Nov 11, 7:26 am, Aljosa Mohorovic wrote: > On Nov 10, 11:23 pm, Vitaly Babiy wrote: > > > According to there twitter

Re: PostgreSQL Schema support

2009-11-15 Thread Melvyn Sopacua
On Sun, 15 Nov 2009 15:20:32 -0800, Christophe Pettus wrote: > On Nov 15, 2009, at 2:35 PM, Melvyn Sopacua wrote: >> Is it possible for a "Django appointments application" to understand >> and use >> the geographical information from the tables in the geo_regionX >> schema

Re: Auth and Sites in Admin

2009-11-15 Thread Zeynel
Great, thanks. That solves my problem. But, I wish it were possible to actually make a user read only. Unless I give the user the right to change content the admin page says, "You don't have permission to edit anything" and no content is visible. But overall, I think admin is really great tool and

Re: no such column: blog_link.slug

2009-11-15 Thread James Bennett
On Sun, Nov 15, 2009 at 8:19 PM, neridaj wrote: > I'm getting this error even though I have added slug field for this > model - Link. I ran syncdb a few times and I still get the error. Any > suggestions? Quoting the documentation:

Re: Auth and Sites in Admin

2009-11-15 Thread Alex Robbins
Those sections won't show up for anyone who doesn't have edit permissions. As long as you don't give the admin user superuser status or permissions for those apps they won't show up. On Nov 14, 6:34 pm, Zeynel wrote: > Is it possible to remove "Auth" and "Sites" sections from

no such column: blog_link.slug

2009-11-15 Thread neridaj
I'm getting this error even though I have added slug field for this model - Link. I ran syncdb a few times and I still get the error. Any suggestions? class Link(models.Model): # Metadata. slug = models.SlugField(unique_for_date='pub_date', help_text="Must be unique for the

Re: Making the case for Django (vs. Drupal)

2009-11-15 Thread james_stevenson
Hi, new to the list here, but I've been doing Django dev for a while now and Drupal as well. In fact, at my workplace (60-person web design/ development shop) I'm leading a similar charge to move us away from Drupal development towards Django. I took a look at your post and thought I'd add a few

Re: Making the case for Django (vs. Drupal)

2009-11-15 Thread Christophe Pettus
On Nov 15, 2009, at 5:10 PM, Kenneth Gonsalves wrote: > I do also point out to plone vs drupal, but there again the > argument is the drupal is more widely used and hence has more > observable > vulnerabilities. It does not sound logical. I don't think that anyone is seriously arguing that a

Re: Making the case for Django (vs. Drupal)

2009-11-15 Thread Kenneth Gonsalves
On Monday 16 Nov 2009 6:13:43 am shacker wrote: > That's a tricky area - we have to be very careful about saying that > anything is "more secure" than anything else. We don't want to give > false hopes/impressions to managers, and we have to remember that part > of the reason for Django's

Re: stable sort for list views in the admin interface

2009-11-15 Thread Javier Guerra
Karen Tracey wrote: > Thus, the actual sort is done by the database. IOW, it's not about stable vs. non-stable sort algorithms, since it doesn't transform one view's data to the next. instead, both views are generated from the same data with different parameters. -- Javier -- You received

Re: django-tagging causing str error

2009-11-15 Thread neridaj
Thanks Karen. On Nov 14, 8:28 pm, Karen Tracey wrote: > On Fri, Nov 13, 2009 at 11:42 PM, neridaj wrote: > > I'm using django-tagging and I think it's causing an error when I try > > to access the admin page. If I comment out the urls that reference > >

Re: Making the case for Django (vs. Drupal)

2009-11-15 Thread shacker
On Nov 12, 4:56 pm, Kenneth Gonsalves wrote: > >http://birdhouse.org/blog/2009/11/11/drupal-or-django/ > > looks like you have missed out on security - count the number of critical > holes in drupal over the past year with the one hole in django in the past 4 > years. btw, I

Re: The job of a django web designer

2009-11-15 Thread Kenneth Gonsalves
On Monday 16 Nov 2009 5:00:06 am Antoni Aloy wrote: > Learning django template does not going to hurt you :) > > In the team I lead the designer sometimes creates the design and > sometimes just converts it to html+css. But she's able to work > understand and work with inheritance and filters. >

Re: The job of a django web designer

2009-11-15 Thread Antoni Aloy
2009/11/15 gnoze5 : > Hello, > > I am new to django and I am having a little issue in understanding the > expected role of a designer during the development a django website. > Is the point of the django template system to allow a designer to not > have to worry about any

Re: The job of a django web designer

2009-11-15 Thread Christophe Pettus
On Nov 15, 2009, at 2:56 PM, gnoze5 wrote: > I am new to django and I am having a little issue in understanding the > expected role of a designer during the development a django website. > Is the point of the django template system to allow a designer to not > have to worry about any code, and

Re: PostgreSQL Schema support

2009-11-15 Thread Christophe Pettus
On Nov 15, 2009, at 2:35 PM, Melvyn Sopacua wrote: > Is it possible for a "Django appointments application" to understand > and use > the geographical information from the tables in the geo_regionX > schema and > equally important to treat that specific schema as read only, as the > data is

What would cause an app to not register?

2009-11-15 Thread Joshua Kramer
Howdy Everyone! After having installed a fresh version of Pinax 0.7.1, I have an interesting problem with the behavior of Django when I try to install custom applications. In my main project directory, I've created an 'apps' directory, and created some standard django skeleton apps. When I

The job of a django web designer

2009-11-15 Thread gnoze5
Hello, I am new to django and I am having a little issue in understanding the expected role of a designer during the development a django website. Is the point of the django template system to allow a designer to not have to worry about any code, and only need to deliver let's say, a pure

PostgreSQL Schema support

2009-11-15 Thread Melvyn Sopacua
Hi, I'm considering Django for some projects, but initial research on schema support only showed some generics and I can't really find a good answer to my specific situation. So, I figured I'd try here. I've developed a database which should support various applications, separated by

Re: Django/GoDaddy

2009-11-15 Thread mkumm
Colin thanks - I will try installing all of the -devel stuff. ha - 2.4 - thanks! On Nov 15, 2:32 pm, Colin Bean wrote: > On Sun, Nov 15, 2009 at 6:15 AM, mkumm wrote: > > I recently took on a new project for a new client where I was forced > > into

Re: Confirm email by matching on form

2009-11-15 Thread Dennis Kaarsemaker
On zo, 2009-11-15 at 13:38 -0800, pjrhar...@gmail.com wrote: > Also, I have an even simpler suggestion. Don't make the user confirm > their email. I'm getting fed up with seeing this on forms all over the > web when it serves no purpose at all. You confirm a password because > you can't read it

Re: Confirm email by matching on form

2009-11-15 Thread pjrhar...@gmail.com
In addition to the above, cleaning that requires two fields is best put in the forms overall clean method. This makes it a bit harder because you can't raise a validation error if you want the error to appear by the field, you have to insert it into self._errors. Also, I have an even simpler

Re: Django application source code

2009-11-15 Thread Gonzalo Delgado
El Sat, 14 Nov 2009 22:16:22 -0800 (PST) sanju m escribió: > Please share any simple Django application source code with AJAX > support, for reference. http://lmgtfy.com/?q=django+ajax+example > I am planing to develop an account managing web application in Django. > If

Re: Anything like RoR's render :partial?

2009-11-15 Thread Михаил Лукин
There is also "with" tag, it may be useful for such thing 2009/11/15 apramanik > Awesome! Thanks for the clarification. > > Abhik > > On Nov 15, 10:48 am, Dennis Kaarsemaker > wrote: > > On zo, 2009-11-15 at 10:08 -0800, apramanik wrote: > > > > > Sure

Re: Django/GoDaddy

2009-11-15 Thread Colin Bean
On Sun, Nov 15, 2009 at 6:15 AM, mkumm wrote: > I recently took on a new project for a new client where I was forced > into using a GoDaddy Virtual Server (literally it was a deal breaker). > Anyway I have configured about 1/2 dozen servers to run django - but I > am

Re: Redirect

2009-11-15 Thread Zeynel
I couldn't make this one work: ('^$', lambda *args: HttpResponseRedirect('/admin/')) I want to try the other case, which file in apache do I use? Thanks On Nov 15, 1:01 pm, Dennis Kaarsemaker wrote: > On zo, 2009-11-15 at 09:35 -0800, Zeynel wrote: > > > how do i

Re: Anything like RoR's render :partial?

2009-11-15 Thread apramanik
Awesome! Thanks for the clarification. Abhik On Nov 15, 10:48 am, Dennis Kaarsemaker wrote: > On zo, 2009-11-15 at 10:08 -0800, apramanik wrote: > > > Sure in most cases, but is there a way to fake setting the context of > > the included template? If I'm iterating over a

Re: Anything like RoR's render :partial?

2009-11-15 Thread Dennis Kaarsemaker
On zo, 2009-11-15 at 10:08 -0800, apramanik wrote: > Sure in most cases, but is there a way to fake setting the context of > the included template? If I'm iterating over a set of comments and > include "comment.html", can I specify which comment to render? {% for comment in comments %} {%

Generic view year var showing future dates

2009-11-15 Thread Martin Lundberg
Hello, Should the years variable contain dates for years in the future (if I've got posts in the future) if I have NOT set allow_future to True? Right now it is being displayed and the link which I create using / {{d.year}}/ links to a page giving 404 error. -Martin -- You received this

Re: Anything like RoR's render :partial?

2009-11-15 Thread apramanik
Sure in most cases, but is there a way to fake setting the context of the included template? If I'm iterating over a set of comments and include "comment.html", can I specify which comment to render? Thanks! Abhik On Nov 15, 9:59 am, Dennis Kaarsemaker wrote: > On zo,

Re: Redirect

2009-11-15 Thread Andy McKay
On 09-11-15 9:35 AM, Zeynel wrote: > how do i redirect www.swimswith.com to www.swimswith.com/admin/ http://docs.djangoproject.com/en/dev/ref/generic-views/#django-views-generic-simple-redirect-to First hit in Google. -- Andy McKay, @clearwind Training: http://clearwind.ca/training/ --

Re: Redirect

2009-11-15 Thread Dennis Kaarsemaker
On zo, 2009-11-15 at 09:35 -0800, Zeynel wrote: > how do i redirect www.swimswith.com to www.swimswith.com/admin/ In your urlpatterns: ('^$', lambda *args: HttpResponseRedirect('/admin/')) Or make your webserver do this, e.g. in apache: RewriteEngine On RewriteRule ^/$ /admin/ [R,L] --

Re: Anything like RoR's render :partial?

2009-11-15 Thread Dennis Kaarsemaker
On zo, 2009-11-15 at 09:26 -0800, apramanik wrote: > I'm migrating to Django from Ruby on Rails. In the template language > for Django, I've been looking for something similar to RoR's > render :partial but can't find anything. It allows you write a > template for a snippet of code rather than an

Redirect

2009-11-15 Thread Zeynel
hello, how do i redirect www.swimswith.com to www.swimswith.com/admin/ Thanks -- 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

Anything like RoR's render :partial?

2009-11-15 Thread apramanik
Hi all, I'm migrating to Django from Ruby on Rails. In the template language for Django, I've been looking for something similar to RoR's render :partial but can't find anything. It allows you write a template for a snippet of code rather than an entire page. I found it very useful when I was

Re: Stucked in template language

2009-11-15 Thread Mike Ramirez
On Sunday 15 November 2009 08:27:29 Nagy Károly wrote: > In the template i cannot decide if specific attribute is assigned to a > car or not, because i cant pass parameter to method call. > > How can i override this? > I have a love affair with these things, but template tags [1] would help.

Re: Stucked in template language

2009-11-15 Thread Andy McKay
On 09-11-15 8:27 AM, Nagy Károly wrote: > In the template i cannot decide if specific attribute is assigned to a > car or not, because i cant pass parameter to method call. > > How can i override this? You can't. You could use a different template language. But you'll be better off formatting

Stucked in template language

2009-11-15 Thread Nagy Károly
Hi there, we have models like this: 1. A car database with freely assignable attributes. 2. An attribute-type table (ex: color, engine, seats) 3. Car attributes (ex: color:red, seats: 5) variable car by car We have to display a matrix of cars (rows) with different attributes (columns), but not

Re: stable sort for list views in the admin interface

2009-11-15 Thread Karen Tracey
On Sun, Nov 15, 2009 at 10:55 AM, Andrew Ball wrote: > I've noticed that in Django 1.1 when I sort based on a column in the admin > interface's list view for one of my models and then sort by a different > column, the second result set is no longer sorted based on the first

stable sort for list views in the admin interface

2009-11-15 Thread Andrew Ball
I've noticed that in Django 1.1 when I sort based on a column in the admin interface's list view for one of my models and then sort by a different column, the second result set is no longer sorted based on the first column selected. This means that the sorting algorithm used is not a stable

Re: Confirm email by matching on form

2009-11-15 Thread Karen Tracey
On Sun, Nov 15, 2009 at 10:29 AM, Andy wrote: > I have a form with an email field and email confirmation field. I > want to check the form input to make sure the two fields match. So > far I can get the error message 'Email addresses do not match.' to > display, but if

Re: Confirm email by matching on form

2009-11-15 Thread Andy
I should say that I am using Django 1.1.1, Python 2.5 and sqlite3. Thanks for your help. On Nov 15, 9:29 am, Andy wrote: > I have a form with an email field and email confirmation field.  I > want to check the form input to make sure the two fields match.  So > far I can

Confirm email by matching on form

2009-11-15 Thread Andy
I have a form with an email field and email confirmation field. I want to check the form input to make sure the two fields match. So far I can get the error message 'Email addresses do not match.' to display, but if they do match I am getting an error 'InterfaceError at /order/ Error binding

Re: ManyToOne to auth.models.User

2009-11-15 Thread Andy Mckay
On 09-11-15 7:00 AM, TiNo wrote: > On Sun, Nov 15, 2009 at 09:31, Dennis Kaarsemaker > > wrote: > > On za, 2009-11-14 at 15:53 -0800, TiNo wrote: > > > In my apps, Users of the app participate in a certain Year. I would > > like

Re: ManyToOne to auth.models.User

2009-11-15 Thread TiNo
On Sun, Nov 15, 2009 at 09:31, Dennis Kaarsemaker wrote: > On za, 2009-11-14 at 15:53 -0800, TiNo wrote: > > > In my apps, Users of the app participate in a certain Year. I would > > like a Year to continue a ManyToOne relationship with a User. As > > creating a ForeignKey

Django/GoDaddy

2009-11-15 Thread mkumm
I recently took on a new project for a new client where I was forced into using a GoDaddy Virtual Server (literally it was a deal breaker). Anyway I have configured about 1/2 dozen servers to run django - but I am stumped on this. I am looking for help from anyone who may have this experience.

Re: Mediatemple/Django

2009-11-15 Thread mkumm
I looked at it, but at the time they charged $20 for the and then $20 for the container with metered GPU. FOr $50 a month I got their equivalent of a virtual dedicated with unmetered GPU (they still watch bandwidth etc) which worked out really well. I have about 6 django sites running on that

Re: Increment a value in a database table field

2009-11-15 Thread Denis Bahati
Exactly Karen the model is confusing. Here is the exactly model. class Resource_Track(models.Model) users = models.ForeignKey(User) resources = models.ForeignKey(Resource) date_tracked = models.DateTimeField('Date Tracked') description =

Re: slow tests on 1.1.1 w/ sqlite

2009-11-15 Thread Phlip
Russell Keith-Magee wrote: > > mileux. Enough said, and nobody's making a Federal case out of it. > > I won't claim to be a Smalltalk expert That's why I said "enough said". C-: The only detail here is I like distinct definitions, and linking "fixture" to "behavior" and "resource" to "data"

Re: Django application source code

2009-11-15 Thread Peterle
try out Pinax --- On 15 Nov, 07:16, sanju m wrote: > I am new in Django > Please share any simple Django application source code with AJAX > support, for reference. > I am planing to develop an account managing web application in Django. > If any one have source

Re: Questions about ContentType generic relations

2009-11-15 Thread Dennis Kaarsemaker
On zo, 2009-11-15 at 00:13 -0800, Continuation wrote: > I checked out the doc (http://docs.djangoproject.com/en/dev/topics/db/ > queries/) and can't find reference to it. Can you explain its usage a > bit more or point me to the relevant section of the doc?

Re: ManyToOne to auth.models.User

2009-11-15 Thread Dennis Kaarsemaker
On za, 2009-11-14 at 15:53 -0800, TiNo wrote: > In my apps, Users of the app participate in a certain Year. I would > like a Year to continue a ManyToOne relationship with a User. As > creating a ForeignKey on a User is not possible, what would be the > best way to do this? I don't need a

Re: Questions about ContentType generic relations

2009-11-15 Thread Daniel Roseman
On Nov 15, 8:13 am, Continuation wrote: > > As the docs show, when you've defined a GenericRelation, querying is > > exactly the same as with a reverse foreign key. So: > > Bookmark.objects.get(tags__tag='django') > > I don't quite understand your use of

Re: Many to many relation - parents without any children

2009-11-15 Thread Tomasz Zieliński
On 15 Lis, 09:34, Nagy Károly wrote: > Tomasz Zieli ski wrote: > > How about something like this (should work, although I haven't checked > > it): > > > Author.objects.annotate(article_num=Count('articles')).filter > > (article_num=0) > > > - where

Re: Many to many relation - parents without any children

2009-11-15 Thread Nagy Károly
Tomasz Zieliński wrote: > How about something like this (should work, although I haven't checked > it): > > Author.objects.annotate(article_num=Count('articles')).filter > (article_num=0) > > - where articles=ManyToManyField('Article') > This is so elegant, so i have to upgrade to 1.1 now... :)

Re: Questions about ContentType generic relations

2009-11-15 Thread Continuation
> > As the docs show, when you've defined a GenericRelation, querying is > exactly the same as with a reverse foreign key. So: > Bookmark.objects.get(tags__tag='django') > I don't quite understand your use of tags__tag='django' in retrieving the objects. I've never seen this usage before. I