Re: Django on Dreamhost

2005-09-07 Thread Eugene Lazutkin
The only piece I need for true happiness with Django is caching. Dreamhost doesn't provide memcached:. simple: is, well, too simple because it is not thread-safe. If only we had mysql:, or file: cache option... Nudge, nudge, wink, wink, know what I mean? know what I mean? ;-) Thanks, Eugene

Re: Django on Dreamhost

2005-09-07 Thread Adrian Holovaty
On 9/7/05, Eugene Lazutkin <[EMAIL PROTECTED]> wrote: > Now you can: > > 1) try (and beta test) the patch to mysql.py > 2) give Allan some time to update his repository and download new > flup/fcgi.py > 3) enjoy Django on Dreamhost Thanks very much for that patch, Eugene. Yes, other Dreamhost fo

Django on Dreamhost

2005-09-07 Thread Eugene Lazutkin
Hello, It looks like now Django works on Dreamhost without hiccups. Before I had 2 problems I shared here: 1) Highly frequent but random OperationalError: (2013, 'Lost connection to MySQL server during query') 2) Strange stalling (for ~2 minutes) during serving long pages. #1 --- I filed a ti

Name in admin for Foreign Key's

2005-09-07 Thread Milton Waddams
I'm trying to associate multiple users with a team and each user having a specific role within that team. eg. not my situation though easiest way to make it clear what I'm attempting to achieve... CEO = meta.ForeignKey(User) CFO = meta.ForeignKey(User) when I go to edit this in the admin area I g

RDBMS knowledge required?

2005-09-07 Thread Jimmie Houchin
I am exploring Django and Rails. I am familiar with Python but not so much Ruby. I have no experience with RDBMS outside of starting the Practical SQL book. How much SQL and RDBMS do I have to know, understand, have mastered, to start out with Django, to fully develop a website with Django to ma

Re: Reloading django when running on fcgi ?

2005-09-07 Thread James Bennett
On 9/7/05, Swaroop C H <[EMAIL PROTECTED]> wrote: > I've been playing with django + fcgi + textdrive. If I make changes > to the code, how do I get this to be automatically picked up, short > of doing `pkill lighttpd` and restarting it? I'm not really certain myself, being relatively new to light

Reloading django when running on fcgi ?

2005-09-07 Thread Swaroop C H
Hi, I've been playing with django + fcgi + textdrive. If I make changes to the code, how do I get this to be automatically picked up, short of doing `pkill lighttpd` and restarting it? Thanks! Swaroop C H www.swaroopch.info

Re: Multiple Sites under One Database

2005-09-07 Thread Jacob Kaplan-Moss
On Sep 7, 2005, at 12:40 PM, [EMAIL PROTECTED] wrote: Ok, and this means everything will be completely shared. Will the "site" part of the flatfiles function as I would guess? Exactly. Add a site object (has to be done manually in the DB right now) and then set the site for the flat page.

Re: Multiple Sites under One Database

2005-09-07 Thread [EMAIL PROTECTED]
Ok, and this means everything will be completely shared. Will the "site" part of the flatfiles function as I would guess? Thanks! A.

How to generate fieldsets from a ForeignKey ?

2005-09-07 Thread Sebastien Fievet
Hi all, I'm developping an application, which model is the following : - from django.core import meta # Create your models here. class Device(meta.Model): name = meta.CharField(maxlength=55, db_index=True, core=True) fall_back = meta.For

Use of ForeignKeys in generic view template

2005-09-07 Thread Rachel Willmer
I've seen various references in the documentation to being able to use a generic view to add an object which contains a ForeignKey field, and automagically generate the appropriate SELECT html. Is this possible? If so, could some kind soul point me to an example of how to do it? Thanks Rachel

Re: ForeignKey and delete in cascade

2005-09-07 Thread asrenzo
I agree with referential integrity but sometimes this way of deleting records can mess datas also. A simple example : Class Team(meta.Model): Class Family(meta.Model): Class Person(meta.Model): family = meta.ForeignKey(Family, null = False) team = meta.ForeignKey(Team

Why this view does NOT work

2005-09-07 Thread PythonistL
From http://www.djangoproject.com/documentation/forms/ I copied an example and only little changed it for my model. My model is like this ## class Registration(meta.Model): Login= meta.CharField( maxlength=50,unique=True) Password= meta.CharField( maxlength=50)

Re: Manytomany and an attribute

2005-09-07 Thread rapto
You need an explicit intermediary table: http://www.djangoproject.com/documentation/models/m2m_intermediary/

Need help in structuring db for my app

2005-09-07 Thread paolo
Hi, finally I'm able to provide a precise description of what I'd like to realize with Django. Considering that I'm moving my first steps in the relational world and considering the complexity of the project, I would be glad to receive some help to figure how to structure the database. I know tha