Hi Ned, Thanks for the response. I have found so far that I can create a simple "model" that has no fields and this seems to be alright during runtime, I don't need to set up a database. But, to run the tests at all, I have to set up a database. Thankfully, I can define "sqlite3" with an arbitrary database name and it will be alright.
I guess what I'm looking for is a recipe for how this should be done in Django. Like I said in an earlier reply, doing this in Rails is simple. I can have a model that, for all intents and purposes, is identical to a model backed by a database, but in actuality it is a resource accessed via HTTP. For instance, I have a Rails RESTful web service that wraps a revision control system. The usefulness of this is that there are plugins that leverage the model API to perform tasks like pagination and searching. If I just write a "Ruby class", I will not have these features. So, if I am to do the same thing with Django, it would be good to know if I'm on the right track or not. So far I'm making it work, but it's probably poorly done. n On Dec 13, 2007 3:55 AM, Ned Batchelder <[EMAIL PROTECTED]> wrote: > You should explain more about what you are trying to do, and where the > difficulties are. Ticket #419 is about abstract base classes for > table-based models. It sounds like you want a model class that has > nothing to do with tables ever. If the latter is the case, then simply > create a Python class and do whatever you want with it. > > For example, you can write a view function that pulls data from wherever > you want (an RSS feed, a file on disk, a random number generator), then > formats it as HTML and returns it to the browser. There's no need for a > database to be involved. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---