Re: SyntaxError: positional argument follows keyword argument

2019-08-08 Thread Andreas Hasenkopf
t > >def breg(request): >form = UserCreationForm() >return render(request=request, template_name="source/breg.html", >{'forms':form}) > > I get the following error > >SyntaxError: positional argument follows keyword argument > > Please can anyone

Custom ManyRelatedManager?

2019-08-05 Thread Andreas Hasenkopf
dreas -- Andreas Hasenkopf Phone: +49 151 11728439 Homepage:https://hasenkopf.xyz GPG Pub Key: http://goo.gl/4mOsM -- 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

Re: UnicodeEncodeError in file uploads

2012-03-02 Thread Andreas Hasenkopf
In some older group post I found a nice django-based solution: Using a customized ImageField instance: class MyImageField(ImageField): def __init__(self, *args, **kwargs): super(MyImageField, self).__init__(*args, **kwargs) def clean(self, *args, **kwargs): data = super(M

Re: UnicodeEncodeError in file uploads

2012-03-02 Thread Andreas Hasenkopf
Hi there, tried upload of file containing file with umlaut in filename on a Ubuntu server with de_DE.UTF8 locale setting. This server also produces a UnicodeEncodeError error. locale -a gives the following output: C en_AG en_AU.utf8 en_BW.utf8 en_CA.utf8 en_DK.utf8 en_GB.utf8 en_HK.utf8 en_IE.utf8