Re: Django on CentOS

2015-11-11 Thread Robin Fourcade
Riiigghh, After many many many tries, it finally worked ! Thanks again, thank you, everybody! Robin. -- SOLVED. -- 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 t

Re: Django on CentOS

2015-11-11 Thread Robin Fourcade
Hi, So I made another install with a new user (pizzaclub). I wrote this in the default.conf: ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /static /home/pizzaclub/pizzaclub/static

Re: Django on CentOS

2015-11-11 Thread Robin Fourcade
Hi, thanks for your answer. That's what I did. So if it's a big issue, I'll create a new user on my server and I'll redo the installation through this user ! Thanks, Robin. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Django on CentOS

2015-11-11 Thread Luis Zárate
Are you install your app as root user? (/root/pizzaclub) The permission denied it's because apache run as www-data or http user not as root, so if you install your app as root you probably have read/write permission problems and a big security issue. 2015-11-11 13:01 GMT-06:00 Robin Fourcade :

Re: Django on CentOS

2015-11-11 Thread Robin Fourcade
As I'm not comfortable at all with this, I tried with ubuntu, wich has python 2.7 by default. I follow this tutorial: https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04 Everything was working well, except at the end, I've

Re: Django on CentOS

2015-11-11 Thread James Schneider
On Nov 10, 2015 9:46 AM, "Robin Fourcade" wrote: > > Thanks James, > I looked at many tutorials like: > > https://www.digitalocean.com/community/tutorials/how-to-install-the-django-web-framework-on-centos-7 > https://devops.profitbricks.com/tutorials/deploy-django-with-virtualenv-on-centos-6/ > >

Re: Django on CentOS

2015-11-10 Thread Robin Fourcade
Thanks James, I looked at many tutorials like: https://www.digitalocean.com/community/tutorials/how-to-install-the-django-web-framework-on-centos-7 https://devops.profitbricks.com/tutorials/deploy-django-with-virtualenv-on-centos-6/ Neither of these are for python 3.7 or higher. :/ i would gladly

Re: Django on CentOS

2015-11-10 Thread James Schneider
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 e

Re: Django on CentOS

2015-11-10 Thread Robin Fourcade
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/* Is that what you

Re: Django on CentOS

2015-11-10 Thread Timothy W. Cook
If you have the option use a different Linux distribution. If you must use CentOS this may help with getting Apache and Python (newer than 2.6) working. http://stackoverflow.com/questions/21158918/django-mod-wsgi-psycopg2-improperlyconfigured-error-loading-psycopg2-module I see that since I had

Re: Django on CentOS

2015-11-09 Thread Matthias Runge
On 09/11/15 11:29, Robin Fourcade wrote: > Thanks for your answer James, > As this server is only the run this project, I can install another linux > distribution. > I'm able to install theses : > > *CentOS 6 minimal system (64 bits)* > Système de base openSUSE 13.1 (64 bits) > Système de base Deb

Re: Django on CentOS

2015-11-09 Thread James Schneider
On Mon, Nov 9, 2015 at 2:29 AM, Robin Fourcade wrote: > Thanks for your answer James, > As this server is only the run this project, I can install another linux > distribution. > I'm able to install theses : > > *CentOS 6 minimal system (64 bits)* > Système de base openSUSE 13.1 (64 bits) > Systè

Re: Django on CentOS

2015-11-09 Thread Robin Fourcade
Thanks for your answer James, As this server is only the run this project, I can install another linux distribution. I'm able to install theses : *CentOS 6 minimal system (64 bits)* Système de base openSUSE 13.1 (64 bits) Système de base Debian 7 Wheezy (64 bits) CentOS 6 avec Parallels Plesk Pan

Re: Django on CentOS

2015-11-09 Thread Robin Fourcade
Hi And thanks for your answer. Le lundi 9 novembre 2015 10:51:01 UTC+1, Gergely Polonkai a écrit : > > Hello, > > there’s a lot that is not clear for me in your included config: > > • Why are all those paths in WSGIPythonPath? > I'm not used to install django projects so I followed this tutorial

Re: Django on CentOS

2015-11-09 Thread James Schneider
On Sun, Nov 8, 2015 at 12:59 PM, Robin Fourcade wrote: > Hi, > Thanks for your answer ! > (I'd add that even if apache is running, if I run the server on the port > 8000, I can acces the django project on this port without any issue) > > That simply means that the Django runserver management comm

Re: Django on CentOS

2015-11-09 Thread Gergely Polonkai
Hello, there’s a lot that is not clear for me in your included config: • Why are all those paths in WSGIPythonPath? • Are there Python modules in those directories? • Do I get it right that your application is installed under /var/www (which is generally a bad idea)? • Is pizzaclub/settings.py av

Re: Django on CentOS

2015-11-09 Thread Robin Fourcade
Hello, thanks for the answer. I've this code in my wsgi: import os, sys #Calculate the path based on the location of the WSGI script apache_configuration = os.path.dirname(__file__) project = os.path.dirname(apache_configuration) workspace = os.path.dirname(project) sys.path.append(workspace) os

Re: Django on CentOS

2015-11-08 Thread Gergely Polonkai
Hello, no, the problem is here: [Sun Nov 08 14:46:43 2015] [error] [client 109.10.154.52] ImportError: Could not import settings 'pizzaclub.settings' (Is it on sys.path?): No module named pizzaclub.settings, referer:http ://212.227.107.82/ It see

Re: Django on CentOS

2015-11-08 Thread Robin Fourcade
Hi, Thanks for your answer ! (I'd add that even if apache is running, if I run the server on the port 8000, I can acces the django project on this port without any issue) Here's the log [Sun Nov 08 14:46:41 2015] [error] [client 109.10.154.52] mod_wsgi (pid=22420): Exception occurred processing

Re: Django on CentOS

2015-11-08 Thread James Schneider
On Nov 8, 2015 11:25 AM, "Robin Fourcade" wrote: > > Hello, > I'm trying to run my django project on my CentOS server. > > I followed this tutorial : http://www.science-emergence.com/LeWebFrameworkDjango/DeployerUneApplicationDjangoSurCentos/#deployer-votre-application-django > > And at the end, t