Re: Django Deployment Statistics (via djangosites.org)

2011-01-22 Thread Graham Dumpleton
For each category, is there a list to choose from or up to people to enter in right name? Is odd that uWSGI doesn't even get a mention for serving method. Either way, very interesting and will be more interesting to see over time what take up of Tornado and gunicorn is, especially with the

Re: Django Deployment Statistics (via djangosites.org)

2011-01-22 Thread Shawn Milochik
Cool. I just submitted a couple of sites myself. Shawn -- 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

Django Deployment Statistics (via djangosites.org)

2011-01-22 Thread Ross Poulton
Hello fellow Django users, A long time ago I started collecting deployment information from Django users submitting their websites to www.djangosites.org. I promised at the time to make the stats public, and although i've shared them with a few I've never made it public that the stats are

Prepopulation: Calling a field from another class

2011-01-22 Thread Mark Penix
The idea I'm trying to wrap my head around is this... the exercise db has just id, name each "workout" can have an exercise with different sets, reps, etc... the workout_name field I want prepopulated so it gets the exercise name that I choose from the selector then the sets, reps, then time so

how to remove add and change links on admin dashboard

2011-01-22 Thread rahul jain
Hi Guys, how to remove add and change links + icons on admin dashboard ? Thanks. Rahul -- 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

Re: Pinax: worth installing?

2011-01-22 Thread Issac Kelly
On Jan 22, 6:28 pm, Jason wrote: > Are there any gotchas when using the current 'pip' version Pinax using > the account_project in Django 1.2? The only "gotchas" that I've really had on Pinax dev are around social features, namely group url routing. It was easy enough to

Re: Adding a new collapsed form in Flatpages

2011-01-22 Thread TheRedRabbit
Thank you sooo much :) -- 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 django-users+unsubscr...@googlegroups.com. For more

Re: Pinax: worth installing?

2011-01-22 Thread Jason
Are there any gotchas when using the current 'pip' version Pinax using the account_project in Django 1.2? BTW James you're my Django hero. :P On Jan 22, 3:03 pm, James Tauber wrote: > And if your site will have users who need to manage their accounts, chances > are

Re: Pinax: worth installing?

2011-01-22 Thread James Tauber
On Jan 18, 2011, at 9:32 AM, Russell Keith-Magee wrote: > I think we need to clear up some misconceptions here. [...] > Pinax, on the other hand, works at a higher level. Pinax targets a > specific domain -- social web apps Actually, this is a major misconception. Pinax is not targeting a

Re: Pinax: worth installing?

2011-01-22 Thread James Tauber
On Jan 18, 2011, at 8:43 AM, Cal Leeming [Simplicity Media Ltd] wrote: > I would be interested to hear from anyone who has used Pinax in production. Pinax is used for every production site Eldarion develops on its own and most of the sites it develops for clients. Admittedly many of the apps

Re: Pinax: worth installing?

2011-01-22 Thread James Tauber
On Jan 18, 2011, at 8:26 AM, ashdesigner wrote: > Guys, are there any considerable drawbacks of using Pinax for Django? > Is it worth installing, or is it better to launch and develop on > "pure" Django? At its most basic, Pinax is just a standard project layout for Django, taking advantage of

Model design question

2011-01-22 Thread Yarin miran
Hello everyone I just started with django and was wondering how to do the following behaivor in my models: class Game(models.Model) characters_count = models.IntegerField(default=1) #basically i set to a choice of 1-3 class Match(models.Model) video=models.ForeignKey(Game) p1char1 =

Re: Adding a new collapsed form in Flatpages

2011-01-22 Thread creecode
Hello TheRedRabbit, On Jan 22, 12:02 pm, TheRedRabbit wrote: > Instead of one form it displayed 3, is there a way to default it to > display only one > form? Perhaps this will do the trick <

Re: Adding a new collapsed form in Flatpages

2011-01-22 Thread TheRedRabbit
Hi Daniel Thanks for the response. I actually tried that and the only issue I had with stacked inline was it made the admin page look real ugly. Instead of one form it displayed 3, is there a way to default it to display only one form? Thanks again. -- You received this message because you are

Re: Adding a new collapsed form in Flatpages

2011-01-22 Thread Daniel Roseman
On Saturday, January 22, 2011 6:57:46 PM UTC, TheRedRabbit wrote: > > Im getting this error when I run syncdb: > > Error: One or more models did not validate: > flatpages.flatpage: Accessor for m2m field 'sites' clashes with > related m2m field 'Site.flatpage_set'. Add a related_name argument

Re: Adding a new collapsed form in Flatpages

2011-01-22 Thread TheRedRabbit
Im getting this error when I run syncdb: Error: One or more models did not validate: flatpages.flatpage: Accessor for m2m field 'sites' clashes with related m2m field 'Site.flatpage_set'. Add a related_name argument to the definition for 'sites'. my_flatpages.flatpage: Accessor for m2m field

Re: Sitemap generation problem

2011-01-22 Thread urukay
Try something like this: def location(self, obj): return reverse('path.to.your.view.function', args=[category]) and put it into your sitemap.py On 21. Jan, 20:40 h., galago wrote: > I can't find out how to pass corrent location to the sitemap element. > I have

Re: local variable 'qft' referenced before assignment

2011-01-22 Thread Karen Tracey
On Sat, Jan 22, 2011 at 9:43 AM, TAS wrote: > def get_fringe_value(self): >ft = > Fringe.objects.select_related().filter(id__in=self.fringe.all()).values() >if ft.count()==0: >return u'%d'(0) >

Re: Mongo - testing

2011-01-22 Thread Andrew Marder
Thanks Javier and Konrad! I searched github a bit and it looks like django-mongokit has done some work to solve this problem. I haven't used it yet, but it looks promising. Andrew http://www.peterbe.com/plog/how-and-why-to-use-django-mongokit On Jan 21, 3:59 am, Konrad Delong

local variable 'qft' referenced before assignment

2011-01-22 Thread TAS
I am new to programming and struggling slightly with all sorts of things but I'm determined to understand it. I am trying to take the field value(Decimal) associated with Fringe.percentage and pass it to Detail.fringe_total where the fringe id matches self fringe id. I then need to sum it if

Possible bug in model validation

2011-01-22 Thread Miguel Araujo
Hi everyone, I have a model A that has a overwritten save method that updates a model B's field. Both (A & B) have model validation using full_clean method. Problem is that B model's validation fails when updating the field, because it raises an IntegrityError saying the primary key already

weird behavior in select_related

2011-01-22 Thread Miguel Araujo
Hi everyone, I have been working on reducing DB queries in my project with great results. But I have realized that select_related in one of my models doesn't preload all the ForeignKeys and OneToOneFields, it preloads 3 out of 5. Actually the 3 preloaded are ForeignKeys and the other 2 are

Re: How To Create A Button Control That Does Not Submit The Form

2011-01-22 Thread Hervé M .
Hi, you have some "reciever" and some "receiver" spelling in your code? Hervé On 21 jan, 21:50, hank23 wrote: > I have a text field for entering a destination email address. Once the > address is entered I want to click a button on my screen which will > then append the

Re: Adding a new collapsed form in Flatpages

2011-01-22 Thread TheRedRabbit
I found this http://groups.google.com/group/django-users/browse_thread/thread/865e1d3b52f18bb6 It explains that you would have to copy the flatpages module and modify it, instead of modifying the actual flatpage in the django installation. The link does not work so Il post my solution once I

Re: Import problem: app name cannot be the same as project name?

2011-01-22 Thread bruno desthuilliers
On 21 jan, 21:36, Edwin wrote: > I have an app that's called the same way as my project name Won't work. (let's > name it 'blog'). My directory structure is: > > blog >    apps >       blog >           models.py >       books >           management >           models.py

Adding a new collapsed form in Flatpages

2011-01-22 Thread TheRedRabbit
I want to add a new form to the admin interface of the Flatpages app. The only way I can think of doing this is by hacking the actual django flatpages app. What Im trying to add is an optional form that can be filled in from the admin interface of the flatpages app and it will display an advert

Re: ModelForm changing default field for ForeingKey

2011-01-22 Thread Daniel Roseman
On Friday, January 21, 2011 11:58:36 PM UTC, jonas wrote: > > Hello, > > I'm creating a subset of a ModelForm. > > class FavArtistForm(ModelForm): > class Meta: > model = FavArtist > fields = ('artist',) > widgets = { > 'artist': CharField(), > }

Re: GeoDjango admin and data reprojection

2011-01-22 Thread ckar...@googlemail.com
Why you quote your SRID? AFAIK it should be an integer. Post your questing in the GeoDjango mailing list again. On 21 Jan., 13:06, Luca Casagrande wrote: > Hello everybody, > I have simple model defined like this: > class point(models.Model): >     geom =