Re: Dealing with misc parts of a project

2011-09-23 Thread Tom Evans
On Thu, Sep 22, 2011 at 7:04 PM, Simon Connah wrote: > This is one of the areas that I think Django could do with improving on. You > might not have enough functionality to justify turning it into a complete > application but you still want to keep it clean and tidy somewhere. > Depends on your d

Workflow for a django based facebook canvas app

2011-09-23 Thread Amit Sethi
Well a very common workflow for writing views in django is to do something like this if request.method == 'POST': do some form related stuff else : do some other stuff But for a facebook canvas app all requests are POST , how can I change my workflow such that my app works for both facebook

Log file with errors

2011-09-23 Thread refreegrata
Hello list. I have a question. To my could be really helpful write a "log file" with the errors, to revise at the next day if something happen. For the moment I have this, a middleware class: -- from django.

FieldError on ManyToMany after upgrading to Django 1.3

2011-09-23 Thread Philip
Just been updating to Django 1.3.1 and come across an odd error. I'm getting the following error from some code which works with version 1.2.7. FieldError: Cannot resolve keyword 'email_config_set' into field. Choices are: id, name, site, type The odd thing being email_config_set is a related nam

Re: Can you trigger a forms style error from a view?

2011-09-23 Thread Daniel Roseman
On Thursday, 22 September 2011 21:53:45 UTC+1, John Shaver wrote: > > The only way I could find to do is with 'raise ValidationError'()' in > the clean() function. However, trying to query my User model to see > if that username is already take does not work from the clean() > function. > Why not?

Re: Can you trigger a forms style error from a view?

2011-09-23 Thread Kurtis
Check out http://groups.google.com/group/django-users/browse_thread/thread/40118d7879bbb228# ... I just asked a very similar question recently. On Sep 22, 4:53 pm, John Shaver wrote: > I'm designing a user registration form for my app.  I need to verify > that the username they're using is not a

Handling file uploads in a clustered application server environment

2011-09-23 Thread Kurtis
Hey guys, We have an Nginx front-end with a cluster of Django application servers. What are some methods of handling user uploads in this type of an environment? Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Re: Handling file uploads in a clustered application server environment

2011-09-23 Thread Tom Evans
On Fri, Sep 23, 2011 at 4:24 PM, Kurtis wrote: > Hey guys, > > We have an Nginx front-end with a cluster of Django application > servers. What are some methods of handling user uploads in this type > of an environment? > > Thanks! > Very open ended question... Abstract the data: store uploaded m

Re: Handling file uploads in a clustered application server environment

2011-09-23 Thread Kurtis Mullins
Thanks a lot for the quick response, Tom. I like your idea of using S3 -- or in our case, Rackspace's Cloudfiles. Django-storages was recommended to me in IRC. I think I'm going to try to follow that route as long as I don't have to modify a third party app we're trying to use too heavily. On Fri,

Creating a custom Model Field accessing multiple DB fields

2011-09-23 Thread Tim Chase
Having read through [1] and experimented with it a bit, I've been unable to determine whether my failure is due to a Django limitation or if it's my own fault. My question comes in two parts: 1) Can a custom model-field interface with more than one DB field? The .db_type() method's return-si

nob question

2011-09-23 Thread hawkpaul
Hi, I have a nob question. I want to show data like this: Vegetables: Cucumbers Peas Fruits Tomatoes Bananas My models looks like this: Class Plant_Category (): name - text Class Plant_Name() name - text plant_category – fk how do I go a

Dynamic formset with FilteredSelectMultiple

2011-09-23 Thread Thomas49
Hi ! I have the following models, with a ManyToMany field: class Symptome(TypeMedical): synonyms = models.CharField(u'Synonymes',max_length=160,blank=True) parent = models.ManyToManyField(TypeMedical,related_name='Parent',blank=True) description = models.TextField(u'Description',blank

Creating a WSGI Request for another uWSGI Django App

2011-09-23 Thread Kurtis
Hello, You guys are always so helpful so I thought I'd come here with my crazy problem I'm trying to solve. I have a Django Application Cluster. We use subversion for our code. The only type of a post-commit hook we have is an HTTP Request with JSON at a URL we define. Essentially what I want to

Re: Creating a WSGI Request for another uWSGI Django App

2011-09-23 Thread Roberto De Ioris
> Hello, > > You guys are always so helpful so I thought I'd come here with my > crazy problem I'm trying to solve. > > I have a Django Application Cluster. We use subversion for our code. > The only type of a post-commit hook we have is an HTTP Request with > JSON at a URL we define. Essentially

Re: Dynamic formset with FilteredSelectMultiple

2011-09-23 Thread Thomas49
Sorry I mean: "Moreover, I CANNOT select individually items in the select widgets except in the first one. " On Sep 23, 6:05 pm, Thomas49 wrote: > Hi ! > > I have the following models, with a ManyToMany field: > > class Symptome(TypeMedical): >     synonyms = > models.CharField(u'Synonymes',max_

Re: nob question

2011-09-23 Thread hawkpaul
i got it thanks On Sep 23, 3:59 pm, hawkpaul wrote: > Hi, > > I have a nob question. I want to show data like this: > > Vegetables: >         Cucumbers >         Peas > Fruits >         Tomatoes >         Bananas > > My models looks like this: > > Class Plant_Category (): >         name - text >