Re: Tag library not found

2005-10-22 Thread Dan Lipsitt
> Try this from the Python interactive interpreter: > > >>> from django.contrib.admin.templatetags import log > > If that raises an exception, it might give you some useful information. It imported fine. > Also, do you have "django.contrib.admin" in your INSTALLED_APPS? Yes, I do. I don't think

Re: Tag library not found

2005-10-22 Thread Adrian Holovaty
On 10/22/05, Dan Lipsitt <[EMAIL PROTECTED]> wrote: > TemplateSyntaxError: 'log' is not a valid tag library > [...] > I just upgraded to rev 992. I deleted the old egg first, and I also > tried removing the .pyc files as Adrian described (there were no > .pyos). Try this from the Python interacti

Re: Apps and 'subapps', or how closely to couple parts of a site

2005-10-22 Thread Adrian Holovaty
On 10/22/05, Jeffrey E. Forcier <[EMAIL PROTECTED]> wrote: > So, I'm curious what the rest of you would do in this situation. Is it > better to keep things 'logically' organized, at the possible expense of > ease-of-coding (e.g. the ability to use generic views) and possible > overcrowding of temp

Re: Tag library not found

2005-10-22 Thread Dan Lipsitt
Thanks Jeremy, yes I did. I'm early on in my development process, so I just deleted my db and recreated my project directory, only copying over my models dir. So almost everything should be fresh. Plus this happens right after I submit my user name and password in the admin, which makes me think

Re: Tag library not found

2005-10-22 Thread Jeremy Dunck
On 10/22/05, Dan Lipsitt <[EMAIL PROTECTED]> wrote: > > I am getting an error similar to Tom's after I login to admin: > > = > File > "/usr/lib/python2.4/site-packages/django-1.0.0-py2.4.egg/django/core/template/defaulttags.py", > line 627, in do_load > raise TemplateSyntaxError,

Re: Tag library not found

2005-10-22 Thread Dan Lipsitt
I am getting an error similar to Tom's after I login to admin: = File "/usr/lib/python2.4/site-packages/django-1.0.0-py2.4.egg/django/core/template/defaulttags.py", line 627, in do_load raise TemplateSyntaxError, "'%s' is not a valid tag library" % taglib TemplateSyntaxError: '

template meta data

2005-10-22 Thread Alice
I'm making a breadcrumbed menu for project, which is pretty simple todo with template inheritance, but I don't like the idea of encoding the actual template name and url into the page - is any template meta data accessible, like URL, template name, template size, etc? I figure this would be in the

Apps and 'subapps', or how closely to couple parts of a site

2005-10-22 Thread Jeffrey E. Forcier
Greets all, I'm writing a Django site with various separate planned Django apps; the first one which I recently completed is a contacts management app. It consists mostly of a single Contact object, which has about four or five ForeignKey fields. Some are self-referential and some are to other pl

Re: Error in DateFormat

2005-10-22 Thread [EMAIL PROTECTED]
But I install django_website on Windows, It Show link ok, but Page not found click any link (Home, weblog, download,.) page not found. How configure it on Windows? my install into and c:\python24\django\django_website I init my project on my db success .but

Re: approaches to deployment

2005-10-22 Thread Brett Parker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill de hÓra <[EMAIL PROTECTED]> wrote: > > Brett Parker wrote: > > Bill de hÓra <[EMAIL PROTECTED]> wrote: > > > >>>How are you guys managing Django deployments? I'm tending towards upload > >>>to server and reset the symlink (a bit more if the DB

Forward references in models

2005-10-22 Thread Jeremy Dunck
How do others deal with circular refences in their models? I am building an app with models based on the existing mediawiki schema. In that schema, for the purpose of this question, there are 3 tables: page, revision, and text. page is the whole page represented over time. revision is a single

Re: approaches to deployment

2005-10-22 Thread Adrian Holovaty
On 10/22/05, Bill de hÓra <[EMAIL PROTECTED]> wrote: > How are you guys managing Django deployments? I'm tending towards upload > to server and reset the symlink (a bit more if the DB is changed between > releases), and was wondering how other folks are doing this. The deployment strategy at Wor

Re: templates for newbies

2005-10-22 Thread Adrian Holovaty
On 10/22/05, stava <[EMAIL PROTECTED]> wrote: > Do you have a similar trick for the object list view? Sure! To view the automatically-generated template for the object list view, find the line "t = loader.get_template_from_string(''.join(raw_template))" (line 492) in django/contrib/admin/views/ma

Re: approaches to deployment

2005-10-22 Thread Bill de hÓra
Brett Parker wrote: > Bill de hÓra <[EMAIL PROTECTED]> wrote: > >>>How are you guys managing Django deployments? I'm tending towards upload >>>to server and reset the symlink (a bit more if the DB is changed between >>> releases), and was wondering how other folks are doing this. > > > I'm just

Re: approaches to deployment

2005-10-22 Thread Brett Parker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill de hÓra <[EMAIL PROTECTED]> wrote: > > How are you guys managing Django deployments? I'm tending towards upload > to server and reset the symlink (a bit more if the DB is changed between > releases), and was wondering how other folks are doing

approaches to deployment

2005-10-22 Thread Bill de hÓra
How are you guys managing Django deployments? I'm tending towards upload to server and reset the symlink (a bit more if the DB is changed between releases), and was wondering how other folks are doing this. cheers Bill

Re: templates for newbies

2005-10-22 Thread stava
Adrian, thanks for your reply. Yes, I'm really interested, mostly because I'm a newbie and want to learn, but secondly, I feel that the admin interface is user friendly, with the type of colors and messages, and overall handling that gives an intuitive interface, and I really would like to get th

Re: templates for newbies

2005-10-22 Thread Adrian Holovaty
On 10/22/05, stava <[EMAIL PROTECTED]> wrote: > 1) is there any way that the admin templates could be > extracted/visualized somehow from the admin interface, like "import > django...; for t in templates: print template" or something to that > effect? > > 2) Or, are the new-admin templates ready t

Re: Change URL on Django Admin Site

2005-10-22 Thread Flavio Curella
It works! really simple, thanks! :)

templates for newbies

2005-10-22 Thread stava
Hi all, I've started to play around with django just a few weeks ago. I'm a newbie at python and, of course, django, but I have some experience with database systems, especially RDBMSs. It seems to me that django (together with python) represents the solution to what they tried to do with the 4GL