26-10-2020, 19:36
Bonjour,
J'ai suivi les indications du tutoriel Nouveauté (Creme 1.5) : interface pour téléphones mobiles
mais je n'arrive pas à afficher la version mobile de CremeCRM 2.1 .
J'ai dé-commenté la ligne du fichier settings.py :
puis redémarré CremeCRM.
Mais la page "http://mon_installation_creme.com/mobile/login/[/url]
[url=https://www.cremecrm.com/forum/showthread.php?tid=67&highlight=mobile]renvoie le code "Creme — Erreur 500".
Voici les logs d'erreur :
Que dois-je faire ?
Merci à vous.
J'ai suivi les indications du tutoriel Nouveauté (Creme 1.5) : interface pour téléphones mobiles
mais je n'arrive pas à afficher la version mobile de CremeCRM 2.1 .
J'ai dé-commenté la ligne du fichier settings.py :
Code :
INSTALLED_CREME_APPS = [
[...]
'creme.mobile',
[...]
]
Mais la page "http://mon_installation_creme.com/mobile/login/[/url]
[url=https://www.cremecrm.com/forum/showthread.php?tid=67&highlight=mobile]renvoie le code "Creme — Erreur 500".
Voici les logs d'erreur :
Code :
[2020-10-26 18:22:44] ERROR - django.request : Internal Server Error: /mobile/login/
Traceback (most recent call last):
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/core/handlers/base.py", line 145, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/core/handlers/base.py", line 143, in _get_response
response = response.render()
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/response.py", line 106, in render
self.content = self.rendered_content
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/response.py", line 83, in rendered_content
content = template.render(context, self._request)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/backends/django.py", line 61, in render
return self.template.render(context)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/base.py", line 171, in render
return self._render(context)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/base.py", line 937, in render
bit = node.render_annotated(context)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/base.py", line 904, in render_annotated
return self.render(context)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/loader_tags.py", line 188, in render
return template.render(context)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/base.py", line 173, in render
return self._render(context)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/base.py", line 937, in render
bit = node.render_annotated(context)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/base.py", line 904, in render_annotated
return self.render(context)
File "/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/template/library.py", line 192, in render
output = self.func(*resolved_args, **resolved_kwargs)
File "/srv/www/creme_crm-2.1/mediagenerator/templatetags/media.py", line 45, in media_url
return utils.media_url(url)
File "/srv/www/creme_crm-2.1/mediagenerator/utils.py", line 123, in media_url
urls = media_urls(key, refresh=refresh)
File "/srv/www/creme_crm-2.1/mediagenerator/utils.py", line 119, in media_urls
return [PRODUCTION_MEDIA_URL + get_production_mapping()[key]]
KeyError: 'mobile/sprites_16.png'
Que dois-je faire ?
Merci à vous.
Crème CRM 2.4.2 sur Debian GNU/Linux 11 Bullseye avec Apache2 + WSGI