Parsing and saving a model

2007-03-12 Thread Nathan Harmston
Hi, I have a database which stores relationships between two objects. i.e a is linked to b by c. model Friend(models.Model): name = models.CharField age = models.IntgerField model Link(models.Model): how = models.CharField links = models.ManyToManyField As in friends are linked to

Integrating web services with django

2007-03-13 Thread Nathan Harmston
Hi, I was wondering if anyone had added a web services client to django. Ie when a user makes a request, it is processed by django and then a web service is invoked and the results send back. Has anyone developed any frameworks or apps which do this? How can I deal with invocations/jobs which take

Problem importing models in custom data import scripts

2007-03-20 Thread Nathan Harmston
Hi Guys and Gals, I am currently trying to import a large amount of data held in flatfiles into a database so that it can be displayed through Django. I am using the most recent development version of Django. I found that a new method called get_or_create, however I cant seem to get it to work as

Re: Integrating web services with django

2007-03-21 Thread Nathan Harmston
When I say Web Services, I am including SOAP aswell as REST. So my django project actually becomes a portal to various web services hosted by external entities. So is the best way to do it, to have a job model which holds the various job data and have a process running which runs the web service an

Nested Sets for trees - any models been made before?

2007-03-27 Thread Nathan Harmston
HI, Currently I am trying to store a "tree" in a database and want to use Nested Sets in order to do this. I was wondering if this exists within Django atm or if there are plans to add it in the future or has someone developed it on the side? If the answer to these questions is "NO", is there a re

Shopping cart application for django

2007-05-16 Thread Nathan Harmston
Hi, I m currently building an e-commerce site and I was wondering if there are any shopping cart apps out there for django that I can have a look at and work through. I am trying to build one that can integrate with paypal but any ideas would be cool. So far I am thinking of storing the whole sh

Constraints to a model

2007-05-16 Thread Nathan Harmston
Hi, I have a model Post, which has the following structure: class Post(models.Model): body = models.TextField() arts = models.ForeignKey(Article, blank=True, null=True) pics = models.ForeignKey(Gallery, blank=True, null=True) A post can be made from an article or a gallery or both.

Re: Constraints to a model

2007-05-17 Thread Nathan Harmston
Is it easy to then enforce this in admin, so if an attempt is made to save a post with no article or gallery then the admin page stages whoops and does the highlighting of fields like it would do normally? Many Thanks Nathan On 16/05/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > The simp

Re: Problems starting out with Django

2006-11-27 Thread Nathan Harmston
Hi, I ve just begun playing with Django, primarily because I like Python and was looking for a quick web development kit ( bah to Ruby and Rails ). However I cant figure something out. If I have 2 tables A and B. A B -- --

Question about models

2007-01-13 Thread Nathan Harmston
Hi, I ve decided to try to use django in a project of mine to display some results. I have an idea of how I m going to implement the database but not how this translate to a django data model. I am trying to use a database to store a graph of Nodes to Nodes with Edges. However there are multiple e