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 = models.PointField(srid='3004')
> obje
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(),
> }
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 o
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
>
> Everything works f
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 get
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 new email address to ano
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 OneToOn
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 exits,
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 ther
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 wrote:
> On 20 Ja
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)
>if ft.count()==1:
>
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 declared:
> def items(sel
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 'my_s
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 to
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
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 <
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin.extra
>.
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 = models.Fo
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 v
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 i
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 specif
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 account_project is an appropr
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 opt
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 work
around.
Building U
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 em
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 if:
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
availabl
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-users+unsubscr...@
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 majo
28 matches
Mail list logo