Re: authenticate issues with custom backends in 2.1rc1

2018-07-25 Thread Dirk B.
Thanks! That was it! But no, I dont remeber ever seeing a deprecation warning about this. Am Do., 19. Juli 2018 um 23:06 Uhr schrieb Tim Graham : > Do you have deprecation warnings with Django 2.0.x? > https://docs.djangoproject.com/en/dev/howto/upgrade-version/#resolving-deprecation-warnings >

Announcing django-modeltranslation-0.5

2013-02-10 Thread Dirk Eschler
deschler/django-modeltranslation Best Regards, Dirk Eschler -- Dirk Eschler -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegr

Re: How to use an optional ForeignKey to sites.Site and admin's "View on site"?

2012-05-30 Thread Dirk van Oosterbosch, IR labs
py: object_domain = getattr(obj, field.name).domain So, is this a bug? Or did I miss something? Dirk On 30 mei 2012, at 15:24, Derek wrote: > Actually, you can have a nullable ForeignKey (and there can be good > reasons for this). This is mentioned in the docs themselves; see: > h

How to use an optional ForeignKey to sites.Site and admin's "View on site"?

2012-05-29 Thread Dirk van Oosterbosch, IR labs
nttypes/views.py (near line 60), or is there another way to make this work? Thanks, Dirk -- - Dirk van Oosterbosch http://labs.ixopusada.com - -- -- You received this message because you are subscribed to the Google Groups "

Announcing django-modeltranslation-0.3

2011-06-03 Thread Dirk Eschler
jango-modeltranslation/ Best Regards, Dirk Eschler -- Dirk Eschler -- 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@googlegroups.com. To unsubscribe from this group, send email to django

UnicodeDecodeError with makemessages in django-1.3

2011-03-30 Thread Dirk Eschler
;, line 127, in templatize return _trans.templatize(src, origin) File "/path/to//django/utils/translation/trans_real.py", line 450, in templatize content = u''.join(comment) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 284: ord

Wrong datetime format with datepicker in admin

2011-02-28 Thread Dirk Eschler
, 0); If i remember correctly the problem didn't exist in django-1.1 and arised after the upgrade to django-1.2. Is there any other setting or configuration i have missed? Best Regards, Dirk Eschler -- Dirk Eschler -- You received this message because you are subscribed to the G

Re: MySQL behavior about Warning/Exception

2011-01-25 Thread Dirk Eschler
the behaviour depends on the "non-strict" setting of the MySQL server. If i remember correctly in non-strict mode an error will be raised. You should compare the server configs of both machines. Best Regards, Dirk Eschler -- Dirk Eschler -- You received this message because you a

Re: Are AutoField primary keys re-used after deleting an object from the db?

2010-10-15 Thread Dirk
FYI: SQLite3 indeed re-uses primary keys if they are deleted from the tail of the sequence. (So I'll have to use a UUID as a permanent id.) Thanks for your support. Dirk On Oct 10, 5:57 am, Russell Keith-Magee wrote: > On Sunday, October 10, 2010,Dirk wrote: > > If

Re: Are AutoField primary keys re-used after deleting an object from the db?

2010-10-09 Thread Dirk
ably used by Django for the AutoField. It seems to me that the serial sequence generator is not well suited for re-using deleted elements, but I'm not sure. It would be great if a Django or general database expert could calrify this. Best Regards, Dirk On Oct 10, 3:39 am, George Silva wrote

Are AutoField primary keys re-used after deleting an object from the db?

2010-10-09 Thread Dirk
If I use id = models.AutoField(primary_key=True) can I be sure that if an object is removed from the db by calling its .delete() method, the respective id will not be used for any subsequent .save() on a new object? My application relies on the fact that an object's id is unique over all objects

UnicodeDecodeError after upgrade to django-1.2.2

2010-09-09 Thread Dirk Eschler
decode byte 0xc3 in position 275: ordinal not in range(128) -- Dirk Eschler -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send

Re: Very slow page load in production with mod_wsgi

2010-09-03 Thread Dirk Eschler
Am Freitag 03 September 2010, 12:05:47 schrieb Graham Dumpleton: > On Sep 3, 7:45 pm, Dirk Eschler wrote: > > Hello, > > > > i experience slow page loads in production using mod_wsgi. The django > > debugging toolbar reveals a very high CPU use with lots of vol

Very slow page load in production with mod_wsgi

2010-09-03 Thread Dirk Eschler
e problem either. Best Regards, Dirk Eschler -- Dirk Eschler -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to d

Announcing django-modeltranslation-0.2

2010-06-15 Thread Dirk Eschler
unity. Source download: http://django-modeltranslation.googlecode.com/files/django- modeltranslation-0.2.tar.gz For a full changelog, downloads and docs, please visit the project page: http://code.google.com/p/django-modeltranslation/ Best Regards, Dirk Eschler -- Dirk Eschler -- You received

Re: Fetch DoesNotExist from get_object_for_this_type

2010-05-28 Thread Dirk Eschler
Am Freitag 28 Mai 2010, 14:43:21 schrieb Daniel Roseman: > On May 28, 1:33 pm, Dirk Eschler wrote: > > how to fetch the DoesNotExist exception generated by > > get_object_for_this_type? Being generic i can't use the actual model. [...] > The DoesNotExist exceptions for ea

Fetch DoesNotExist from get_object_for_this_type

2010-05-28 Thread Dirk Eschler
raise Http404 Best Regards, Dirk Eschler -- Dirk Eschler -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to d

Re: disabling dashboard 'recent actions'

2010-05-26 Thread Dirk Eschler
to change/remove. Best Regards, Dirk Eschler -- Dirk Eschler -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users

Permissions of abstract model not added on syncdb

2010-05-26 Thread Dirk Eschler
abstract = True permissions = ( ("can_do_foo", _(u"Can do foo")), ) Is this a bug or am i missing something? I'm using django-1.2.1. Best Regards, Dirk Eschler -- Dirk Eschler -- You received this message because you are subscribed to the

Re: Reorder fields in tabular admin inline

2010-05-21 Thread Dirk Eschler
ields = ['field3', 'field2', 'field1'] class BarInline(generic.GenericTabularInline): model = Bar form = BarInlineForm Best Regards, Dirk Eschler Am Freitag 21 Mai 2010, 10:57:27 schrieb Danfi: > use filedsets can dispaly them in that way , but it looks diffe

Reorder fields in tabular admin inline

2010-05-20 Thread Dirk Eschler
just swap the definition order to achieve this. Best Regards, Dirk Eschler -- Dirk Eschler -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this gr

Re: Tests fail with django-1.2-rc1

2010-05-11 Thread Dirk Eschler
Am Dienstag 11 Mai 2010, 16:38:40 schrieb Russell Keith-Magee: > On Tue, May 11, 2010 at 10:21 PM, Dirk Eschler wrote: > > Hello, > > > > i'm in the process of upgrading a project to django-1.2-rc1. While the > > project specific tests passed with django-1.1.1, t

Tests fail with django-1.2-rc1

2010-05-11 Thread Dirk Eschler
ine 138, in create return self.get_query_set().create(**kwargs) File "/path/to/myproject/site-packages/django/db/models/query.py", line 352, in create obj.save(force_insert=True, using=self.db) TypeError: save() got an unexpected keyword argument 'using' Best Regards, Dirk Eschler

No required field indication in TabularInline

2010-03-17 Thread Dirk Eschler
this just a missing feature or am i missing something? Best Regards, Dirk Eschler -- Dirk Eschler http://www.krusader.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegrou

Re: Alternative model without Database

2009-11-24 Thread Dirk Uys
ut I guess if you are using some other tool to generate the WSDL you may not wish to do it this way. I know RoR has something called ActiveResource, but I don't know how closely it maps to ActiveRecord? Regards Dirk -- You received this message because you are subscribed to t

Re: Confirm email by matching on form

2009-11-16 Thread Dirk Uys
t; Just add it to the CustomerForm class. A ModelForm is pretty much a normal Form with some logic to auto generate the fields from the Model. Regards Dirk -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Model validation

2009-11-12 Thread Dirk Uys
actually what I have done. The only problem is that I do not always use forms to supply data (sometimes I import from CVS) and would like to avoid doing the validation at two different points. For the time being, I guess this will do Cheers Dirk -- You received this message because you are subs

Model validation

2009-11-12 Thread Dirk Uys
the django.db.models.signals.pre_save signal 3. Create a custor field that takes an parameter of the date field wich must allways be greater than or less than What is the easiest way to achieve this? Regards Dirk -- You received this message because you are subscribed to the Google Groups

Re: View using 2 models

2009-11-12 Thread Dirk Uys
On Thu, Nov 12, 2009 at 8:07 AM, EmileZola wrote: > Alright, I'm pretty new to Django and I've got this problem I can't > quite solve. > > I basically have two models, wich I use to put blog articles into > categories. One is a Category and the other is a Subject. So in my > categories I might ha

Custom set_password_form in password_reset_confirm

2009-08-07 Thread Dirk Eschler
view. Can anybody help me? Best Regards, Dirk Eschler -- Dirk Eschler --~--~-~--~~~---~--~~ 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@googlegroups

Re: foreign key id as part of models.FileField(upload_to=...)

2009-03-14 Thread Dirk Eschler
Am Samstag 14 März 2009 22:29:16 schrieb Dirk Eschler: > def get_img_storage_path(instance, filename): > return '%salbums/images/%s/' % (settings.MEDIA_ROOT, instance.album.pk) Forgot the filename in my example... def get_img_storage_path(instance, filename): return &#x

Re: foreign key id as part of models.FileField(upload_to=...)

2009-03-14 Thread Dirk Eschler
filename): return '%salbums/images/%s/' % (settings.MEDIA_ROOT, instance.album.pk) class Photo(models.Model): img = models.FileField(upload_to=get_img_storage_path, blank=True) Also see: http://docs.djangoproject.com/en/dev/ref/models/fields

Re: Custom save for excluded inline fields

2009-03-14 Thread Dirk Eschler
Am Samstag 14 März 2009 12:44:11 schrieb Dirk Eschler: > myproject.news.models: > == > class Post(models.Model): > date = models.DateTimeField(default=datetime.now()) > release = models.ForeignKey(Release, null=True, blank=True) > > mypro

Custom save for excluded inline fields

2009-03-14 Thread Dirk Eschler
nline] Now what i'm trying to achieve is to exclude Post.date from the inline form (works), but then again set it to value that has been entered for Release.date when the Release is saved. Can this be handled in PostInline? Is exclude suited for this case at all? Best Regards, D

Re: Django debugging problem.

2008-11-30 Thread DIrk Ye
How about use this app: http://code.google.com/p/django-crashlog/ It will store error info in db. DIrk On Sun, Nov 30, 2008 at 4:36 PM, Grzegorz Szymański <[EMAIL PROTECTED]>wrote: > > On Sunday 30 of November 2008 09:31:55 Grzegorz Szymański wrote: > > Hi, > > I hav

Re: Authenticate Trac against Django users.

2007-12-20 Thread Dirk Eschler
ve cross-posted this to both django-users and trac-users as > there may be interest in each group. I'll try to copy both lists with > responses to any questions. Hello Waylan, please throw it up! :) I've been looking for something l

Re: Error when I use datetime.now()

2007-10-20 Thread Dirk Eschler
get the following error: > > TypeError at /admin/plush/order/1/ > cannot concatenate 'str' and 'datetime.datetime' objects > > Any Suggestions? Hi Greg, you can also concatenate the strings like that: self.comments = "%s abc %s abc" % (self.comments, datetime.no

Re: UnicodeError in admin in latest django

2007-10-12 Thread Dirk Eschler
oblems by setting Pythons default encoding to utf-8. $ cat /usr/lib/python2.4/sitecustomize.py import sys sys.setdefaultencoding("utf-8") Best Regards, Dirk Eschler -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~---~--~---

Re: Unexpected date translation

2007-10-03 Thread Dirk Eschler
On Mittwoch, 3. Oktober 2007, Malcolm Tredinnick wrote: > On Wed, 2007-10-03 at 15:37 +0200, Dirk Eschler wrote: > > Hi, > > > > i'm using a date based generic on a multi-language website. When the > > online language is set to German, {{ date|date:"M&qu

Unexpected date translation

2007-10-03 Thread Dirk Eschler
n be turned of somehow in this case? Best Regards, Dirk Eschler -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: upload progress bar (ticket #4165)

2007-07-24 Thread Dirk van Oosterbosch, IR labs
ld there be a 32 char progress_id in the temp dir during an upload? (besides the temporarilily file being uploaded?) What could cause this progress_id file not being there? How to debug this further? btw: is this mailing list the correct place to discuss this? Or should I post to the ticket p

Re: upload progress bar (ticket #4165)

2007-07-23 Thread Dirk van Oosterbosch, IR labs
group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~--- <> My javascript debugging skill are not so developed. What should I do next? Best regards dirk On 23-jul-2007, at 16:33, [EMAIL PROTECTED] wrote: > > 1. Check if

upload progress bar (ticket #4165)

2007-07-23 Thread Dirk van Oosterbosch, IR labs
#x27;m not sure whether this mailing list is the right place to ask, or whether I should post my questions to the ticket itself. Best regards, dirk - Dirk van Oosterbosch de Wittenstraat 225 1052 AT Amsterdam the Netherlands http://labs.ixo

Re: installation issues

2007-07-13 Thread Dirk van Oosterbosch, IR labs
;? AFAIK the correct way to install python packages is to run 'sudo python setup.py' from the normal command line. Or did you do that? best dirk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: FastCGI spawns unnecessary processes on large POST's

2007-07-04 Thread Dirk van Oosterbosch, IR labs
Aha, of course you guys also have troubles with uploading large POST's. I found the ticket: #2070 Say, which of those patches could I run over version 0.96? And can I still use the same code as I have here http://dpaste.com/ hold/13578/ ? dirk On 4-jul-2007, at 17:03, Dirk van Ooster

Re: FastCGI spawns unnecessary processes on large POST's

2007-07-04 Thread Dirk van Oosterbosch, IR labs
On 1-jul-2007, at 21:24, Dirk van Oosterbosch, IR labs wrote: > > I narrowed down the moment the extra processes are spawned by > FastCGI to be here: > > if request.method == 'POST': > if not (('poster' in request.FILES) or ('m

Re: newforms, unicode and umlauts

2007-07-04 Thread Dirk van Oosterbosch, IR labs
Thanks, that did it. d On 2-jul-2007, at 3:35, Malcolm Tredinnick wrote: > So change > it to compare: > > unicode(default_movies[i].name, 'utf-8') == self.clean_data > [...] --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: FastCGI spawns renegade processes [Follow up]

2007-07-01 Thread Dirk van Oosterbosch, IR labs
On 1-jul-2007, at 16:14, Dirk van Oosterbosch, IR labs wrote: > This is the code I am using: > http://dpaste.com/hold/13336/ > I narrowed down the moment the extra processes are spawned by FastCGI to be here: form = UploadForm({'name1': slots[0]['name'

Re: newforms, unicode and umlauts

2007-07-01 Thread Dirk van Oosterbosch, IR labs
being unequal if not (default_movies[i].name == self.clean_data['name%d' % (i+1)]): What can I do to prevent this Unicode Warning? (while sticking to version 0.96?) best, dirk On 22-jun-2007, at 9:23, patrick k. wrote: > > thanks for your answer. I´ve been trying to solve thi

FastCGI spawns renegade processes (and makes the server give up eventually)

2007-07-01 Thread Dirk van Oosterbosch, IR labs
stalled processes completely, so it becomes unavailable and only returns error 500. I find processes like these ps -aux USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND dirk 2814 0.0 0.4 59952 4084 ?? SJ Fri05PM 0:11.29 python mysite.fcgi (python2.5) dirk 2822 0.0

Re: 500 Errors when uploading files (with FastCGI)

2007-06-26 Thread Dirk van Oosterbosch, IR labs
s memory a bit more economically? And is there a way to have the files in the requested post data streamed into files on disk directly? Thanks, dirk On 26-jun-2007, at 17:36, Dirk van Oosterbosch, IR labs wrote: > Hi All, > > I deployed an app with uploading funct

Strange Errors with FastCGI when uploading files

2007-06-26 Thread Dirk van Oosterbosch, IR labs
(select.error, socket.error), e: AttributeError: 'NoneType' object has no attribute 'error' Does anybody know, what could cause this or (better yet) how to fix it? best dirk - Dirk van Oosterbosch de Wittenstraat 225 1052 AT Amst

Re: Newbie Question - How do I get my burger and fries from BK and not Mickey D's?

2007-06-22 Thread Dirk van Oosterbosch, IR labs
Then you can specify which dishes can be ordered from which Restaurants. On the other hand, when you want to extend the information about the dishes, (a dish might have a price or a volume), you'll run into problems there. ... HTH dirk On 22-jun-2007, at 13:24, Wiley wrote: >

Re: Ticket #3297 & Newforms Image Uploading

2007-06-22 Thread Dirk van Oosterbosch, IR labs
did for the field validation http://dpaste.com/12715/ > the code to save the field data is in the view that uses this form. Nice! Would you maybe be willing to share your view code too? Thnx dirk --~--~-~--~~~---~--~~ You received this message because you

Re: newforms and File (image) upload

2007-06-21 Thread Dirk van Oosterbosch, IR labs
gosnippets.org/snippets/95/ which helped me just a tidbit further. Question: can I mix and match oldforms and newforms together? (in the same application that is, not in the same view or form obviously). (En bedankt voor de code voorbeelden, ook al kan ik die dus niet op de server gebrui

Re: Problems with running Django on a remote machine

2007-06-20 Thread Dirk van Oosterbosch, IR labs
On 21-jun-2007, at 2:06, Malcolm Tredinnick wrote: > On Wed, 2007-06-20 at 18:34 +0200, Dirk van Oosterbosch, IR labs > wrote: >> Should I make this into a ticket? >> > > You could open a ticket, but it's likely not to be "fixed" very > q

Re: Problems with running Django on a remote machine

2007-06-20 Thread Dirk van Oosterbosch, IR labs
On 19-jun-2007, at 13:42, Dirk van Oosterbosch, IR labs wrote: >>> It runs untill I try to load a page (from another ssh >>> shell). And I just get the prompt back: >>> > > This is as far as I am getting: > > in /core/servers/basehttp.py, line 272 (Serv

newforms and File (image) upload

2007-06-20 Thread Dirk van Oosterbosch, IR labs
ou guys could lead me towards working image upload. ;-) best dirk - Dirk van Oosterbosch de Wittenstraat 225 1052 AT Amsterdam the Netherlands http://labs.ixopusada.com - --~--~-~--~~~---~--~~ You received thi

Re: Problems with running Django on a remote machine

2007-06-19 Thread Dirk van Oosterbosch, IR labs
in the interactive shell. Hopefully this makes more sense to you than it does to me. I'm afraid this is as far as I will get debugging, also since the debugging process is really a pain, having to modify those permission protected modules on the server with print statements, while kee

Re: Problems with running Django on a remote machine

2007-06-18 Thread Dirk van Oosterbosch, IR labs
On 15-jun-2007, at 0:18, Malcolm Tredinnick wrote: > > On Thu, 2007-06-14 at 16:37 +0200, Dirk van Oosterbosch, IR labs > wrote: > [...] >> >> Exactly. It runs untill I try to load a page (from another ssh >> shell). >> And I just get the prompt back: &

Re: Survey: FileBrowser and FancyUpload

2007-06-18 Thread Dirk van Oosterbosch, IR labs
I think to have a progress bar is a *big* pro, but if Flash could be avoided, I would be happy too. my $0.02 dirk On 18-jun-2007, at 10:42, patrick k. wrote: > > thanks for the feedback so far. I´m just waiting, if there´s more > feedback. > > so far, it´s very clear that the

Re: Email problem

2007-06-14 Thread Dirk van Oosterbosch, IR labs
Test subject\r\ntest message\r\n' >>> server = smtplib.SMTP('mail.your.smtphost.com') >>> server.sendmail('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', msg) {} >>> server.quit() HTH dirk On 14-jun-2007, at 14:35, Brij wrote:

Re: Problems with running Django on a remote machine

2007-06-14 Thread Dirk van Oosterbosch, IR labs
L PROTECTED]: ~/mysite_project/mysite]% Where would you advice to put debugging on in django/core/servers/ basehttp.py? Put __debug__=True at the top of the module? Or which method are we interested in? Thanks, dirk - Dirk van Oosterbosch de Wittenstraat 225 1052

Problems with running Django on a remote machine

2007-06-13 Thread Dirk van Oosterbosch, IR labs
. [Thu Jun 14 00:36:33 2007] [notice] mod_python: using mutex_directory /tmp [Thu Jun 14 00:36:33 2007] [notice] Apache/2.0.59 (Unix) mod_python/ 3.3.0b Python/2.5 DAV/2 configured -- resuming normal operations Thanks, dirk - Dirk van Oosterbosch de Wittenstraat 225 1052

Re: PATH_INFO missing first part

2007-04-05 Thread Dirk Eschler
ort back later! Hi, i had a very similiar problem once. It turned that i had a "DocumentRoot" defined in my vhost config and that caused weird PATH_INFO problems. Django doesn't care about the DocumentRoot (IMHO), so i just removed it, but it took me quite a while to figure t

Re: Please Remove My Email Address From Django Users

2007-03-09 Thread Dirk Eschler
Whoops, the quote was stripped. Here it is: To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en Best Regards. -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusad

Re: Please Remove My Email Address From Django Users

2007-03-09 Thread Dirk Eschler
On Freitag, 9. März 2007, John A. Miller wrote: Hi John, [...] > Please, remove my id and address from the Django users > group. [...] you can do this yourself: > -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~-

Re: Django Filebrowser and more than one TinyMCE instance

2007-03-03 Thread Dirk Eschler
inserted through the Django filebrowser. Best Regards. -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: Free comments not displayed

2007-03-03 Thread Dirk Eschler
On Samstag, 3. März 2007, Kenneth Gonsalves wrote: > On 03-Mar-07, at 5:04 PM, Dirk Eschler wrote: > > Any ideas what's going wrong? Could that be a permission problem > > (although i'm > > superuser in the admin)? > > looks like a typo somewhere The only

Re: Free comments not displayed

2007-03-03 Thread Dirk Eschler
On Samstag, 3. März 2007, Kai Kuehne wrote: > Hi, > > On 3/3/07, Dirk Eschler <[EMAIL PROTECTED]> wrote: > > Hi Kai, > > > > the problem is, that i don't see any entries in admin interface. It says > > "2 free comments", which is the amount

Re: Free comments not displayed

2007-03-03 Thread Dirk Eschler
On Samstag, 3. März 2007, Kai Kuehne wrote: > Hi Dirk, > > On 3/3/07, Dirk Eschler <[EMAIL PROTECTED]> wrote: > > I can add comments through the frontend, but they won't show up. In the > > free comments admin list view it says "2 free comments", the

Free comments not displayed

2007-03-03 Thread Dirk Eschler
he list however is empty. Any ideas what's going wrong? Could that be a permission problem (although i'm superuser in the admin)? Best Regards. -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~---~--~~ You received t

Re: Django Filebrowser and more than one TinyMCE instance

2007-03-02 Thread Dirk Eschler
ave attached my textareas.js, which also contains the Filebrowser callback i'm using. Please let me know if you need more information. Best Regards. -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~---~--~~ You received this

Django Filebrowser and more than one TinyMCE instance

2007-03-02 Thread Dirk Eschler
ectly in the TinyMCE popup, but after hitting update to apply the link and close the popup, it is rendered into #mce_temp_url#. Is there any way around this problem? Best Regards. -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.k

Clean permission table

2007-03-02 Thread Dirk Eschler
Hi, during development apps are sometimes removed or renamed. What's a good way to clean the leftovers from the permissions table without breaking something? Best Regards. -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.k

Re: Upcoming Django release, and the future

2007-02-27 Thread Dirk Eschler
box, which can in the worst case (if you choose the wrong one) become a security problem as well. Best Regards. -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Use an application inside other application

2007-02-25 Thread Dirk Eschler
as part of your menu app and include it in the template like this: {% load menu %} {% menu %} http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-tags Best Regards. -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~

Re: unicode in filters

2007-02-19 Thread Dirk Eschler
ut. > > Thanks for any advice... > oMat Hi, you can try to add this as first line in your file: # -*- coding: utf-8 -*- Best Regards. -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~---~--~~ You received this me

Reuse inclusion template tag in admin textarea?

2007-02-17 Thread Dirk Eschler
euse the inclusion tag in a admin textarea? Say i write this into a admin textarea: Here's my cool movie: {% flv "foo.flv" 320 160 %} ... And in the model's save() method the template tag is replaced with the appropriate piece of html (from gallery/flv.html), which is then sav

Re: Image upload - self.image not defined in save method

2007-02-13 Thread Dirk Eschler
On Dienstag, 13. Februar 2007, Brice Carpentier wrote: > On 2/13/07, Dirk Eschler <[EMAIL PROTECTED]> wrote: > > i use ImageWithThumbnailField to upload screenhots. In the save method i > > want to set some additional model fields, like filesize and width/height > >

Image upload - self.image not defined in save method

2007-02-13 Thread Dirk Eschler
s' % (settings.MEDIA_ROOT, self.image) def save(self): super(Screenshot, self).save() if self.image: self.filesize = getsize(self.get_image_path()) img = Image.open(self.get_image_path()) self.width = img.size[0] self.height = img.

Re: Custom SQL - MySQL Dictcursor

2007-02-11 Thread Dirk Eschler
On Freitag, 9. Februar 2007, Dirk Eschler wrote: > Hello, > > is there a way to get a dictcursor from Django when using custom MySQL? > > >from django.db import connection > > cursor = connection.cursor() > cursor.execute("SELECT [...]") > cursor.fetchall(

Re: DB API - dict of emails

2007-02-10 Thread Dirk Eschler
. One is a > list of pairs, each of which becomes a key and value in the resulting > dictionary. Nice! Thanks alot for posting posting this solution. Best Regards, Dirk Eschler -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~-

Re: DB API - dict of emails

2007-02-10 Thread Dirk Eschler
On Samstag, 10. Februar 2007, Malcolm Tredinnick wrote: > Hi Dirk, > > On Sat, 2007-02-10 at 12:02 +0100, Dirk Eschler wrote: > > Hello, > > > > i'm trying to get a dict of emails with usernames as keys. > > > > User.objects.filter(username__in=[

DB API - dict of emails

2007-02-10 Thread Dirk Eschler
;[EMAIL PROTECTED]'}, {'username': 'bar', 'email': '[EMAIL PROTECTED]'}] Is it possible to get a dict like this with Django's db api?: {'foo':'[EMAIL PROTECTED]', 'bar':'[EMAIL PROTECTED]'} Best Regards, Dirk Esc

Custom SQL - MySQL Dictcursor

2007-02-09 Thread Dirk Eschler
built with MySQLdb.cursors.DictCursor(db). Best Regards, Dirk Eschler -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Change class name in Admin interface

2007-02-07 Thread Dirk Eschler
On Mittwoch, 7. Februar 2007, Dirk Eschler wrote: > Do you already use Django's i18n support? In this case you can mark the > verbose_name and verbose_name_plural strings as translateable. Then > create-messages.py will find it when executed the next time. It's "make-

Re: Change class name in Admin interface

2007-02-07 Thread Dirk Eschler
s _ class Category(models.Model): [...] class Meta: verbose_name = _('Category') verbose_name_plural = _('Categories') # ----- See http://www.djangoproject.com/documentation/i18n/ for details about Djan

Re: Django on SourceForge?

2006-12-22 Thread Dirk Eschler
ndend $PYTHONPATH. -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Django on SourceForge?

2006-12-22 Thread Dirk Eschler
c that explains how to use the scripts the wiki page links to - or better - how to use them on SourceForge. Best Regards, Dirk Eschler -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~---~--~~ You received this message because

Re: OneToOneField and edit_inline

2006-12-18 Thread Dirk Eschler
On Monday 18 December 2006 22:49, Rob Slotboom wrote: > > I'd like to be able to edit Project and News separately with Content > > inline instead. Do you know what i mean? > > Hi Dirk, > > I get the point though I think this will not work. I've tried similar >

Re: OneToOneField and edit_inline

2006-12-18 Thread Dirk Eschler
On Saturday 16 December 2006 12:07, Rob Slotboom wrote: > Hi Dirk, > I think it's the other way around, try this > > > class Content(models.Model): > title = models.CharField('Title', maxlength=255, core=True) > body = models.TextField('Body t

OneToOneField and edit_inline

2006-12-14 Thread Dirk Eschler
5) class Admin: pass Now when i try to add a project through the admin interface, i don't get the Content fields inlined, but only a empty input dropdown. Am i missing something obvious? I'm using Django-0.95. Best Regards, Dirk Eschler -- Dirk Esc

Documentation - supported parameter lists

2006-12-13 Thread Dirk Eschler
: int The age of the fox (in years) """ Best Regards, Dirk Eschler -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: View on Site link from Admin

2006-11-28 Thread Dirk Eschler
> > But didn't do anything! > > Thanks! You have to activate the sites framework, resp. add 'django.contrib.sites' to your INSTALLED_APPS, and then set your hostname in the admin interface. At least i had to... http://www.djangoproject.com/documentation

Translation hook not working for custom template tag

2006-11-14 Thread Dirk Eschler
;LANGUAGES': (('de', 'German'), ('en', 'English')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'de'}, {}, {'perms': , 'messages': [], 'user': }, {}] Tags are loaded at top of th

Re: Store uploaded image by id

2006-11-08 Thread Dirk Eschler
Am Mittwoch, 8. November 2006 02:06 schrieb Enrico: > Hi Dirk, > > I'm the author of that Wiki page, I've put that code on > '/util/'. > > You could put somewhere else in your python path if you plan to use it > in more projects. > But Django doesn&#x

Re: Is there any way to render rtf (rich text format) documents with Django?

2006-11-02 Thread Dirk Eschler
in interface: http://code.djangoproject.com/wiki/AddWYSIWYGEditor http://www.dehora.net/journal/2006/05/using_tinymce_in_djangos_admin.html -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~-~--~~~---~--~~ You received this message because

Re: captcha problem

2006-10-31 Thread Dirk Eschler
Am Dienstag, 31. Oktober 2006 16:11 schrieb Grigory Fateyev: > Hello Dirk Eschler! > > On Tue, 31 Oct 2006 15:32:03 +0100 you wrote: > > > urlpatterns = patterns('anastas.apps.captcha.views', > > > (r'^i/$', 'image'), > > >

Re: captcha problem

2006-10-31 Thread Dirk Eschler
Am Dienstag, 31. Oktober 2006 15:20 schrieb Dirk Eschler: > In this case i would expect a TemplateSyntaxError. Since you don't get one, > i suppose it is loaded. > > I tried to reproduce your error: i get empty captcha_* values when my > captcha/urls.py is wrong. Judging fr

  1   2   >