Re: Best IDE for Django and python?

2008-11-26 Thread Andre Meyer
On Wed, Nov 26, 2008 at 4:20 PM, Steve Phillips <[EMAIL PROTECTED]> wrote: > I personally use Komodo Edit along with IDLE. Also instead of using > "manage.py shell" I use IDLE. I am so spoiled by the autocompletions. I am also using Komodo IDE and like it a lot. You may also want to check out

documentation offline, which CSS?

2008-07-15 Thread Andre Meyer
hi all like other people, i tried to get an offline copy of the django docs. so, running rst2html from docutils works fine, but there is a problem with the links (directing to the site instead of the local docs) and it looks a lot less appealing. when using the original CSS from the site it looks

Re: documentation offline, which CSS?

2008-07-15 Thread Andre Meyer
hi David that looks nice, thanks. hope you can make it work again. thanks André On Tue, Jul 15, 2008 at 6:59 PM, David Larlet <[EMAIL PROTECTED]> wrote: > > > Le 15 juil. 08 à 11:58, Andre Meyer a écrit : > > > hi all > > > > like other people, i tried

how to access foreignkey field (related_name) in newforms-admin list view?

2008-07-17 Thread Andre Meyer
hi all imagine you have a first model class and a second model class with a ForeignKey referring to the first one. for example, a Post model (taken from the tutorial blog app) and a Comment model. of course, a post can have multiple comments, so the Post model gets an attribute 'comments' (specifi

Re: how to access foreignkey field (related_name) in newforms-admin list view?

2008-07-17 Thread Andre Meyer
for %} or {{ post.comments.all|length }} looks inconsistent to me. thanks & cheers André On Thu, Jul 17, 2008 at 4:14 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > > > On Jul 17, 8:32 am, "Andre Meyer" <[EMAIL PROTECTED]> wrote: > > hi all > > > > im

Re: how to access foreignkey field (related_name) in newforms-admin list view?

2008-07-17 Thread Andre Meyer
hi Rajesh On Thu, Jul 17, 2008 at 6:55 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > Hi, > > > still, it's not exactly clear to me why the admin does not work the same > as > > other templates. > > The Admin is not a template. So, I don't know what you mean by that. admin is not using templa

Re: how to access foreignkey field (related_name) in newforms-admin list view?

2008-07-18 Thread Andre Meyer
hi Rajesh so, implemented it as you told and it works very well. thanks for your patience and all the explanations. cheers André On Thu, Jul 17, 2008 at 7:22 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > > > > > still, it's not exactly clear to me why the admin does not work the > same > >

Re: Model Inheritance in new-forms admin

2008-07-18 Thread Andre Meyer
hi i had (and still have) the same problem . really hope this gets fixed (be)for(e) 1.0; patches seem to be available, so it can't be long... ;-)

filter on a method

2008-07-20 Thread Andre Meyer
hi all it does not seem to be possible to filter on the return value of a model's method, or is it? are there alternative ways to achieve this? my situation is as follows: there is a model with several child models (via model inheritance). i want to retrieve in a single query set all instances (f

propagation of modification in children to parents

2008-07-20 Thread Andre Meyer
hi all i have a model with a modifed field modified = models.DateTimeField(auto_now=True) and a parent field parent = models.ForeignKey('self', related_name='children', null=True, blank=True) in order to allow for creating a tree of items. what is the best way to propagate a modification in a

Re: How to have both newforms-admin and previous version on the same machine?

2008-07-20 Thread Andre Meyer
hi all newforms-admin has been merged, so you can go back to trunk. anyway, maybe you can do the same as i do: put a django.pth file in site-packages which includes all the paths to the branches you want to use. just uncomment the one you want to use at a given moment. you can add more paths to t

Re: filter on a method

2008-07-20 Thread Andre Meyer
hi Malcolm thanks a lot for your explanations. i am much more fluent with Python than SQL, anyway ;-) do you happen to have a good link for a merge-sort-style technique at hand? btw: wrt. merging query sets, i tried this ModelA.objects.filter(parent=None) | ModelB.objects.filter(item=None) bu

Re: propagation of modification in children to parents

2008-07-20 Thread Andre Meyer
t; > ModelA(models.Model): >modified = models.DateTimeField() > parent = models.ForeignKey('self', related_name='children', > null=True, > blank=True) > > def save(def): >self.modified = datetime.now() > if self.parent: >

Re: propagation of modification in children to parents

2008-07-21 Thread Andre Meyer
add_now>still being worked on? class Foo(models.Model): created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True) thanks André On Mon, Jul 21, 2008 at 8:18 AM, Andre Meyer <[EMAIL PROTECTED]> wrote: > hi Julien > > that makes per

Re: propagation of modification in children to parents

2008-07-21 Thread Andre Meyer
n < [EMAIL PROTECTED]> wrote: > > On Jul 21, 7:52 pm, "Andre Meyer" <[EMAIL PROTECTED]> wrote: > > hi again > > > > so, auto_now is deprecated and can be replaced by overriding the > > save()method. but what about > > auto_now_add? > >

ticket #6755 closed: Model Inheritance doesn't work in the admin.

2008-07-22 Thread Andre Meyer
hi all wow, ticket #6755 is closed! so, just tried it out and got an error, oh my dear! is it me or is there still a problem? here is the code (simplified) *model.py* class Item(models.Model): pass class Note(models.Model): text = models.Te

Re: Which IDE do you choose with django?

2008-10-13 Thread Andre Meyer
you might also want to take a look at the django-komodo-kit: http://code.google.com/p/django-komodo-kit/ cheers apm On Sun, Oct 12, 2008 at 11:13 PM, Anders Bergh <[EMAIL PROTECTED]> wrote: > > On Sun, Oct 12, 2008 at 6:19 PM, zjffdu <[EMAIL PROTECTED]> wrote: > > > > I am a newbie of django, a

serving static content on Windows

2008-04-16 Thread Andre Meyer
hi all i am new to Django and trying to figure out a few things. so far, everything looks very nice. but now, i am stuck at something very simple: i cannot manage to serve static content (images, css, dojo, ...) from Django itself. i have done what is described at http://www.djangoproject.com/doc

custom form on admin interface page

2008-04-18 Thread Andre Meyer
hi all so, here is my plan: i want to add a simple form on one of the admin pages. this should allow the admin to import data (read a file, parse and fill the database). the problem is now that it is unclear to me where to add this form. which admin template to use? how to figure out whether the

Fwd: custom form on admin interface page

2008-04-21 Thread Andre Meyer
Hi Kevin Thanks a lot for this. It does indeed work in this way which is MUCH better than my ifequal solution. btw I am using the 0.96.1 release. Does that still use old_forms? Have not yet looked into old/newforms... thanks and cheers André On Sat, Apr 19, 2008 at 1:02 PM, Kevin Monceaux <[E

Re: Changing admin index

2008-04-22 Thread Andre Meyer
try this: http://www.djangoproject.com/documentation/tutorial02/#customize-the-admin-index-page http://www.djangobook.com/en/1.0/chapter17/ cheers André On Tue, Apr 22, 2008 at 8:48 PM, Matthias Kestenholz <[EMAIL PROTECTED]> wrote: > > Hi, > > On Tue, 2008-04-22 at 11:37 -0700, dimrub wrote: >

Re: Suggestions on UI (client side web) framework to complement Django

2008-04-29 Thread Andre Meyer
On Tue, Apr 29, 2008 at 9:00 PM, Szaijan <[EMAIL PROTECTED]> wrote: > > In searching for a JS toolkit for my first JS app, I found YUI and > Dojo to be of equal power and utility, but YUI is MUCH better > documented. bad documentation for Dojo is a myth - nowadays. Dojo 1.1 is well documented an

Re: where can i download newformsadmin

2008-05-14 Thread Andre Meyer
hi all there was a post a year ago saying that newforms-admin would be merged to the trunk "soon" (or the 1.0 release, respectively). obviously, this did not happen, yet. any idea when this might be done? does the newforms-admin branch inc

Re: Django and Linux distros

2008-05-16 Thread Andre Meyer
hi Jon ubuntu certainly works like a charm and you may want to use eclipse with pydev, just like on windows. i use it on both platforms (even on the same machine using a shared partition). cheers André On Fri, May 16, 2008 at 12:24 PM, JonSidnell <[EMAIL PROTECTED]> wrote: > > Hi everyone > >

This field is required. NO!

2008-05-16 Thread Andre Meyer
hi all now, this is driving me crazy. this problem persists even after switching from 0.96.1 to the newforms-admin branch. after declaring a model class with an attribute that may be null (pn) the admin site still tells me to fill in that field, because "This field is required.", but it isn't. i

Re: This field is required. NO!

2008-05-16 Thread Andre Meyer
pn = models.CharField('Publication number', max_length=20, null=True) > > > That will fix you :-) > Ben > > > Andre Meyer wrote: > > hi all > > > > now, this is driving me crazy. this problem persists even after > > switching from 0.96.1 to the newforms-ad

Re: Does anyone use Eric to edit templates

2008-05-25 Thread Andre Meyer
On Sun, May 25, 2008 at 12:13 PM, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 25-May-08, at 10:37 AM, Gene Campbell wrote: > > > If there's something better than > > Eric for templates, can you recommend? > Komodo Edit (or IDE) http://www.activestate.com/Products/komodo_ide/komodo_edit

model inheritance and admin (qs-rf & nf-a)

2008-05-28 Thread Andre Meyer
hi all working with the newforms-admin branch i tried to build a model using model inheritance: e.g. Task is a subclass of Item, fine. but in the admin interface (this is probably true for old and newforms versions) there is something funny happening. when trying to add a Task instance there is a

Re: model inheritance and admin (qs-rf & nf-a)

2008-05-28 Thread Andre Meyer
hi Karen thanks a lot, will check out the patch On Wed, May 28, 2008 at 2:15 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Wed, May 28, 2008 at 7:27 AM, Andre Meyer <[EMAIL PROTECTED]> > wrote: > >> hi all >> >> working with the newforms-admin branch

Re: click download, click install, go! no....

2008-06-02 Thread Andre Meyer
hi all i had the same experience the first time i wanted to try out django. the need to set up apache and mysql before you can even do anything is quite troublesome for first-time users. but this is absolutely not necessary. you can go strated almost instantly with the built-in server and sqlite.

serving root from static

2008-06-05 Thread Andre Meyer
hi all is it possible to serve static files from the root of a domain name? these files would either be served by apache or runserver from the static directory as defined in the settings. my goal is to use some static files for the main entrance to a web site and have several django apps, all wit

"more than 1 ForeignKey" error in newforms-admin

2008-06-09 Thread Andre Meyer
hi all just a quick question to be sure: is it on purpose that newforms-admin does not allow more than one ForeignKey? or is it a not yet supported feature? i have a model with a class that has a foreign key and a subclass that has another. this works well for creating the database, but the admi

Re: "more than 1 ForeignKey" error in newforms-admin

2008-06-09 Thread Andre Meyer
On Mon, Jun 9, 2008 at 9:21 PM, James Bennett <[EMAIL PROTECTED]> wrote: > > On Mon, Jun 9, 2008 at 2:08 PM, Andre Meyer <[EMAIL PROTECTED]> > wrote: > > i have a model with a class that has a foreign key and a subclass that > has > > another. this works wel

Re: serving root from static

2008-06-09 Thread Andre Meyer
= patterns('myproject.views', (r'^$', 'home') views.py def home(request): return render_to_response('static/index.html') maybe use something like return HttpResponse('/static/index.html') but how? On Thu, Jun 5, 2008 at 6:07 PM, J

raise AlreadyRegistered

2008-06-09 Thread Andre Meyer
hi all i was trying to write a little script to populate my database with test data after i have rebuilt it due to model changes. it seems to work (set the path and imports appropriately), but i get this infamous django.contrib.admin.sites.AlreadyRegistered error when running the script. is there

Re: raise AlreadyRegistered

2008-06-09 Thread Andre Meyer
On Tue, Jun 10, 2008 at 12:32 AM, Andre Meyer <[EMAIL PROTECTED]> wrote: > hi all > > i was trying to write a little script to populate my database with test > data after i have rebuilt it due to model changes. it seems to work (set the > path and imports appropriately), bu

Re: serving root from static

2008-06-09 Thread Andre Meyer
tml file from the static directory. thanks again André On Tue, Jun 10, 2008 at 1:34 AM, Colin Bean <[EMAIL PROTECTED]> wrote: > > On Mon, Jun 9, 2008 at 3:25 PM, Andre Meyer <[EMAIL PROTECTED]> > wrote: > > thanks Jeff > > > > yes, i had found this method of

Re: serving root from static

2008-06-11 Thread Andre Meyer
oh yes, this is it! great stuff! thanks a lot André On Wed, Jun 11, 2008 at 9:46 AM, Daniel Hepper <[EMAIL PROTECTED]> wrote: > > > (r'^$', 'django.views.static.serve', {'document_root': > '/path/to/static','path':'index.html'}), > --~--~-~--~~~---~--~~ You recei

Re: Django HTML Editor

2008-06-14 Thread Andre Meyer
Hi You might wanna take a look at Komodo Edit.It supports Django templates. It's not WYSIWYG, though. cheers André On Sat, Jun 14, 2008 at 8:36 AM, Ngu Soon Hui <[EMAIL PROTECTED]> wrote: > > Forgot to mention, it would be defin

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-22 Thread Andre Meyer
me too: django is the best in design, features, documentation and community just awesome! --~--~-~--~~~---~--~~ 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@googl

Re: Do you code django with Komodo?

2008-06-24 Thread Andre Meyer
hi i am using Komodo IDE 4.4 (out today) and like it a lot (switched from eclipse/pydev). Komodo works very well and has a lot of very nice features. the syntax checking of Python and DTL are very nice, just like the autocomplete and code browser. of course, editors and IDEs are a very personal c

Re: Do you code django with Komodo?

2008-06-25 Thread Andre Meyer
On Wed, Jun 25, 2008 at 9:21 AM, Ben Ford <[EMAIL PROTECTED]> wrote: > > BTW: would anybody be interested in contributing to a Komodo-Django >> extension with shortcuts to manage.py etc., modeling wizards and so on? > > > Hell yeah, is it relatively straightforward or very involved? I know python

Re: Do you code django with Komodo?

2008-06-25 Thread Andre Meyer
On Wed, Jun 25, 2008 at 9:55 AM, ristretto. rb <[EMAIL PROTECTED]> wrote: > Has anyone used Komodo and Wing and can recommend one over the other? > Or are they about the same in general? i have indeed used them both and chosen Komodo IDE. used Komodo Edit, too, but prefer the added features of t

Re: Do you code django with Komodo?

2008-06-25 Thread Andre Meyer
this might be of interest: http://community.activestate.com/forum-topic/django-lexer-incomplete?destination=node%2F2497 cheers André On Wed, Jun 25, 2008 at 11:54 AM, Alaa Salman <[EMAIL PROTECTED]> wrote: > > On Jun 25, 11:23 am, "Andre Meyer" <[EMAIL PROTECTED]&g

ForeignKey adds no backwards relations

2008-07-06 Thread Andre Meyer
hi all so, i am trying to add notes to tasks in this simple model (using newforms-admin 7844): class SimpleItem(models.Model): title = models.CharField(max_length=512) class SimpleTask(SimpleItem): done = models.BooleanField() due = models.DateTimeField(null=True, blank=True) class

Re: ForeignKey adds no backwards relations

2008-07-06 Thread Andre Meyer
wrong? thanks André On Sun, Jul 6, 2008 at 1:36 PM, Andre Meyer <[EMAIL PROTECTED]> wrote: > hi all > > so, i am trying to add notes to tasks in this simple model (using > newforms-admin 7844): > > class SimpleItem(models.Model): > title = models.CharFiel

Re: ForeignKey adds no backwards relations

2008-07-06 Thread Andre Meyer
oh yes, that makes sense! moved t.save() to just after its intialisation for better overview. thanks a lot, Malcolm On Sun, Jul 6, 2008 at 2:01 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Sun, 2008-07-06 at 13:36 +0200, Andre Meyer wrote: > [...] >

determining model subclass

2008-07-07 Thread Andre Meyer
hi all is it possible to determine the subclass of a model instance? what i mean is this: if you have a (n abstract) model class and two subclasses, like class Item(models.Model): pass class Task(Item): pass class Event(Item): pass and you retrieve items = Item.objects.all() how

Re: determining model subclass

2008-07-12 Thread Andre Meyer
ut according to the docs it should work.... You > should also fill in the correct exception. I just don't know what it > is. > > Hope it helps. > > Dave. > > > > > > > On Jul 8, 2:12 am, "Andre Meyer" <[EMAIL PROTECTED]> wrote: > > h