Re: Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-09 Thread Tree Chip Net
let suppose I have 2 models: *class String(models.model):* *string = models.textarea(null = True, blank = True)* *user = models.ForeignKey(user, on_delete=models.CASCADE)* *def __str__(self):* *return self.string* and *class Song_Words_Count(models.model):* *song = models

Re: Design decision

2009-10-16 Thread Chip Grandits
a, inspectdb, and various sql*) and that will help clarify a solution path. -Chip On Oct 16, 10:10 am, Léon Dignòn wrote: > I have a project. Within that project I have the app callerlist. > Callerlist is a list of either inbound or outbound phone calls. To > each phone call the following in

Re: Template code runs in both branches of an if statement

2009-10-16 Thread Chip Grandits
ne docs on lazy querysets e.g. http://docs.djangoproject.com/en/dev/topics/db/queries/#querysets-are-lazy I became a big fan of laziness when I learned Haskell last year. IMHO laziness is usually a good design consideration. Of course this advice might not really apply to your problem - it's just a sugges

Should (or can) you have many to many relationship with abstract base class

2009-10-16 Thread Chip Grandits
I am fairly new to Django. I have a strong background in object oriented design, but only a shallow familiarity with relational database design. I am trying to develop my models and I have a sort of general philosophical question about what the ORM is capable of, and how it should be used. So l

Help w/ installing admin on 1.0.2 on MAC OS 10.4

2009-03-02 Thread Chip
ideas on how to fix? many thnx... chip AttributeError at /admin/ 'AdminSite' object has no attribute 'urls' Request Method: GET Request URL:http://127.0.0.1:8000/admin/ Exception Type: AttributeError Exception Value: 'AdminSite' object has no attribute 'urls