Quick and dirty "what I'm reading" plugin

Posted by: barbara | Date: Nov 22, 2008 | Category: django | Comments: 2

The model:

 class Book(models.Model): RATING_CHOICES = ( ('1', '1'), ('2', '2'), ('3', '3'), ('4', '4'), ('5', '5'), ) STATUS_CHOICES = ( ('1', 'have read'), ('2', 'currently reading'), ('3', 'want to read'), ) title = models.CharField(max_length=255) author_first_name = models.CharField(max_length=255) author_last_name = models.CharField(max_length=255) isbn = models.CharField(max_length=255) status = models.IntegerField(max_length=2, ...

Read More

Taking the ugly out of Django comments

Posted by: barbara | Date: Nov 07, 2008 | Category: django | Comments: 3
Django comments are pretty easy to implement - most of what you need to get access to the app and template tags is covered in the documentation:

http://docs.djangoproject.com/en/dev/ref/contrib/comments/

Regarding the template tags - you should be able to figure out what properties the ...

Read More

Multiple database connection: a simple use case

Posted by: barbara | Date: Oct 15, 2008 | Category: django | Comments: 1
A few days ago, I posted (here and on Google's Django Users group) about my particular multi-DB situation. In brief, we have two different projects (and possibly more going forward) that have unique codebases and separate databases, but will share at least one object, a common type of content.

Read More

An as-yet unsolved multi-DB problem

Posted by: barbara | Date: Oct 09, 2008 | Category: django | Comments: 0
Originally posted to the Django users group:

    "We're building a couple of different projects - one social network-y site, and one that's bloglike. So each has its own unique database, but they do share one common set of content.

    I've created a third ...

    Read More

Slimming down your project's admin

Posted by: barbara | Date: Oct 08, 2008 | Category: django | Comments: 0
Speaking of slimming down, I was just at the gym, listening to the most recent episode of This Week in Django on my iPod (not exactly the best workout motivation, but it was what I had with me at the time). In this week's episode, Brian Rosner ...

Read More