Thank you, it's just what I wanted, but do I have to write a new
template (admin/model_name/etc...) ?
Or can I define this directly in my model (onchange actions...) ?
I have the django Book (definitive guide to django) but I can't find
this.
On 4 mai, 02:26, Diego Ucha <[EMAIL PROTECTED]> wro
Hello,
I'm trying to manipulate the rendering for RadioSelect so that the
form element shows up within my form differently than a . So far
I've come across two options... Use straight form tags in my view, or
to rework RadioFieldRenderer and RadioInput from widgets.py locally so
that I can have a
HAI FRIENDS!!!
http://www.freedompeoples.blogspot.com
--~--~-~--~~~---~--~~
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 unsubscri
I display a list of types with a number for each type.
{% for type in types %}
{{ type.count }} {{ type.type }}{{ type.count|pluralize }}
{% endfor %}
I can't use the alternate pluralize suffix because I don't know the
actual word to be pluralized.
Will I have to test each word and apply the p
Thank you very very much - DOTALL worked.
I should be happy, and I am very happy, but just one more little
thing
Is there an elegant way to somehow subclass something, or override
something , or sprinkle some magic dust somewhere to get the code in
my directory, so that svn refreshes of dja
Hi
If you are using a 64bit arch, there is a bug with a write function.
You can find the reported bug and a patch here:
http://sourceforge.jp/tracker/?atid=9591&group_id=2585&func=browse
Kind Regards, Sebastian.-
On 3 mayo, 08:30, Lorenzo <[EMAIL PROTECTED]> wrote:
> Hi,
> I need to link a fl
You *might* be able to make it work by adding the re.DOT_ALL flag to
this re:
http://code.djangoproject.com/browser/django/trunk/django/template/__init__.py#L90
I haven't tested it, I don't know if it works, I don't even know if it
makes sense.
On May 4, 10:51 pm, gregf <[EMAIL PROTECTED]> wrote
Thanks for the reply.
I'm working on a system that, for lack of a better term, is "pull
based', where the designer can mix content however he/she sees fit.
In this type of a system, the developer does not assume what will be
on a page. The designer can decide to, on a single page, pull out a
li
On Sun, May 4, 2008 at 9:21 PM, Steven Armstrong <[EMAIL PROTECTED]> wrote:
>
> Hi Chris
>
> or, if you want it more specific:
>
> (r'^(?P\w+)/(?P\d{4}-\d{2}-\d{2})/$', 'myview'),
>
>
> Personally I'd go with the last example in this case.
>
That one worked perfectly. I had a brain cramp about t
Maybe are wanting to populate that field automatically and you are
looking for a custom save() method? This would do the trick:
...
def save(self):
self.first_name = self.user.first_name
super(Student, self).save()
You will also want to add blank=True or editable=False to the
CharField arg
On Mon, May 5, 2008 at 9:38 AM, gregf <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I would like to be able to have custom template tags span across
> multiple lines. The following example shows why this would be
> desirable for tags with lots of options:
...
> I've googled and searched the forum, b
On Mon, May 5, 2008 at 1:16 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> > Is it? Maybe. I don't know if anyone has proposed smartening-up Django's
> > pluralization rules in the past
>
> I had a look through the mailing-list archive and couldn't spot
> anything directly related.
Th
I am creating an event calendar, and would like to display the date of
the event.
Some events take place on only one day, while some take place over
multiple days.
I would like only one date to display for single day events, and for
multiday events, I would like to display both the start date of
On May 4, 5:42 am, "Guillaume Lederrey" <[EMAIL PROTECTED]>
wrote:
> I havent done any functional programming in a long time , but ... isnt
> there a way to use an anonymous function (if that's what it is called)
> and do the wrapper "inline" ? Something like :
Yeah, something like that would wor
Hi,
I would like to be able to have custom template tags span across
multiple lines. The following example shows why this would be
desirable for tags with lots of options:
{% get_entries as entries
days_old ="30"
limit="15"
categories="4,5,9,5"
author='djones'
get_comments='f
\w don't match '-', so use [\w-]+ instead.
but this regx is not accurate.
have a look at this
http://code.djangoproject.com/browser/djangoproject.com/django_website/apps/blog/urls.py
On 5/5/08, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
> I've been trying to do something that I *think* should b
Chris Hartjes wrote on 05/05/08 02:53:
> I've been trying to do something that I *think* should be simple,
> but apparently is not. Or, the more likely answer is that I am missing
> something pretty obvious. I spent some time googling around for the answer
> but didn't find what I was looking fo
I think you are assuming too much here. The verbose name and verbose
name plurals are default pulled from a class name that might not
necessarily make sense to my editors in the admin. I need to have some
control to how it is actually displayed to the end user; no program is
going to be ab
I've been trying to do something that I *think* should be simple,
but apparently is not. Or, the more likely answer is that I am missing
something pretty obvious. I spent some time googling around for the answer
but didn't find what I was looking for. So here goes.
I'm building a web service to
Hi folks.
I'm having this annoying problem that I don't have the skill to solve.
I'm using James Bennetts django-contact-form (r46 from svn) and I'm
subclassing the AkismetContactForm class that's included. I have the
latest revision of akismet.py too. My django version is trunk, r6626,
which is
user.firstname
user.lastname
??
Is that what you are looking for?
mike
chiefmoamba wrote:
> Hi,
>
> I am having a problem getting data from the user model in to my model
> (below). I can get the usernames easy enough using "user =
> models.ForeignKey(User)", but how then do I get the first_n
Google has to do something about these spam issues! Or we should band
together to write a mailing list App in Django that filters out spam!
On Sat, May 3, 2008 at 8:20 AM, Etienne Robillard <
[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Fri, 2 May 2008 11:4
Hi,
I am having a problem getting data from the user model in to my model
(below). I can get the usernames easy enough using "user =
models.ForeignKey(User)", but how then do I get the first_name &
last_name in to my model from the user model?
Any ideas appreciated,
Thanks,
Ed
class Student
On Sun, May 4, 2008 at 2:47 PM, Greg <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I'm trying to use ModelForm to create a form based on one of my
> models. However, I'm getting the following error:
>
> ///
> AttributeError at /plush/theone/
> 'ModelFormOptions' object has no attribute 'many_to_many'
>
I thought I'd mention that my temporary brute force solution is to
simulate the Form rendering behaviour. I pass filtered querysets
containing tapeFormats and dataFormats (Tape and Data being the two
Mediums) form the view into the render_to_response. I then just use
{% for %} loops to iterate o
Creating the following very simple model :
class Interactable(models.Model):
pass
class News(Interactable):
title = models.CharField(max_length = 50)
excerpt = models.CharField(max_length = 100)
text = models.TextField()
And then synchronizing the database reveals that 2 unique indexes
Hello,
I'm trying to use ModelForm to create a form based on one of my
models. However, I'm getting the following error:
///
AttributeError at /plush/theone/
'ModelFormOptions' object has no attribute 'many_to_many'
///
Below is my code:
///
Views.py File
def theone(request):
a = TestForm
is there a dict returning version of
cursor.cursor.fetchall() ?
--~--~-~--~~~---~--~~
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 f
> Is it? Maybe. I don't know if anyone has proposed smartening-up Django's
> pluralization rules in the past
I had a look through the mailing-list archive and couldn't spot
anything directly related.
> (I'm not even sure if you are proposing it
> here?).
I pretty much am proposing it here. I
Question,
I work in a company that is adopting the agile method, scrum. They
are
doing implementing it using c#, which I think is funny. How does a
company decide to switch its development language? We have very long
development cycle's, and I would have thought they would have looked
at the lan
You may recognize my name from that forum topic.
I've been working for over a week to get PostGIS installed correctly
for my hosting at WebFaction. The support team is very responsive and
helpful and we have worked through a lot of issues. That said, it
still doesn't work correctly.
This is defi
> Anyone have experience/opinions on hosting GeoDjango with PostGIS on
> WebFaction or Slicehost (or any other of the DjangoFriendly hosts)?
> I'm wondering if WebFaction shared account allows you enough freedom
> to install all the geodjango dependencies...
While I don't personally use WebFactio
> Thanks. To be sure, when I do the python manage.py syncdb, that
> doesn't alter my existing database does it? What is syncdb doing in
> this case?
It is typically worth the effort to search the docs:
http://www.djangoproject.com/documentation/django-admin/#syncdb
Particularly, read the high
On May 4, 12:22 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Sat, May 3, 2008 at 11:55 PM, jmDesktop <[EMAIL PROTECTED]> wrote:
>
> > If all I want to do is display a row(s) from a legacy database, one
> > that I did not create with Django and syncdb, will Django do that? Do
> > I have to
I don't know about specifically GeoDjango dependencies, but the
Webfaction guys have been very responsive to my requests for
additional Python module installations.
Richard
On May 4, 12:20 pm, Tyler Erickson <[EMAIL PROTECTED]> wrote:
> Anyone have experience/opinions on hosting GeoDjango with Po
On Sat, May 3, 2008 at 11:05 PM, derek.hoy <[EMAIL PROTECTED]> wrote:
> - if you register models to basic-admin, they won't show automatically
> in advanced-admin and vice-versa
Looks like you can register a model with more than one AdminSite.
Derek
--~--~-~--~~~--
2008/5/2 Nathaniel Whiteinge <[EMAIL PROTECTED]>:
>
> On May 1, 10:04 am, "Guillaume Lederrey"
>
> <[EMAIL PROTECTED]> wrote:
> > This of course doesnt work because the request isnt in the scope. I
> > could redefine a view in my views.py and do the work on the request
> > manually, but i have
I read that doc many times :)
Missed that little detail every time though.
Thanks for the help!
--~--~-~--~~~---~--~~
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@g
Anyone have experience/opinions on hosting GeoDjango with PostGIS on
WebFaction or Slicehost (or any other of the DjangoFriendly hosts)?
I'm wondering if WebFaction shared account allows you enough freedom
to install all the geodjango dependencies...
--~--~-~--~~~---~-
On Sun, May 4, 2008 at 3:29 AM, bobhaugen <[EMAIL PROTECTED]> wrote:
> Does that mean newforms-admin includes qs-ref? That is, newforms-
> admin includes all of the most current svn trunk?
The ideal way to find out this sort of information is to watch the
development timeline:
http://code.dja
I have a form, on that form is a ModelChoiceField named MediumFormat.
It points to a MediumFormat table in my database which acts as an
entity relationship between a Medium table and a Format table.
I need to display a single radio button collection, that is, it is
being driven by a single Form f
On May 4, 2:49 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> As a slight addendum to what James said, it will be implemented in the
> newforms-admin branch, and will be available in trunk after the
> merge(you can of course use the newforms-admin branch if you need
> this).
Does that mean
As a slight addendum to what James said, it will be implemented in the
newforms-admin branch, and will be available in trunk after the
merge(you can of course use the newforms-admin branch if you need
this).
On May 4, 2:41 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Sun, May 4, 2008 at 12
On Sun, May 4, 2008 at 12:58 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> if you add an "A" object then edit it and hit save it duplicates
> itself. Does anyone else have this trouble with model inheritance?
The admin does not currently support model inheritance. This is a
known and docum
44 matches
Mail list logo