Re: Django 1.11 released

2017-04-05 Thread Florian Apolloner
Not on purpose no -- if it doesn't work with 4.1 that is a bug On Wednesday, April 5, 2017 at 11:07:13 AM UTC+2, jorr...@gmail.com wrote: > > Is the required version of Pillow pinned at 4.0.0? I upgraded to Django > 1.11 and from Pillow 4.0.0 to 4.1.0 but now Django doesn't start because it > sa

Re: Is it possible to connect django to apache derby as a database?

2015-06-05 Thread Florian Apolloner
If it speaks SQL you can just write your own backend for it, but that is probably a bit of work. On Friday, June 5, 2015 at 2:05:40 PM UTC+1, Uk Jo wrote: > > I am a newbie about Django and Python. But I attended the basic lecture of > python. So I will implement my web application. > I want to

Re: Django 1.8b2: m2m signal raising ProtectedError now affects unrelated queries inside tests

2015-03-12 Thread Florian Apolloner
Hi Peter, On Thursday, March 12, 2015 at 11:26:21 AM UTC+1, Peter Schmidt wrote: > > I think it's related to this documented change: > > https://docs.djangoproject.com/en/dev/releases/1.8/#related-object-operations-are-run-in-a-transaction > Exactly > We can fix it by catching the known instan

Re: PicklingError: Can't pickle : it's not the same object as pytz._UTC

2012-06-22 Thread Florian Apolloner
Hi, I've never ran into this and the only way I can reproduce it is: http://bpaste.net/show/29LVTwRDX5DIgUSDE6D9/ -- So my question to you is: What exactly are you doing, how are you deploying, do you have code reloading active somewhere? Cheers, Florian -- You received this message because

Re: Language Translation

2012-03-11 Thread Florian Apolloner
Hi, please post usage questions to django-users. Thx. On Friday, March 9, 2012 4:23:37 PM UTC+1, Vishnu vg wrote: > > Hi Friends, > > I have a cms based existing django site. I want to translate it to german > or other language, Please suggest which is the best method? > > > -- > Regards > > Vi

Re: Pango causing mod_wsgi to crash - Segmentation fault (11)

2011-10-16 Thread Florian Apolloner
Increase debug level and make sure to read the debugging docs on modwsgi.org; then you can hopefully provide more info, so we can actually help. Cheers, Florian P.S.: Btw telling us which versions you use exactly would help too -- You received this message because you are subscribed to the Go

Re: syncdb for mysql using engine=NDBCLUSTER

2011-10-16 Thread Florian Apolloner
Oh and if you don't want to create all tables in the cluster, just create with the default engine and then switch as needed. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/m

Re: syncdb for mysql using engine=NDBCLUSTER

2011-10-16 Thread Florian Apolloner
Hi, this can be done as documented like for the innodb backend: https://docs.djangoproject.com/en/dev/ref/databases/#creating-your-tables Cheers, Florian -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: How to solve MultiValueDictKeyError

2011-09-21 Thread Florian Apolloner
Hi, please post in django-users, this mailinglist is about the development of django itself, not about enduser problems. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/

Re: How to I create download link of some file using django

2011-05-26 Thread Florian Apolloner
Hi, file.url is what you are looking for (assuming MEDIA_URL is configured correctly) Cheers, Florian -- 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

Re: Lighttpd Vs Apache

2008-06-16 Thread Florian Apolloner
I would stay with Apache, but I would drop mod_python in favor of mod_wsgi [1]. Mod_wsgi is pretty cool and written by the same person as mod_python and should be seen as it's successor. Btw WSGI is the future for python web dev; so why not use it? There is even a page about Django Integration [2]

Re: Getting current user id

2008-01-06 Thread Florian Apolloner
ng an integer. > > Is that wrong? > > On Jan 6, 9:33 pm, Florian Apolloner <[EMAIL PROTECTED]> wrote: > > > You are doing something like my_instance.author = request.user.id > > whereas you should do: my_instance.author = request.user. Why? You are > > working wi

Re: Getting current user id

2008-01-06 Thread Florian Apolloner
You are doing something like my_instance.author = request.user.id whereas you should do: my_instance.author = request.user. Why? You are working with the Django ORM and it doesn't expect you to give it an User-Id (although it get's saved as that in the db), but an instance of django.contrib.auth.m

Re: get_foo_display doesn't work with integers?

2007-12-29 Thread Florian Apolloner
s and then store them in the db, but this question popped up a few times in irc... On Dec 29, 10:32 pm, Florian Apolloner <[EMAIL PROTECTED]> wrote: > > Error is in the way you use it. Please write full model and usage > > example. > > As you wish :) > > blubb/mod

Re: get_foo_display doesn't work with integers?

2007-12-29 Thread Florian Apolloner
> Error is in the way you use it. Please write full model and usage > example. As you wish :) blubb/models.py: from django.db import models # Create your models here. MY_CHOICES = ( (1, '11'), (2, '12') ) class TestModel(models.Model): test_blubb = models.IntegerField(choices=MY_C

Re: ANN: Reusable apps for Django - django-reusableapps 0.1

2007-11-21 Thread Florian Apolloner
Does this mean that I would need to run setup.py install after every checkout, otherwise setuptools couldn't track it or am I mistaken? Best, Florian On 21 Nov., 16:39, Jannis Leidel <[EMAIL PROTECTED]> wrote: > Am 21.11.2007 um 13:54 schrieb Florian Apolloner: > > > Nic

Re: ANN: Reusable apps for Django - django-reusableapps 0.1

2007-11-21 Thread Florian Apolloner
> Versionized reusable apps are definitely a desirable feature! But I > don't like the idea of just using different entrypoints for each > Django release or other dependency. The setuptools _do_ have native > support for complex dependencies [1] via the "install_requires" > keyword. If Django woul

Re: unix auth backend

2007-10-18 Thread Florian Apolloner
I would take a look at the python pam bindings: http://www.pangalactic.org/PyPAM/ Florian Rodrigo Lazo wrote: > Hi all, > > While reading the auth documentation I've found that you could > implement your own auth backend if you need so, and I've found > implementations of a LDAP backend. Sadly

Re: auth.view.login acting very weird

2007-08-31 Thread Florian Apolloner
Yeah one idea: Is what the default admin login page contains, so maybe adding this will be enough, or you would need to write a custom view (I am a little bid concerned about the post_data as it seems to be some random string for security). Florian On Aug 31, 9:23 pm, jfagnani <[EMAIL

Re: ObjectPaginator Performance in Busy Sites

2007-08-31 Thread Florian Apolloner
ed (as the queryset is not executed and sliced then...) and not all objects get fetched. Hope this helps, Florian Apolloner On Aug 31, 9:11 pm, Sebastian Macias <[EMAIL PROTECTED]> wrote: > I'm building an app that requires pagination. I looked at the > official > pagination doc

Re: Django on Linux, MS SQL on Windoz

2007-08-09 Thread Florian Apolloner
Hi, There is currently no fully working backend for mssql, but someone is working on it already (and I am sure he will need some testers). If I am not mistaken there is also http://pymssql.sourceforge.net/ I hope this helps, Florian On Aug 9, 7:10 pm, [EMAIL PROTECTED] wrote: > Is it possible to

Re: [newforms-admin]

2007-07-26 Thread Florian Apolloner
It should be: How can I limit the available options according to some custom permissions? sry On Jul 26, 2:51 pm, Florian Apolloner <[EMAIL PROTECTED]> wrote: > I have a model with a ForeignKey to another model. It is displayed as > select box. How can I limit the available opt

[newforms-admin]

2007-07-26 Thread Florian Apolloner
I have a model with a ForeignKey to another model. It is displayed as select box. How can I limit the available options to some custom permissions? Thx in advance, Florian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: refreshing won't reload page

2007-07-22 Thread Florian Apolloner
On Jul 22, 10:01 pm, "Evan H. Carmi" <[EMAIL PROTECTED]> wrote: > Florian Apolloner wrote: > > After editing your code, you will need to touch fcgi file > > Can you be more explicit. I know the location of a lighttpd.sh init > file. But I am not sure if there

Re: refreshing won't reload page

2007-07-22 Thread Florian Apolloner
After editing your code, you will need to touch fcgi file, and then lighty will restart python and reimport everything... On 21 Jul., 22:39, "Evan H. Carmi" <[EMAIL PROTECTED]> wrote: > Hello, > > I am running Django with lighttpd. I will make a change in the code and > try and refresh the page t

Re: Bug with regroup ? (which does not regroup as he shoud / I hope...)

2007-06-17 Thread Florian Apolloner
y you are grouping by! This means that if your list of people was not sorted by gender, you'd need to make sure it is sorted before using it, i.e.: {% regroup people|dictsort:"gender" by gender as grouped %} Hope this helps, Florian Apolloner On 17 Jun., 16:13, Nicolas Steinmetz &

Re: sleep for 30 minutes?

2007-06-10 Thread Florian Apolloner
On 10 Jun., 20:03, MartinWinkler <[EMAIL PROTECTED]> wrote: > Hi all, > > I have implemented a captcha solution for django (because the already > available approaches did not fit my needs), and came to this problem: > > An image is created for every captcha-enabled form that is being > displayed.

*single* django instance, multiple sites/domains

2007-05-10 Thread Florian Apolloner
Fredrik Lundh described a fine way to serve multiple hosts from a single django instance. As somebody else already asked in the comments, I would like to vary the SITE_ID according to the host (maybe a db lookup). Otherwise I would loose functionality of flatpages/etc., or am I mistaken? Any ide

Use edit_inline and fields display option

2007-04-17 Thread Florian Apolloner
I would like to use edit_inline=models.STACKED in my model (some user_prefs which should get displayed on the user-admin page) and would like to be able to use something like fields = ( ( 'options', {'fields':('photo','blogger')}) ) to get them displayed the way I like them to look... (As I can d

Re: Question regarding the new url() function

2007-04-09 Thread Florian Apolloner
Ah now I see ;) url() is to be used if I don't need extra_directory, any other differences? On 9 Apr., 22:51, "Florian Apolloner" <[EMAIL PROTECTED]> wrote: > When does I have to use url() as described > here:http://www.djangoproject.com/documentation/url_dispatch

Question regarding the new url() function

2007-04-09 Thread Florian Apolloner
ould look over it in the source, as others are having problems with it either... Thanks in advance Florian Apolloner --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: Custom Admin save function

2007-02-18 Thread Florian Apolloner
2007/2/18, Honza Král <[EMAIL PROTECTED]>: > I just wrote it into the email as an example of how I would go about > doing something like this, I said you will have to tweak it a bit, try > it in shell first and see how its behaving... I got something like this now: def save(self): try

Re: Custom Admin save function

2007-02-18 Thread Florian Apolloner
I got a few questions cause it is not working (I assume I am to silly): > def save( self ): > old_data = self.__class__.objects.get(pk=self.id).__dict__ I can substitue pk with id (this is my primary...) > old_data['deleted'] = True Mark the old_data as deleted > self.__class__.objects

Re: Custom Admin save function

2007-02-18 Thread Florian Apolloner
> def save( self ): > old_data = self.__class__.objects.get(pk=self.id).__dict__ > old_data['deleted'] = True > self.__class__.objects.create( **old_data ) > super( models.Model, self ).save() > > then when you do > > m = Model.objects.get(pk=42) > m.some_field='some new value' > m

Re: Custom Admin save function

2007-02-18 Thread Florian Apolloner
> you simply override the save() function to do what you described: > create another instance and mark this one as deleted... That's what I want to do > what is now in 'm' ?? the new object, the one merked for deletion? etc. > if you only need this in admin, then you shouldn't have to worry a

Custom Admin save function

2007-02-18 Thread Florian Apolloner
How can I tweak the normal save button (by hooking into the save method) to, instead of updating the record, add it as new one and mark the old one as deleted (to mark it as deleted I would like to change an boolean attribute...)? Thx Florian --~--~-~--~~~---~--~

Re: a few questions about django

2006-11-07 Thread Florian Apolloner
James Bennett schrieb: > On 11/7/06, Florian Apolloner <[EMAIL PROTECTED]> wrote: > > Yes I see this box, but I (for example) don't won't to see all users > > and have to klick on is_staff->yes, I want this to be preselected > > (which means I don&#x

Re: a few questions about django

2006-11-07 Thread Florian Apolloner
> On 11/7/06, Florian Apolloner <[EMAIL PROTECTED]> wrote: > > 1.) In the admin-area you can use filters ( list_filter = ('is_staff', > > 'is_superuser') ), which show by default all entries. Now I want to > > have the entries prefilterd (let's

a few questions about django

2006-11-07 Thread Florian Apolloner
nd not before it....) I apologize for my bad English. Kind regards Florian Apolloner --~--~-~--~~~---~--~~ 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