Timothy,
Thanks you, but SELinux here does not seem to be the issue. I tried with
enforcing/permissive/disabled and the effect is the same.
I belive the problem to be in the os path in the seetings:
---
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
...
...
--
in wsgi.py :
----
import os, sys
sys.path.append('/data/app/guillem-py3-dj17-test/guillem_test/guillem_test')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "guillem_test.settings")
---
python -c "import sys; print(sys.path)"
['', '/data/app/guillem-py3-dj17-test/lib64/python33.zip',
'/data/app/guillem-py3-dj17-test/lib64/python3.3',
'/data/app/guillem-py3-dj17-test/lib64/python3.3/plat-linux',
'/data/app/guillem
-py3-dj17-test/lib64/python3.3/lib-dynload',
'/opt/rh/python33/root/usr/lib64/python3.3',
'/opt/rh/python33/root/usr/lib/python3.3',
'/data/app/guillem-py3-dj17-test/lib/python3.3/site-packa
ges']
I am reading about the differnces for mod_wsgi from python2.x to python3.x
but I fail to find clear documentation about how the wsgi.py and
settings.py should look like in python3.
On Wednesday, 7 May 2014 00:20:00 UTC+2, Timothy W. Cook wrote:
>
>
> On Tue, May 6, 2014 at 7:01 PM, Guillem Liarte
> <[email protected]<javascript:>
> > wrote:
>
>>
>>
>> But I still get the locale encoding problem. Do you guys have any
>> suggestions?
>>
>> I do not recall the exact error I had with this config (once you
> corrected those you mentioned) but eventually I had to set:
>
> $setenforce 0
>
> to disable SELinux security. I am sure that there is a way around this
> but I haven't had a need to fix it yet.
>
> HTH,
> Tim
>
>
>
> ============================================
> Timothy Cook
> LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
> MLHIM http://www.mlhim.org
>
>
--
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, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/574819c6-624c-4071-9222-3a7f74be9429%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.