Re: Clean URL Design: List Views and Details Views

2009-04-17 Thread Col Wilson
/products/by-popularity/ /products/featured/ /products/page/5/ /products/add/ /products/elvis/ /product/in-the-ghetto/ /product/jail-house-rock/ /product/love-me-tender/ On Apr 16, 2:29 pm, Aidas Bendoraitis wrote: > Hello, > > Recently, we are solving a conceptual question of designing clean ur

Re: Authenication for django.views.generic Views

2009-04-16 Thread Col Wilson
Thanks all. I have some reading to do, but I have also noticed in the meantime that generic views docs (http://docs.djangoproject.com/en/dev/ ref/generic-views/#ref-generic-views) have a hook into the auth system. Look for 'login_required'. Having said that, I still have a bit of reading to do.

Authenication for django.views.generic Views

2009-04-16 Thread Col Wilson
I'm using generic views to render my pages (django.views.generic.date_based, django.views.generic.list_detail etc) and they're very handy. However, the app I'm trying to build would like a security and on reading the "User Authentication in Django" document, it just talks about adding authenticat

relationships problem

2008-05-21 Thread Col Wilson
I'm brand new to django from rails, and I'm a bit stuck trying to get relationships to work. RawPlaces table is full of place names and data already. My model looks like this: from django.db import models import sys, os class RawPlace(models.Model): name = models.CharField(max_length=64