Re: Using non-ASCII app name via Apache server

2016-08-08 Thread M Hashmi
Oh Great! It was great learning for me as well while searching out the solution. Take care Goran, Regards, Mudassar On Mon, Aug 8, 2016 at 9:57 AM, Göran Uddeborg wrote: > For the benefit of anyone following this thread. I've found some > relevant information, even if I don't understand the

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 M Hashmi
I am sorry but I need some time for R&D coz few things about encoding/decoding are confusing. I've tried to recreate error on my apache live server but I couldn't create this error. Kindly wait for others to reply or I will search it out after some time. I am trying to add a new app on one of my pr

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 M Hashmi
http://stackoverflow.com/questions/728891/correct-way-to-define-python-source-code-encoding On Mon, Aug 8, 2016 at 4:41 AM, M Hashmi wrote: > In traceback the error is in last line. Somehow it is trying to import > something that is returning response as string. > Can you kindly post your instal

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread M Hashmi
In traceback the error is in last line. Somehow it is trying to import something that is returning response as string. Can you kindly post your installed apps again and root urls.py in project directory. So I can compare urls and app imports side by side. You said you have nothing in your app mode

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 M Hashmi
Please makemigrations/migrate and restart server. It says its not getting proper data from wsgi.py. wsgi.py is not able to stream data to httpd because it has internal issues. Also to see if project is working fine please always use runserver so you can see django related errors. Otherwise you will

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 M Hashmi
I am sorry bad assumption on my side. I saw your full traceback and all it says that in your project urls.py and it cannot resolve following url. url(r'^appåäö/', include('appåäö.urls')), Its picking up the this url but no app related to this urls exists. Either you need to check if this app is l

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

Re: Using non-ASCII app name via Apache server

2016-08-07 Thread M Hashmi
List down your "civ.apps.CivConfig" also restart Gunicorn, and reload Nginx. On Sunday, August 7, 2016 at 4:59:40 PM UTC-7, Göran Uddeborg wrote: > > 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 f