Affichage sans mise en forme
#3
Bonjour,

même problème pour moi après une installation sur debian 7 wheezy en suivant le tutoriel https://www.cremecrm.com/forum/showthread.php?tid=70.

Mon fichier urls.py :
Code :
# -*- coding: utf-8 -*-

from django.conf.urls import url, patterns, include
from django.conf import settings
#from django.contrib import admin

#admin.autodiscover()

from creme import creme_core
creme_core.autodiscover()


handler500 = 'creme.creme_core.views.exceptions.server_error'

urlpatterns = patterns('',
    url(r'^creme_login/$',  'django.contrib.auth.views.login', {'template_name': 'authent/creme_login.html'} , name="creme_login"),
    url(r'^creme_logout/$', 'django.contrib.auth.views.logout_then_login' , name="creme_logout"),

#    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    #NB: in production, configure your web server to statically serve the files in the 'media/static/' dir (and so comment the following line)
#    (r'^static_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.GENERATED_MEDIA_DIR}),

    #(r'^admin/(.*)', include(admin.site.urls)),
)

for app_name in settings.INSTALLED_CREME_APPS:
    #regex_url = r'^' if app_name == 'creme_core' else r'^%s/' % app_name
    short_app_name = app_name.split('.')[-1] #eg 'creme.persons'  => 'persons'
    regex_url = r'^' if short_app_name == 'creme_core' else r'^%s/' % short_app_name

    urlpatterns += patterns('', (regex_url, include('%s.urls' % app_name)))

Mon fichier /etc/apache2/sites-available/cremecrm-ssl :
Code :
<VirtualHost *:8000>
        ServerSignature Off

        SSLEngine On
        SSLCertificateFile    /etc/ssl/cert.pem
        SSLCertificateKeyFile /etc/ssl/key.pem

        DocumentRoot /home/creme/cremecrm/

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>

        <Directory /home/creme/cremecrm>
            Options +Indexes +FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            Allow from all
        </Directory>



        ErrorLog /var/log/apache2/error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/cremecrm_access.log combined

        WSGIScriptAlias / /home/creme/cremecrm/creme/django.wsgi
        <Directory /root/creme_crm-1.3/>
              Order allow,deny
              Allow from all
        </Directory>

        Alias /site_media/ /home/creme/cremecrm/creme/media
        Alias /static_media/ /home/creme/cremecrm/creme/media/static


        # Fix IE problems
        BrowserMatch "MSIE [2-6]" \
                nokeepalive ssl-unclean-shutdown \
                downgrade-1.0 force-response-1.0
        # MSIE 7 and newer should be able to use keepalive
        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>

Un extrait des logs d'apache2 :
Code :
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET / HTTP/1.1" 200 9170 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecreammain-9c6f58f2799c94d2864504687bc3f7b4089f2694.css HTTP/1.1" 404 597 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/main-1efaeded8c779fb9b53068fa6dc2957fed7bf62a.js HTTP/1.1" 404 728 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/l10n--fr-79618a66f71bd44bd0ab01af7216bcded2ea39d4.js HTTP/1.1" 404 731 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/creme_256_cropped-7a4c9fee8b1ae74b221e6f8e452d354395865aab.png HTTP/1.1" 404 610 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/pin-33c453362a481ed408d313980f7c95716a64f32e.png HTTP/1.1" 404 601 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/favicon-e41be60abc5ebb842ee87b442a71345c5a720ded.ico HTTP/1.1" 404 602 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/home_64-41a9a9ef7ced46ff707c51dd1d64f79326d548e7.png HTTP/1.1" 404 604 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/graph_48-4d8224d45c045219761666a612c433ad84276c74.png HTTP/1.1" 404 605 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/history_48-926c701ec9f33c167a2a6e81a0e4596e40b6b49c.png HTTP/1.1" 404 606 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/delete_16-224a36f1bfe1a28fbe3ae45c18a67bbe8825ebf4.png HTTP/1.1" 404 741 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/quick_22-7eafd07257f3ba43460b883b95a7cc83502026c7.png HTTP/1.1" 404 744 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/search_22-8ce68c86d109ea8592fa8925d659f58367bbd34b.png HTTP/1.1" 404 743 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/main-1efaeded8c779fb9b53068fa6dc2957fed7bf62a.js HTTP/1.1" 404 590 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/report_22-19107b7ca8f289808839e6219d0bd17db48ce43e.png HTTP/1.1" 404 605 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/small_down_arrow_16-122c5e94208cc75c456408502fae67dd6d4826ac.png HTTP/1.1" 404 612 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/contact_22-7a2e471facc2312eabcb4dc4f10d8838904e2362.png HTTP/1.1" 404 605 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/organisation_22-db475af1ccaffceabf4134db47cba395c02df739.png HTTP/1.1" 404 607 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/calendar_48-86986098758c59dc3939c70e9b23c3c4465c7c76.png HTTP/1.1" 404 606 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/memo_48-5a5382e8e4b73f935e7d2cf3a2b9599806d3e649.png HTTP/1.1" 404 604 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/alert_48-337e406695e85483a40809742d19591ffcf398d9.png HTTP/1.1" 404 604 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/message_48-809123d16becee9e191004589ee79a577ba425c3.png HTTP/1.1" 404 606 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/add_22-65bfd1b92f99b165e2245700819ff67ec9454706.png HTTP/1.1" 404 604 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/creme_256_cropped-7a4c9fee8b1ae74b221e6f8e452d354395865aab.png HTTP/1.1" 404 610 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/pin-33c453362a481ed408d313980f7c95716a64f32e.png HTTP/1.1" 404 601 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/delete_16-224a36f1bfe1a28fbe3ae45c18a67bbe8825ebf4.png HTTP/1.1" 404 603 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/quick_22-7eafd07257f3ba43460b883b95a7cc83502026c7.png HTTP/1.1" 404 606 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/search_22-8ce68c86d109ea8592fa8925d659f58367bbd34b.png HTTP/1.1" 404 605 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/favicon-e41be60abc5ebb842ee87b442a71345c5a720ded.ico HTTP/1.1" 404 602 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/home_64-41a9a9ef7ced46ff707c51dd1d64f79326d548e7.png HTTP/1.1" 404 604 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/graph_48-4d8224d45c045219761666a612c433ad84276c74.png HTTP/1.1" 404 605 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"
10.0.0.1 - - [08/Jul/2015:09:10:37 +0200] "GET /static_media/icecream/images/history_48-926c701ec9f33c167a2a6e81a0e4596e40b6b49c.png HTTP/1.1" 404 606 "https://crm.mon-site.fr:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0"

Dans mon fichier /home/creme/cremecrm/creme/cat settings.py, j'ai la ligne suivante :
Code :
MEDIA_URL = 'http://127.0.0.1/site_media/'

Peut-être l'erreur vient-elle de là ?
Pouvez-vous confirmer ?
Crème CRM 2.4.2 sur Debian GNU/Linux 11 Bullseye avec Apache2 + WSGI
  Répondre


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)