Re: Nesh Thumbnail - Installation problem

2006-11-06 Thread Nebojsa Djordjevic
* Frankie Robertson wrote, On 06.11.2006 12:59: > On 06/11/06, Gabriel Puliatti <[EMAIL PROTECTED]> wrote: >> On Mon, 2006-11-06 at 10:07 +, Frankie Robertson wrote: >>> I think the "class Foo(models.Meta):" in the example is a probably >>> typo or something. I've used ImageWithThumbnailField

Re: cache anonymous error with request.user ?

2006-08-14 Thread Nebojsa Djordjevic
[EMAIL PROTECTED] wrote: > MIDDLEWARE_CLASSES = ( > 'django.middleware.cache.CacheMiddleware', > 'django.middleware.common.CommonMiddleware', > 'django.contrib.sessions.middleware.SessionMiddleware', > 'django.contrib.auth.middleware.AuthenticationMiddleware', >

RFC: Localization (L10N)

2006-07-24 Thread Nebojsa Djordjevic
sorry for cross post. I just want to bring some attention to this thread http://groups.google.com/group/Django-I18N/browse_thread/thread/f33c087fc57fb2bc/44aecc7ee75f676f#44aecc7ee75f676f We currently have great i18n implementation, but not l10n - yes, we have date-aware template filters/tags

Re: Displaying thumbnails in the admin interface

2006-07-20 Thread Nebojsa Djordjevic
Kenneth Gonsalves wrote: > > On 19-Jul-06, at 9:27 PM, arthur debert wrote: > >> You should also take a look at nesh's excellent >> ImageWIthThumbnailField: >> >> http://djangoutils.python-hosting.com/wiki/Thumbnails > > my one crib is that he has dropped python2.3.5 compatibility, but >

Re: Image auto resizing

2006-07-20 Thread Nebojsa Djordjevic
Enrico wrote: > Hi, > > I got it working in the model by using: > from nesh.thumbnail.field import ImageWithThumbnailField > > But I couldn't apply the filter in the template. What is needed to use > the filters? > > Nesh apps are in the "site-packages/nesh" Python Lib folder. > > The closer

Re: Extending pluralize?

2006-07-18 Thread Nebojsa Djordjevic
Carlos Yoder wrote: > Hello there, > > I'm currently developing my first app on Django, and it happens to be > in Slovenia, land in which the beautiful Slovenian language is spoken. > > In this language, the rules of pluralization go very crazy, as the > following example (for the word for

Re: Image auto resizing

2006-07-15 Thread Nebojsa Djordjevic
Enrico wrote: > Hi, > > I'm trying to resize an image automatically after the upload. Maybe > Django should have this by default, but until there I'll try myself... > > I got it working sucessfully, but I don't know if this is the best way, > the image is processed every time I save the object,

Re: ImageField/FileField in M/R

2006-04-25 Thread Nebojsa Djordjevic
Denis wrote: > If so, then it (the file) shouldn't be deleted when you delete() > the object? Also, M/R branch seems has no methods like > _pre_save/_post_save, > instead you can subclass save/delete methods. There are some references > in db.models.signals, dont know how to use them though You

Trac error on code.djangoproject.com

2006-04-20 Thread Nebojsa Djordjevic
http://code.djangoproject.com/ Oops... Trac detected an internal error: database is locked Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 206, in handler dispatch_request(mpr.path_info, mpr, env) File

Re: TEMPLATE_DIRS relative to project?

2006-04-18 Thread Nebojsa Djordjevic
jrs wrote: > Then I just exclude settings_env.py from the rsync command that posts > the site. I also have my database, base_url, cache and any other > environment specific configuration there. Works like a charm. I would recommend using subversion or another version control system for this,

Re: Ecommerce & Django

2006-04-14 Thread Nebojsa Djordjevic
Chris Moffitt wrote: > There are certain problems with OsCommerce which are going to be > non-issues with a Django site: PHP-style of i18n handling, really a show stopper for me. Django i18n rocks, but we must add l10n stuff also (money/number formatting, currency support, etc). > Is there

Re: Understanding FloatFields

2006-04-14 Thread Nebojsa Djordjevic
DavidA wrote: > Is the convention to just use float() or Decimal() > whenever I need to use it as a number? I'm not sure what is the final decision, but in my first try in implementing validate and to_python methods (in MR) I use Decimal as return type for the FloatField. OTOH, maybe we can

Re: basic extension of users.User

2006-04-11 Thread Nebojsa Djordjevic
Norbert wrote: > raise wrapped > TemplateSyntaxError: Caught an exception while rendering. Try to put TEMPLATE_DEBUG=False in settings.py, maybe that will give you a better error report. -- Nebojša Đorđević - nesh Studio Quattro - Niš - SCG http://studioquattro.biz/

Re: A model which is recursively referring to itself in Magic Removal

2006-04-05 Thread Nebojsa Djordjevic
Rudolph wrote: > parent = models.ForeignKey('Item', blank = True, null = True, > related_name = 'child',) > > When trying to get the childs of an object by issueing > item.child_set.all(), it raises an exception: > 'Item' object has no attribute 'child_set'. Because you used

Re: What is the right order of LocaleMiddleware and CacheMiddleware?

2006-03-31 Thread Nebojsa Djordjevic
Beegee wrote: > I have build a website in three languages and I want to use caching. I > have read the documentation thouroughly. I also read the source code > repository and the django newsgroups. > > I am very confused about the order in which to put all the Middleware > classes. > > Does