Re: search results from a Django model method including the results from earlier calls to the same method (x post StackOverflow)

2019-10-28 Thread yolabingo
Solved on SO, but an extremely educational response. I learned about mutable default argument gotcha https://stackoverflow.com/questions/1132941/least-astonishment-and-the-mutable-default-argument And Django Modified Preorder Tree Traversal https://github.com/django-mptt/django-mptt -- You

search results from a Django model method including the results from earlier calls to the same method (x post StackOverflow)

2019-10-28 Thread yolabingo
I also posted this to SO https://stackoverflow.com/questions/58600159/search-results-from-a-django-model-method-including-the-results-from-earlier-cal hope that's ok, let me know if not. I have a Django Model that tracks email message IDs as the message passes through different servers. It has

Re: best way to define a many-to-one relationship using FreeRadius' existing DB schema

2011-04-01 Thread yolabingo
Solved - you do it like this: class WifiUser(models.Model): username = models.CharField( max_length=64, unique=True) --snip-- class RadiusAccounting(models.Model): radacctid = models.BigIntegerField(primary_key=True, editable=False) username = models.CharField(max_length=192)

best way to define a many-to-one relationship using FreeRadius' existing DB schema

2011-03-31 Thread yolabingo
Thanks in advance for any insight or suggestions. I have a simple web interface for a freeradius mysql database. It uses the Django admin interface exclusively, and makes it simple to manage Radius usernames, passwords, preferences etc, which we use for authentication on WiFi hotspots. My

Re: django frontend to openmesh radius

2011-03-11 Thread yolabingo
I think proxies are the solution. I am struggling to wrap my head 'round this concept, but I believe this will be helpful: http://lincolnloop.com/blog/2010/dec/16/using-proxy-models-customize-django-admin/ -- You received this message because you are subscribed to the Google Groups "Django

django frontend to openmesh radius

2011-03-11 Thread yolabingo
I put a simple Django site (using only admin so far) in front of a MySQL DB used as a backend by a freeradius server. For each radius user, I need to update the 'radcheck' table, which contains one or more attributes for each user. +---+-- | Field| Type

Re: Integrating Django with Amazon's Database

2011-02-21 Thread yolabingo
On Feb 20, 9:16 pm, ravi krishna wrote: > Can we use SimpleDB like sqlite or mysql with Django? Not at this time. > What are the process involved in doing it ? Check out this project under development: http://www.allbuttonspressed.com/projects/django-nonrel -- You