[mezzanine-users] NoneType takes no arguments when registering settings

2014-07-10 Thread Fredrik Blomqvist
I'm trying to register a couple of settings, but as soon as I try to set one of them (in the admin interface) I get a NoneType takes no arguments error, until I restart the server (the settings are all empty after that, aka nothing gets saved). Here's the code: from django.utils.translation

Re: [mezzanine-users] NoneType takes no arguments when registering settings

2014-07-10 Thread Fredrik Blomqvist
Thanks guys, that was the solution (and it now also seems perfectly logical to me why it needs that). Cheers. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [mezzanine-users] Gallery problems: UnicodeEncodeError: 'ascii' codec can't encode character

2014-07-07 Thread Fredrik Blomqvist
produced the solution (just took some time for OpenShift to get it I guess)! Regards, Fredrik On Wednesday, July 2, 2014 9:33:09 PM UTC+2, Fredrik Blomqvist wrote: I looked up that bug thread and did the check (by putting locale in the pre_build hook) but it gave the same info as when I SSH'd

[mezzanine-users] Re: Error when trying to browse a media library folder containing images

2014-07-02 Thread Fredrik Blomqvist
I (temporarily?) solved the problem by setting the PYTHON_EGG_CACHE env var to /tmp at the top of settings.py: os.environ['PYTHON_EGG_CACHE'] = '/tmp' In case a better solution exists (remember that the app resides on OpenShift) I would appreciate if someone told me about it. If not, well

[mezzanine-users] Gallery problems: UnicodeEncodeError: 'ascii' codec can't encode character

2014-07-02 Thread Fredrik Blomqvist
As soon as I try to upload an image, or an archive of images, with names consisting of special characters (eg. é or country specific åäö) it throws an error. I googled it and read that it may be the LANG setting that is wrong. I checked that however and it is set to en_US.UTF-8. I got 2

Re: [mezzanine-users] Re: Error when trying to browse a media library folder containing images

2014-07-02 Thread Fredrik Blomqvist
generally can be arbitrarily wiped at any point in time, if it got wiped while your site was using it that might cause problems. On Wed, Jul 2, 2014 at 5:58 AM, Fredrik Blomqvist fredrik.bl...@gmail.com javascript: wrote: I (temporarily?) solved the problem by setting the PYTHON_EGG_CACHE

Re: [mezzanine-users] Gallery problems: UnicodeEncodeError: 'ascii' codec can't encode character

2014-07-02 Thread Fredrik Blomqvist
the threads are) for locale you should come across a few threads about this, with some instructions on how to fix them. On Wed, Jul 2, 2014 at 6:49 AM, Fredrik Blomqvist fredrik.bl...@gmail.com javascript: wrote: As soon as I try to upload an image, or an archive of images, with names consisting

Re: [mezzanine-users] Gallery problems: UnicodeEncodeError: 'ascii' codec can't encode character

2014-07-02 Thread Fredrik Blomqvist
to run on Debian-based OS, not ones based on RedHat. The command you seek is, I believe: localedef -c -f UTF-8 -i en_US en_US.UTF-8 export LC_ALL=en_US.UTF-8 On Wed, Jul 2, 2014 at 12:52 PM, Fredrik Blomqvist fredrik.bl...@gmail.com javascript: wrote: I'm sorry Kenneth but I'm at a loss

Re: [mezzanine-users] Gallery problems: UnicodeEncodeError: 'ascii' codec can't encode character

2014-07-02 Thread Fredrik Blomqvist
of knowledge in this particular area my theory is probably worth zero. Isn't there any way to force Django/Mezzanine to use UTF-8? On Wednesday, July 2, 2014 8:25:15 PM UTC+2, Kenneth Bolton wrote: On Wed, Jul 2, 2014 at 1:52 PM, Fredrik Blomqvist fredrik.bl...@gmail.com javascript: wrote

Re: [mezzanine-users] Gallery problems: UnicodeEncodeError: 'ascii' codec can't encode character

2014-07-02 Thread Fredrik Blomqvist
, 2014 at 3:04 PM, Fredrik Blomqvist fredrik.bl...@gmail.com javascript: wrote: It's okay, I'm so glad you care to help me at all. I ran that (successfully) and then restarted everything. No success. This is what locale outputs: LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8

[mezzanine-users] Re: Mezzanine @ Openshift

2014-07-01 Thread Fredrik Blomqvist
lol I spent last Sunday on setting up a Mezzanine enviroment on OpenShift, using the (somewhat) outdated templates already available. Awesome that you created this, will probably be very useful for a lot of users! On Tuesday, July 1, 2014 3:59:31 PM UTC+2, Radek Svarz wrote: Hi, if anyone

Re: [mezzanine-users] Error when trying to browse a media library folder containing images

2014-07-01 Thread Fredrik Blomqvist
you added yourself to the ADMINS setting in settings.py? If you have and you have email working for your site it should email you more detailed error messages. My guess would be a locale problem, but that's a shot in the dark without a traceback. On Tue, Jul 1, 2014 at 12:08 PM, Fredrik

[mezzanine-users] Horrible quality of gallery thumbnails

2014-06-23 Thread Fredrik Blomqvist
I just added a gallery to my mezzanine site and I noticed that the thumbnails generated are only 131x75 while the box they are showed in is about double that size. In other words: the low res. of the thumbnails makes them look horrible. Is there any way to change this? Regards, Fredrik --

RE: [mezzanine-users] Horrible quality of gallery thumbnails

2014-06-23 Thread Fredrik Blomqvist
template and update the thumbnail templatetag call specifying whatever size you want. On Mon, Jun 23, 2014 at 1:57 PM, Fredrik Blomqvist fredrik.blomqvist...@gmail.com mailto:fredrik.blomqvist...@gmail.com wrote: I just added a gallery to my mezzanine site and I noticed that the thumbnails

[mezzanine-users] Re: Mezzanine + Angular.js

2014-06-03 Thread Fredrik Blomqvist
Something went wrong when I configured to receive updates for this thread, I thought I had asked a really dumb question since I hadn't received a reply for 3 days. I noticed now however that that was not the case! I am really glad about all of the positive responses in this thread, I'm sorry I

[mezzanine-users] Mezzanine + Angular.js

2014-06-01 Thread Fredrik Blomqvist
, an explanation, or even better some code examples (any demo site like this?)! Best Regards, Fredrik Blomqvist -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine