Re: domains vs sub-domains

2009-11-09 Thread Craig McClanahan
On Mon, Nov 9, 2009 at 9:38 PM, Chris wrote: > > I've recently been in discussion about which is better to have. > > http://media.example.com OR > http://example.com/media/ > > 1) The first method, I've been told, allows you to make more requests. > IE for example can only make like 4 requests at

Re: How to define a "has-a" relationship in dJango models

2009-09-16 Thread Craig McClanahan
t represent the DB. > same thing, different philosophies. I'm not much into "my XXX is bigger/stronger/better than your XXX" games, but it is worth noting that Java based ORM frameworks (including JPA and Hibernate) definitely understand what a one-to-one versus a many-to-one rela

Re: How to define a "has-a" relationship in dJango models

2009-09-16 Thread Craig McClanahan
On Wed, Sep 16, 2009 at 7:15 AM, PlanetUnknown wrote: > > For example - User HAS "Contacts"; User HAS "Preferences" > Usually (I'm from an Oracle/Java background) the Contacts table would > have a "user-id" foreign key. > However Django models refer Foreign Key relations as "Many-to-one", > but t

Re: Is it secure "enough" to put login info in the session?

2009-09-08 Thread Craig McClanahan
On Tue, Sep 8, 2009 at 10:20 PM, ristretto.rb wrote: > > Hi > > I want to have a guest concept.  You get instant access to my app. > There are limits.  But, you will be allowed to come back multiple > times before I require you to register. How do you plan to tell if the guest "came back"? The o

Re: Many-to-many column admin interface

2009-08-28 Thread Craig McClanahan
On Thu, Aug 27, 2009 at 10:00 AM, Sven Richter wrote: > I found this thread: > http://stackoverflow.com/questions/660260/django-admin-form-for-many-to-many-relationship > on Stackoverflow, but when i try the suggested TabularInline thing i get the > error: > > has no ForeignKey to 'politlog.entr