20-08-2019, 23:39
Bonsoir,
J'ai un soucis lors du passage de creme en mode apache avec wsgi.
Je precise que tout fonctionne bien avec le serveur embarqué.
Voici mon vhost :
Et voici l'erreur que j'ai dans les logs :
Je précise que sur cette première machine de test je n'ai pas mis en place de virtualenv
Merci pour vos retours
J'ai un soucis lors du passage de creme en mode apache avec wsgi.
Je precise que tout fonctionne bien avec le serveur embarqué.
Voici mon vhost :
Citation :Code :<VirtualHost *:80>
ServerName creme
WSGIScriptAlias / /home/vagrant/creme/creme_crm-2.0/creme/django.wsgi
<Directory /home/vagrant/creme/creme_crm-2.0/creme>
<Files django.wsgi>
Require all granted
</Files>
</Directory>
</VirtualHost>
Et voici l'erreur que j'ai dans les logs :
Citation :[Tue Aug 20 21:22:33.426348 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] mod_wsgi (pid=2045): Target WSGI script '/home/vagrant/creme/creme_crm-2.0/creme/django.wsgi' cannot be loaded as Python module.
[Tue Aug 20 21:22:33.426621 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] mod_wsgi (pid=2045): Exception occurred processing WSGI script '/home/vagrant/creme/creme_crm-2.0/creme/django.wsgi'.
[Tue Aug 20 21:22:33.427426 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] Traceback (most recent call last):
[Tue Aug 20 21:22:33.427583 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "/home/vagrant/creme/creme_crm-2.0/creme/django.wsgi", line 12, in
[Tue Aug 20 21:22:33.427683 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] application = get_wsgi_application()
[Tue Aug 20 21:22:33.427753 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "/usr/local/lib/python3.5/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application
[Tue Aug 20 21:22:33.427813 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] django.setup(set_prefix=False)
[Tue Aug 20 21:22:33.427885 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "/usr/local/lib/python3.5/dist-packages/django/__init__.py", line 22, in setup
[Tue Aug 20 21:22:33.427968 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Tue Aug 20 21:22:33.428038 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "/usr/local/lib/python3.5/dist-packages/django/conf/__init__.py", line 56, in __getattr__
[Tue Aug 20 21:22:33.428081 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] self._setup(name)
[Tue Aug 20 21:22:33.428126 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "/usr/local/lib/python3.5/dist-packages/django/conf/__init__.py", line 41, in _setup
[Tue Aug 20 21:22:33.428167 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] self._wrapped = Settings(settings_module)
[Tue Aug 20 21:22:33.428225 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "/usr/local/lib/python3.5/dist-packages/django/conf/__init__.py", line 110, in __init__
[Tue Aug 20 21:22:33.428323 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] mod = importlib.import_module(self.SETTINGS_MODULE)
[Tue Aug 20 21:22:33.428394 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
[Tue Aug 20 21:22:33.428460 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] return _bootstrap._gcd_import(name[level:], package, level)
[Tue Aug 20 21:22:33.428519 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "", line 986, in _gcd_import
[Tue Aug 20 21:22:33.428579 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "", line 969, in _find_and_load
[Tue Aug 20 21:22:33.428641 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "", line 944, in _find_and_load_unlocked
[Tue Aug 20 21:22:33.428713 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "", line 222, in _call_with_frames_removed
[Tue Aug 20 21:22:33.428763 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "", line 986, in _gcd_import
[Tue Aug 20 21:22:33.428809 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "", line 969, in _find_and_load
[Tue Aug 20 21:22:33.428868 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] File "", line 956, in _find_and_load_unlocked
[Tue Aug 20 21:22:33.428939 2019] [wsgi:error] [pid 2045:tid 140546450519808] [client 10.0.2.2:60252] ImportError: No module named 'creme'
Je précise que sur cette première machine de test je n'ai pas mis en place de virtualenv
Merci pour vos retours