Re: display related objects in admin

2006-08-20 Thread Bryan Murdock
On 8/20/06, SmileyChris <[EMAIL PROTECTED]> wrote: > > >From documentation: > > If the string given is a method of the model, Django will HTML-escape > the output by default. If you'd rather not escape the output of the > method, give the method an allow_tags attribute whose value is True.

Re: display related objects in admin

2006-08-20 Thread SmileyChris
>From documentation: If the string given is a method of the model, Django will HTML-escape the output by default. If you'd rather not escape the output of the method, give the method an allow_tags attribute whose value is True. --~--~-~--~~~---~--~~ You received

Re: display related objects in admin

2006-08-20 Thread Bryan Murdock
On 8/20/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 8/20/06, Bryan Murdock <[EMAIL PROTECTED]> wrote: > > I'd like the admin display of Committees to display the committee > > members. I tried adding 'members.all()' to the Admin list_display, > > but that didn't work. I can sort of do

Re: i18n: Translating include names

2006-08-20 Thread Kenneth Gonsalves
On 20-Aug-06, at 1:22 PM, [EMAIL PROTECTED] wrote: > I tried this, but neither > {% include {% trans "welcome.html" %} %} > nor > {% include "{% blocktrans %}welcome.html{% endblocktrans %}" %} > appear to work (make-messages doesn't even seem to find these > translation strings). > > What

Examples of customizng the admin interface

2006-08-20 Thread Chris Moffitt
Does anyone have any example apps where they have customized the admin interface? Here's what I'm trying to do. Right now my admin index page has a bunch of models on it. I would like to break the page into 3 or 4 pages with a subset of models on each one (plus additional information). I

Re: django db models in other app

2006-08-20 Thread Joshua Tacoma
Some configuration variables (like USE_I18N) must be defined. Defaults are set in django.conf.global_settings, which is the default first argument to settings.configure(). Following **keyword arguments are added to the resulting settings object. > settings.configure(mysettings) Could instead

Re: Re: Django Models, DRY, Scalability

2006-08-20 Thread James Bennett
On 8/20/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > There's a Google Summer of Code project going on at the moment to > support model evolution throughout a project's development. I haven't > played with it, but I've heard it's coming along. Actually, we've got a new tune: there's a *finished*

Re: Editting both sides of self-referential m2m relationship

2006-08-20 Thread Russell Keith-Magee
On 8/21/06, James Punteney <[EMAIL PROTECTED]> wrote: class Animal(models.Model):  name = models.CharField(maxlength=200)  prey = models.ManyToManyField("self", related_name="predator",symmetrical=False, filter_interface=models.HORIZONTAL) And it works as expected except I can only edit the "prey"

django db models in other app

2006-08-20 Thread [EMAIL PROTECTED]
Hello Django users, I'm a newby in using django and running in to some trouble. I created a django app with multiple models. What i want to do is to make an application outside the created django app that can also use the models. so actually what i want to do is just import the model.py into a

Re: Linking to admin interface

2006-08-20 Thread argus
In a (somewhat) related vein: is there anyway to make ForeignKey objects links to their objects when they are one of the list_display columns for the related object? I don't think I said that real well, so here's an example of what I'm after. IOW, given: class Poll(models.Model): question =

Editting both sides of self-referential m2m relationship

2006-08-20 Thread James Punteney
I have an animal class that with a predator and prey relationship to itself. Each animal can have many other animals that are their predator and many other animals that are their prey. The appropriate part of the model is below. class Animal(models.Model): name =

Re: display related objects in admin

2006-08-20 Thread gabor
Adrian Holovaty wrote: > On 8/20/06, Bryan Murdock <[EMAIL PROTECTED]> wrote: >> I'd like the admin display of Committees to display the committee >> members. I tried adding 'members.all()' to the Admin list_display, >> but that didn't work. I can sort of do it if I add this function to >> the

Need help on a simple model

2006-08-20 Thread Alia Khouri
Hi folks, For fun and as a way to test out and learn the idiosyncracies of the various web frameworks out there in python land I've been writing a dvd / dvd player rental web application. Now, I started it in Turbogears and used SQLObject to build the initial (incomplete) model. I then decided

Re: Django Blog software

2006-08-20 Thread Paulo
I think Wordpress would be a decent model to look at. Askimet is great, trackback/pingback support is nice, but while WP is fairly easy to install it is starting to get bloated. The Ajaxy admin area is ok but make sure ajax is being used to improve the UI not "make it look cool". Less is more,

Re: display related objects in admin

2006-08-20 Thread Adrian Holovaty
On 8/20/06, Bryan Murdock <[EMAIL PROTECTED]> wrote: > I'd like the admin display of Committees to display the committee > members. I tried adding 'members.all()' to the Admin list_display, > but that didn't work. I can sort of do it if I add this function to > the Committee class: > > def

Re: Re: Django Blog software

2006-08-20 Thread Jon Atkinson
> That brings to mind the need for a Django-forge-like place where apps > could get uploaded, categorized, and rated; Plone and Joomla have this, > for instance. But that's another thread... > One worth starting, IMHO :-) --Jon --~--~-~--~~~---~--~~ You

Re: Django Models, DRY, Scalability

2006-08-20 Thread Todd O'Bryan
On Sun, 2006-08-20 at 09:43 -0700, bayerj wrote: > As soon as I change my database schema, I have several possibilites to > get my app up again: > (a) Change the model. Then drop the current db schema, fire up the new > one. Drawback: I lose my data. > (b) Change the model and change the schema

Re: Django Blog software

2006-08-20 Thread Shev
Matthias Urlichs wrote: > I mean, yeah, a quick and dirty blog is child's play with Django, *but* > then you want a sensible CSS structure for it, and a cached RSS feed, > and trackback (both directions please) and pingback (ditto) and > "old-style" comments, and you got to spam-protect these

Re: javascript options

2006-08-20 Thread Enrico
Has anyone used jQuery? http://jquery.com/ Looks very promising. It doesn't have lots of advanced widgets but seems easy to use and very powerful. Supports xpath and css 3 selectors. I'm planning to start using it myself. Regards. Enrico --~--~-~--~~~---~--~~

Re: Django Models, DRY, Scalability

2006-08-20 Thread Maciej Bliziński
On Sun, 2006-08-20 at 09:43 -0700, bayerj wrote: > (b) Change the model and change the schema manually. Drawback: I am > repeating myself. Personally, I prefer this method. Yes, I am repeating myself, but I'm still saving time by not re-importing or re-entering the data. At first I didn't like

display related objects in admin

2006-08-20 Thread Bryan Murdock
I have some simple models: class Committee( models.Model ): name = models.CharField( maxlength=200 ) leader = models.ForeignKey( "Person", null=True, related_name="leader_of", blank=True) notes = models.TextField( blank=True ) def __str__( self ):

Re: Django Models, DRY, Scalability

2006-08-20 Thread Antonio Cavedoni
Hi Justin, On 20 Aug 2006, at 18:43, bayerj wrote: > As soon as I change my database schema, I have several possibilites > to get my app up again: > (a) Change the model. Then drop the current db schema, fire up the > new one. Drawback: I lose my data. > (b) Change the model and change the

Django Models, DRY, Scalability

2006-08-20 Thread bayerj
Hello django users, A few weeks ago I started developing an eLearning-application and chose Django as a framework. There are several reasons that made me use django, although I checked out Turbogears, Cherrypy and webpy. (By the way: What made me use django was the admin interface) Important:

install on godaddy shared hosting

2006-08-20 Thread peks
greetings, a month ago i visited django site and i was amazed - great framework, just what i was looking for - and the best thing is, it runs on python ;) ok, to my question: i purchased a shared hosting on godaddy and i would like to install django. they do not offer ssh access so my question

i18n: Translating default model values

2006-08-20 Thread [EMAIL PROTECTED]
Another question regarding internationalization: How can I internationalize the default model SQL files? I have a model "Forum" and an SQL file with defaults, forum.sql, which initializes a number of forums. I would like to initialize these with English strings in an English installation

how to add content of the page's textarea in django ?

2006-08-20 Thread rock
how to upload a picture ,then add the url link of the picture to the page's textarea content. Some bbs can do this . But how can I do like this in django, any advice would be appreciated --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Upload images to rich-editor in admin interface

2006-08-20 Thread Scater
Nathan R. Yergler wrote: > I was working on this yesterday and have a working Django application > that supports most of the API. I'll be working on finishing it up > today, and will release it tomorrow or Tuesday, depending on when I get > things cleaned up. Anyway, that may make FCKeditor a

Re: real-world Django examples

2006-08-20 Thread Baurzhan Ismagulov
On Sun, Aug 20, 2006 at 12:04:48AM +0200, Baurzhan Ismagulov wrote: > I would be very grateful if anyone could point me to some published > sources, or share the sources with me. Wow, so many open-source web sites. Thanks much! With kind regards, Baurzhan.

Re: libraries for common tasks, tinymce, mochikit

2006-08-20 Thread Nathan R. Yergler
> > I'm personally also a java programmer :) and I like such prefixes :), but I > had truely the problem on installation all off those libs (I do it on linux > with rpm-packages) that in the libs-folder an empty __init__.py clashs with > the __init__.py from the other packages. So I will

Re: Making a wiki - code suggestions welcomed

2006-08-20 Thread limodou
On 8/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I've resigned from the two column diff as wikis have rather plain text > with long lines, and the column model wasn't to clear in those cases. > Trac wiki uses the same approach and it look very nice - you don't need > to see all

Re: Making a wiki - code suggestions welcomed

2006-08-20 Thread [EMAIL PROTECTED]
I've resigned from the two column diff as wikis have rather plain text with long lines, and the column model wasn't to clear in those cases. Trac wiki uses the same approach and it look very nice - you don't need to see all diferences, you want to see what have changed to the current entry since

Re: Upload images to rich-editor in admin interface

2006-08-20 Thread Nathan R. Yergler
FCKeditor has an XML API that can be implemented on the server side to support the upload/browse functionality for images, etc. (see http://fckeditor.wikiwikiweb.de/Developer's_Guide/Participating/Server_Side_Integration#Browser). I was working on this yesterday and have a working Django

Re: Making a wiki - code suggestions welcomed

2006-08-20 Thread limodou
On 8/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > diffs now look like this: > http://www.fotosik.pl/showFullSize.php?id=81d75597dcb3acd1 > Look good. But have you seen the moinmoin wiki system? The diff shows two columns. Maybe it's more intuitionistic. -- I like python! My Blog:

Re: Re: Interacting with models from the CLI

2006-08-20 Thread Jon Atkinson
Thank you both. I had it working (though it was far from elegant), so that other thread will be very helpful. --Jon On 19/08/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > > See: > http://groups.google.com/group/django-users/browse_thread/thread/51827a2a40e5262e > > Bryan :) > > > > On 8/19/06,

looking for some company or individual who developing computer software to cooperate!

2006-08-20 Thread pkpkk
Our company lies in China,and want to proxy product (eg. compture software). If you have any software or controls, please give a website of your company. http://www.sharesharp.com/ thanks advance! --~--~-~--~~~---~--~~ You received this message because you are

Re: libraries for common tasks, tinymce, mochikit

2006-08-20 Thread Malcolm Tredinnick
On Sun, 2006-08-20 at 10:02 +0200, [EMAIL PROTECTED] wrote: > Hi Malcolm, > [...] > The name of the package should be self speaking for me, e.g. the rpm-package > name must nearly unique to other rpms, the package name in python code should > not prefixed with 'django' and the name relation

Re: libraries for common tasks, tinymce, mochikit

2006-08-20 Thread dummy
Hi Malcolm, Malcolm Tredinnick schrieb: > Hi Dirk, > > > > A couple of thoughts from just reading over your description: if it's > possible to package these without the libs/ prefix, that would provide > the person using them with more flexibility over where these things get > installed. It

i18n: Translating include names

2006-08-20 Thread [EMAIL PROTECTED]
Hi. I'm just in the process of translating my project and have hit a stumbling block. I use several includes for longer text which I don't want to have cluttering up my template. Can I translate the parameter to an {% include %} template tag? I have a file welcome.html, which includes a lot of

Upload images to rich-editor in admin interface

2006-08-20 Thread Scater
I have simple model: class Entry(models.Model): ... body = models.TextField() ... And i use rich-editor like TinyMCE or FCKEditor etc in admin-interface. for edit a field "body" I need functionality of uploading images for user's computer to this editor directly. I understand that decision