Yes, Lorenzo, that's what I'm looking for.
Doing it for my own forms is quite easy. But, as you noted, I want that
for a contrib.admin based form (specifically, the change_form which is
the one that handles most new/edit tasks in the Admin framework).
If I had access to the manipulator, I'd
Hi allI'm trying to use the value of a foreignkey as an input to the "upload_to" path of an image field (note I'm using ImageWithThumbnailField and it works properly when upload_to='Images/'). But i can't seem to form a proper string to enter. The images load into folders with names such as: When
Does anyone know how much trouble I'll get myself into if I try to use
Norwegian characters in urlpatterns, e.g. I'd like to map the url
foo/blåbærsyltetøy.
I've noticed that if you type that into your browser's address bar each
browser does its own thing, Firefox url-encodes it using a
On 11/8/06, benj <[EMAIL PROTECTED]> wrote:
> Does anyone have experience translating django models into RDF graphs?
> My ideal views would look something like this:
Off the top of my head I don't know of anyone who's done this, but it
would certainly be a useful thing to have available. Maybe
Hi folks,
After using django for a number of more conventional projects, I'm
toying around with trying to use it to drive a XUL application. Using
django's template system to generate XUL views is easy enough, as is
passing serialized objects around with AJAX. However, most of XUL's
widgets use
I have a class with a "site" field that uses choices
I want to display the human readable name for it when being used as a
grouper
i thought something like
site.get_grouper_display or get_site.grouper_display
but that doesn't work
here is the template code
{% regroup
It might be the problem of a tuple with only one item:
so instead of this:
words.get_list(order_by=('Word'))
use this:
words.get_list(order_by=('Word',))
It's interpreting ('Word') as ('W', 'o', 'r','d') ergo "unknown column
W.."
--~--~-~--~~~---~--~~
You
I'm wanting to add support for a sort of template language in the
database content for our content providers.
We came up with this as a good syntax:
{% link URL as NAME [with KEY=VALUE [KEY=VALUE] [...]] %}
[ and ] aren't required, I'm just indicating the optional elements.
Our idea is we'd
On 08-Nov-06, at 5:22 PM, fdb wrote:
> Note again that it's perfectly fine to add objects in another language
> than the default that don't have translations in the default language.
> One restriction: you cannot translate a page that doesn't have a
> default language version.
i took a look at
Because many hosting providers does not allow shell access, I decided
to create web version of syncdb. I made this simple function, and
looks like it works
def db_sync(request):
from django.core import management
management.syncdb()
return HttpResponse("Db sync in progress.")
Is it
Try parent__isnull=True.
http://www.djangoproject.com/documentation/db_api/
--~--~-~--~~~---~--~~
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
I dont know what get_list is but this should get you all words in
order:
words = Word.objects.order_by('Word')
http://www.djangoproject.com/documentation/db_api/#order-by-fields
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
[EMAIL PROTECTED] wrote:
> I'm still not exactly sure what you're trying to do, but if you should
> be able to add fields to the form object you cloned pretty easily with
> appendChild.
>
>
>
I tried that and it works great. Thanks for the suggestion :-)
I'm still not exactly sure what you're trying to do, but if you should
be able to add fields to the form object you cloned pretty easily with
appendChild.
Dagur Páll Ammendrup wrote:
> [EMAIL PROTECTED] wrote:
> > But here's a question... why are you trying to put this object into a
> > string?
Can you tell us what your apache logs say?
hard to tell what is going on.
In the directory templates do you have your python code?
The way you've got it apache is expecting your settings file to be
/Users/kimvandenbroek/Sites/templates/mysite/settings.py
is that where it is?
Cheers,
Sam
On
On 11/8/06, Waylan Limberg <[EMAIL PROTECTED]> wrote:
> >
> You want to focus on the "Loading Templates" [1] section, more
> specifically, the "Loader Types" [2] sub-section. Add the new loader
> to the "TEMPLATE_LOADERS" setting in your settings.py file. Then
> you'll need to make sure that
Hi Mario,
you probably need something like this:
http://paste.e-scribe.com/2702/
Though i wouldn't know how to apply it to the admin interface if that's
what u want.
Lorenzo
On Nov 8, 4:43 pm, Mario Graziosi <[EMAIL PROTECTED]> wrote:
> Please,
>
> does anybody know how do I access the
Hi Tom,First - the last "nohup pythjon... manage.py runserver" *IS* running your development server. When running in a production setup, you don't want that in there at all.In general the TxtDrive setup has the
django-fcgi.py script running the actual django code, and it talks across a named
On 11/8/06, Gerard Whittey <[EMAIL PROTECTED]> wrote:
>
> I saw the ticket for this Template Loader for PHP files
> http://code.djangoproject.com/ticket/2440
>
> I was wondering if someone could explain how you would integrate this
> into a django project. I read through the docs about templates
Don,
Thank you very much for your help. You are right.
I added a comma and now it works!
L.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
I have this very simple model for a table
...
class Word(meta.Model):
Word=meta.CharField(maxlength=50)
def __repr__(self):
return self.Word
class META:
admin = meta.Admin()
.
Now when I try:
words.get_list(order_by=('Word'))
I will get the
I have this very simple model for a table
...
class Word(meta.Model):
Word=meta.CharField(maxlength=50)
def __repr__(self):
return self.Word
class META:
admin = meta.Admin()
.
Now when I try:
words.get_list(order_by=('Word'))
I will get the
Excuse me Patrick: is this a new question or a reply to my question?
From within the change_form template I need to access the manipulator
to be able to create the form data entry fields. I have no way to pass a
Context from within my urls.conf since the template is instantiated and
handled
On Nov 8, 2006, at 12:13 AM, Pythoni wrote:
>
>
> Now when I try:
> words.get_list(order_by=('Word'))
>
> I will get the error:
> OperationalError: (1054, "Unknown column 'mimi_words.W' in 'order
> clause'")
This is a basic Python error. You have a tuple with only one item, so
you need
Please,
does anybody know how do I access the manipulator from withn the
template of the admin change_form?
Thanks.
--
Mario Graziosi, mailto:[EMAIL PROTECTED]
FG srl (http://www.fgasoftware.com/)
[EMAIL PROTECTED]: The agile PBX (http://www.voiceatwork.eu/)
Tel: 02 9350-4780 interno 101,
But here's a question... why are you trying to put this object into a
string? Seems like you'd be better off just keeping it an object.
Perhaps you'd be better off with a simple
test = document.getElementById('id_embeddedvideo.0.type'); or, if you
needed to do something with it, maybe something
Jay Parlar wrote:
> On 11/8/06, Dagur <[EMAIL PROTECTED]> wrote:
> >
> > Unfortunately that's exactly the filter I tried using when I got that
> >
> > "Caught an exception while rendering: 'FormFieldWrapper' object has no
> > attribute 'replace'"
> >
> > error.
>
> Could you write your own
I saw the ticket for this Template Loader for PHP files
http://code.djangoproject.com/ticket/2440
I was wondering if someone could explain how you would integrate this
into a django project. I read through the docs about templates but it
was beyond me as I am just starting to learn python.
I
I figured it out...
the template needs:
the jsi18n file has the gettext() function
Hope that works for you too.
/JohnH
On 11/8/06, John Hwang <[EMAIL PROTECTED]> wrote:
> I'm trying the exact same thing but the widgets do not seem to
> display. I'd like to display the date/time pickers
Mike,
Yes, there is `Word` in words.get_list(order_by=('Word'))
because Word is a name of the field.
Do you have any other idea where a problem could be?
Thank you
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I'm trying the exact same thing but the widgets do not seem to
display. I'd like to display the date/time pickers but the event
doesn't seem to be triggered.
I'm also getting errors in firebug about gettext() function.
Any help/suggestion would be great.
Thanks,
/John
On 11/1/06, Guillermo
Hello, Frederik,
Your approach has one major problem. If the model has both
translatable and untranslatable content, just like boolean
is_published or foreign key to category, or price (if the object is a
product), then the original and it's translations must duplicate the
untranslatable data
On 11/8/06, Dagur <[EMAIL PROTECTED]> wrote:
>
> Unfortunately that's exactly the filter I tried using when I got that
>
> "Caught an exception while rendering: 'FormFieldWrapper' object has no
> attribute 'replace'"
>
> error.
Could you write your own filter to clean up the output to an
Unfortunately that's exactly the filter I tried using when I got that
"Caught an exception while rendering: 'FormFieldWrapper' object has no
attribute 'replace'"
error.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Am Mittwoch, 8. November 2006 02:06 schrieb Enrico:
> Hi Dirk,
>
> I'm the author of that Wiki page, I've put that code on
> '/util/'.
>
> You could put somewhere else in your python path if you plan to use it
> in more projects.
> But Django doesn't look for custom fields anywhere, you'll have
Hello!
How can check if field is filling in the form using custom
manipuplator? The idia is, if user has permisson to edit article or has
authenticated field 'Publish' is visible in form, if not visible add
article with publish = 0. How to do this? My code is not working...
self.fields
Hi i have a imagefield and if i upload a file i get:
"Data too long for column 'image' at row 1"
How can i increase the column length... maxlength seams not to work?
Cheers
Patrick Lauber
--~--~-~--~~~---~--~~
You received this message because you are
> Hello soundseeker!
> On Mon, 06 Nov 2006 02:20:25 -0800 you wrote:
>
> > def show_categories(request, col, direction):
> > paginate_by = 15
> > paginator =
> > ObjectPaginator(VMergeDocsInfo.objects.all().by_categories(),
> > paginate_by)
>
> Maybe something like this:
Hello,
I need all records of _Category_ that doesn't have _parent_:
In my model:
#
class Category(models.Model):
#... code here
parent = models.ForeignKey('self', blank=True, null=True,
related_name='child_set')
##
all_categorys =
I'd like to show you my approach, which I use for one of my clients.
For every model that needs to have multi-lingual content, you add two
fields: a "language" and a "translation_of" field.
Objects are created in a default language (altough this is not
required). To translate an object, you
Now I know that it is always hard to comment on specifics but I have
just discovered something very strange on my server and could
someone please help...
I am running Django on Textdrive which requires Lightpd. I went
through the setup... and boy that was difficult, so many config
Use either
e = Subgroup.objects.get(subGroupName="p1sub1")
e.save()
m = User(name="xxx", subGroup=e)
m.save()
or
e = Subgroup.objects.get(subGroupName="p1sub1")
e.save()
e.user_set.create(name="xxx")
or
e = Subgroup.objects.get(subGroupName="p1sub1")
I know this maybe very simple, but I can't find the answers on the net,
I'm using following method to create object with ForeignKey, this
however works,
but according to django document you should avoid using "_id" column,
what's the correct way to do this? any idea? (running django 0.95)
=
Hello soundseeker!
On Mon, 06 Nov 2006 02:20:25 -0800 you wrote:
> def show_categories(request, col, direction):
> paginate_by = 15
> paginator =
> ObjectPaginator(VMergeDocsInfo.objects.all().by_categories(),
> paginate_by)
Maybe something like this:
Hello Mark Jarecki!
On Tue, 7 Nov 2006 18:27:26 +1100 you wrote:
> Thanks guys
>
> Ended up that the Python Imaging Library was not correctly
> installed. It all works now!
>
> Cheers
Thanks too from me.
Do you planing to do field type for custom manipulator?
--
Всего наилучшего! Григорий
Hi L,
Could it be that the 'W' in 'Word' in your order_by attribute is in
upper-case?
- Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Sorry for the vague explanation. To make a long story short I'm trying
to put the output of {{ blah }} into a javascript string, but since {{
blah }} prints out multiple lines, it won't work.
--~--~-~--~~~---~--~~
You received this message because you are
So I assume I can, using object_id primary key and Content_Type,
identify all objects? And so, apart from the comments problem, this is
what I should use to associate one object generically to another?
For example I could write an app to attach "photos" (and not comments,
so we don't use the
I'll update PL and EN versions :)
--~--~-~--~~~---~--~~
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
David Abrahams wrote:
> Oh, wow; I may well be doing that all over. Is it possible to
> instruct Python to make that an error rather than silently succeeding
> to do something that I shouldn't do?
I'm not sure but I remember reading that in Python 2.5 it becomes a
Warning...
>> The question
Some time ago, I also wrote a few thoughts about implementation of
multilingual content:
http://groups.google.com/group/django-users/browse_frm/thread/13ae7f762d1d5d5e
Maybe that will help us to make the final decision.
Aidas Bendoraitis [aka Archatas]
On 11/8/06, Gonzalo Saavedra <[EMAIL
I have this very simple model for a table
...
class Word(meta.Model):
Word=meta.CharField(maxlength=50)
def __repr__(self):
return self.Word
class META:
admin = meta.Admin()
.
Now when I try:
words.get_list(order_by=('Word'))
I will get the
52 matches
Mail list logo