Re: adding page

2006-02-20 Thread kmh
Mary Adel wrote: > I have anither questions on the flatepage > Does the flat page need any configuration for the url.py file or no > cause i made a faltepage but it didn't appear in the browser so i really > don't know the steps to make it appear in the browser If you've added: django.contrib.fl

Re: Dreamhost, Django and MySQL server connection

2006-02-15 Thread kmh
Eugene Lazutkin wrote: > kmh wrote: > > Edgars Jekabsons wrote: > >> OK, posted a patch agaist trunk (revision 2307) > >> http://code.djangoproject.com/attachment/ticket/463/mysql_rev2307.diff > >> > >> -- > >> Edgars > > >

Re: Dreamhost, Django and MySQL server connection

2006-02-14 Thread kmh
Edgars Jekabsons wrote: > OK, posted a patch agaist trunk (revision 2307) > http://code.djangoproject.com/attachment/ticket/463/mysql_rev2307.diff > > -- > Edgars Hey thanks Edgars, I'll run it for a while and post encouragement to the ticket if I have no problems. Kieran

Re: Dreamhost, Django and MySQL server connection

2006-02-14 Thread kmh
Edgars Jekabsons wrote: > Hi Kieran, > > I posted a working patch against Django release 0.91 on the same ticket > http://code.djangoproject.com/ticket/463 Thanks Edgars, Unfortunately your patch can't get committed as-is either because it is against 0.91 and there have been a few changes since

Re: Dreamhost, Django and MySQL server connection

2006-02-14 Thread kmh
Eugene Lazutkin wrote: > foot wrote: > > We've got our django project hosted over at Site5 and we have a similar > > MySQL problem: A (2006, MySQL server has gone away) error, whenever the > [snip] > > It would be great to get this fixed tho... > > It was fixed 5 months ago but didn't make it to t

Re: ifequal

2005-12-14 Thread kmh
Milton Waddams wrote: > Can someone tell me why this doesn't work? > > {% ifequal forloop.counter0 1 %} > > there are enough loops and the output of {{forloop.counter0}} does > print 1 at the appropriate place? > > By work I mean it is never equal, I've tried putting the 1 in quotes > with no diff

Re: Can two templates' names in "templates" directory under different apps be same ?

2005-12-13 Thread kmh
ashutux wrote: > I find it a bit unconventional though.. Why have a separate apps_name > ("apps1" for example) directory under template directory of the same > app, since those templates are anyways going to be used by the only > app? > Has this convention appeared just because the way django code

Re: Can two templates' names in "templates" directory under different apps be same ?

2005-12-13 Thread kmh
ashutux wrote: > I tried creating two apps under 1 project. > ... > Now,I tried calling a template named "login.html" from second apps' > view (second in the sense it was written at second position in > "INSTALLED_APPS" ) but since "login.html" was also present under > templates directory of first

Re: ID of the record

2005-12-08 Thread kmh
PythonistL wrote: > Thank you Kieran and Rob for your reply. The reason why I want to know > id of the record is that I would like to name a picture by the id > number( for example the picture will be 4330.jpg if the record id is > 4330) And then the picture is linked with the record data.I wou

Re: ID of the record

2005-12-07 Thread kmh
Could you explain why you want the id of the record at that point? The record doesn't actually exist at that point, so it doesn't have an id. The id is generated when manipulator.save is called. At that point you have a copy of the object so you can just do new_place.id to get the id. Kieran

Re: Exception Location: C:\soft\django_src\django\templatetags\adminmedia.py

2005-11-29 Thread kmh
Hi Olivier, Django is undergoing some rapid changes before the 1.0 release and some of the files are being relocated in the source tree. Unfortunately the byte-compiled .pyc files are not managed by subversion and can get left hanging about in places they aren't meant to be, but where Python wil

Re: ANN: new-admin branch merged to trunk

2005-11-25 Thread kmh
Ok, so the wiki at djangoproject.com is far more obvious at least than the wiki at dangoproject.com. Kieran

Re: ANN: new-admin branch merged to trunk

2005-11-25 Thread kmh
Excellent work. Just wanted to say a big thanks to Adrian, Hugo, Jakob, Robert, Simon, Wilson and co. for all the awesome contributions you guys are putting in to Django. When do you sleep? Adrian in particular I would like to thank for your "agile" documentation. I think that documentation is

Re: Do's and Dont's for Application Writers

2005-10-20 Thread kmh
>On 10/20/05, kmh <[EMAIL PROTECTED]> wrote: >> Shouldn't we encourage a model where site templates are able to >> explicitly "include" application templates, rather than the other way >> around? >On 10/20/05, Sune Kirkeby <[EMAIL PROTECTED]>

Re: Do's and Dont's for Application Writers

2005-10-20 Thread kmh
Hi Sune, Thanks for getting this thread going. Your outline is pretty close to the way I've been doing things too. Seeing it in writing got me wondering though if the whole idea of application templates "extending" the base site is wrong-headed. Because the application knows nothing about the s

Re: Backwards-incompatible admin change -- making the admin app simpler

2005-10-19 Thread kmh
On 10/20/05, Sune Kirkeby <[EMAIL PROTECTED]> wrote: > > On 10/19/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > I like Sune's idea of enforcing it "culturally" instead > > of physically. > > Maybe we should have a short "Do's and Dont's for distributable > application writers" document? If t

Re: Template guide -> administration feature.

2005-10-04 Thread kmh
On 10/5/05, JKR <[EMAIL PROTECTED]> wrote: > > i'm able to see tags, filter and models. but nothing under view? is > this normal when I'm using generic view. View info only shows up if you have added the setting: ADMIN_FOR = ['myproject.settings.main'] which lists the settings files for the sit

Re: Referencing MEDIA_URL from templates

2005-10-04 Thread kmh
Some examples of use (mis-use?) cases for making settings accessible to templates: 1. To avoid hard coding media url domains in your templates when you're moving between different test and production server setups. 2. To use, for example, the ADMIN_EMAIL setting in a generic error template that

Re: Referencing MEDIA_URL from templates

2005-10-04 Thread kmh
I either do something like this: --- class SettingsNode(Node): def render(self, context): from django.conf import settings context['settings'] = settings return '' def do_put_settings(parser, token): """ Put the site settings into the context as 'settings'. Usa

Re: how to use flat pages ?

2005-09-20 Thread kmh
Try adding the following to your MIDDLEWARE_CLASSES setting: 'django.middleware.common.CommonMiddleware', This middleware tries to find a flatpage for any 404. Alternatively add this catch-all url pattern at the end of your url patterns sequence: (r'', include('django.conf.urls.flatfiles')),