Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
For the benefit of anyone following this thread. I've found some relevant information, even if I don't understand the entire picture. The important point seems to be the locale in which the Apache server is running. The default Fedora configuration sets LANG=C for the httpd server. Apparently,

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
M Hashmi: > I am sorry but I need some time for R&D coz few things about encoding/decoding > are confusing. Agreed! :-) I've always found Python's encoding handling confusing. Not quite as much in Python 3 as in Python 2, but still. To rule out all eventualities, I made a second app called "asci

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
M Hashmi: > http://stackoverflow.com/questions/728891/correct-way-to-define-python-source-code-encoding I'm using UTF-8 in Python 3 where it is the default. So that is probably not the issue. http://stackoverflow.com/questions/14083111/should-i-use-encoding-declaration-in-python3 -- You receiv

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
M Hashmi: > Can you kindly post your installed apps again and root urls.py in project > directory. Sure, it's attached in this mail too. > You said you have nothing in your app models so is there nothing at all in > app? Correct. To isolate the problem I've made a minimal app that doesn't do an

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
> Please makemigrations/migrate and restart server. It says its not getting > proper data from wsgi.py.  As my models.py is empty, I thought I didn't need to do any migration. But I've done so now just in case. It doesn't seem to change anything. > wsgi.py is not able to stream data to httpd be

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
M Hashmi: > Reply me back I am waiting. Apologies if my assumption caused your time.  No need to apologize! You are trying to help me. I'm grateful. In doing my simplified test case, I forgot to add the new app to INSTALLED_APP. Thanks for the pointer! But after fixing that, I get an "Interna

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
M Hashmi: > List down your "civ.apps.CivConfig" also restart Gunicorn, and reload Nginx.  I'm not sure exactly what you mean by "list down". Do you want me to comment it out? In any case, to make an even more clean test case, I replaced my Django site with one I built from scratch. I.e. I start

Using non-ASCII app name via Apache server

2016-08-07 Thread Göran Uddeborg
I'm new to Django, so this is probably some kind of beginner's mistake. Django is set up to run via Apache and WSGI. It uses Python 3. The first app I wrote works fine. When I got to the second I wanted to use an app name that contained non-ASCII letters. But I can't get that to work at all