I would strongly suggest abandoning trying to fix the import problem until you either a) verify that you have recompiled mod_wsgi with the correct Python version or b) switch to a distribution that uses a supported version of Python by default.
At this point, you are wasting time and you may not even be able to fix it without a supported version of Python being used by Apache/mod_wsgi. It's like trying to fix a flat tire on a car and expecting it to be able to drive when you know the engine is missing. Also, if you have a virtualenv that has the correct Python version on that system, you'll need to verify that mod_wsgi is using that Python interpreter, but that won't work with your current version of mod_wsgi. -James On Nov 10, 2015 6:16 AM, "Robin Fourcade" <fourcadero...@gmail.com> wrote: > Thanks Matthias, > > I set* os.environ.setdefault("DJANGO_SETTINGS_MODULE", > "pizza_club.settings") in my wsgi.py* > Now I have *ImportError: Could not import settings 'pizza_club.settings' > (Is it on sys.path?): No module named pizza_club.settings, referer: > http://www.pizzaclub.fr/ <http://www.pizzaclub.fr/>* > > Is that what you meant ? Because the problem is still there. :/ > > > -------------------------------------------------- > > Thanks Timothy, > I'll check the link you gave me. :) > > Thanks again, > > Robin > > -- > 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 django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > 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/5f9f331a-ad44-48cd-9068-8326212423d2%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/5f9f331a-ad44-48cd-9068-8326212423d2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. 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/CA%2Be%2BciXaKCjD1XjQMo5xELVGWLNuyA2N2QfL0sajMTCqPD95YA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.