[obsolète] Installation de Crème CRM 1.6 sous Linux
#15
Merci a vous Smile

Donc avec le fichier local_setting.py comme ci dessous la commande fonctionne

Code :
DATABASES = {
    'default': {
        'ENGINE':   'django.db.backends.mysql',
        'NAME':     'bdcremecrm',
        'USER':     'cremeuser',
        'PASSWORD': 'MonMotDePasse',
        'HOST':     '',
        'PORT':     '',
    },
}
SECRET_KEY = 'MaCle',

Code :
python manage.py migrate
Par contre Smile sur le commande ci dessous

Code :
python manage.py creme_populate
J'ai l'erreur

Code :
python manage.py creme_populate
/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/utils.py:7: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
  from django.utils.importlib import import_module
Disable populate for "vcfs": it does not have any "populate.py" script.
Populate "creme_core" ...
A super-user has been created with login="root" and password="root".
OK
Populate "recurrents" ... OK
Populate "documents" ... OK
Populate "assistants" ... OK
Populate "events" ... OK
Populate "crudity" ... OK
Populate "activesync" ... OK
Populate "persons" ... OK
Populate "creme_config" ... OK
Populate "media_managers" ... OK
Populate "reports" ... OK
Populate "graphs" ... OK
Populate "products" ... OK
Populate "geolocation" ...
Importing Towns database...
OK
Populate "activities" ... OK
Populate "commercial" ... OK
Populate "emails" ... OK
Populate "projects" ... OK
Populate "tickets" ... OK
Populate "billing" ... OK
Populate "opportunities" ... OK
Update sequences for models : ['Language', 'Currency', 'StaffSize', 'EventType', 'Priority', 'Civility', 'TaskStatus', 'Position', 'Status', 'CreditNoteStatus', 'LegalForm', 'ActType', 'FolderCategory', 'ProjectStatus', 'QuoteStatus', 'SettlementTerms', 'InvoiceStatus', 'Status', 'SearchConfigItem', 'Town', 'MediaCategory', 'UserMessagePriority', 'AdditionalInformation', 'Criticity', 'Sector', 'CremeUser', 'SalesOrderStatus', 'PaymentTerms'] OK
Populate is OK.
(creme)administrateur@cremeCRM:~/creme_crm-1.6$ python manage.py generatemedia
/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/utils.py:7: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
  from django.utils.importlib import import_module
Generating l10n.js with variation {'language': 'en'}
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
    output = self.handle(*args, **options)
  File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/core/management/base.py", line 661, in handle
    return self.handle_noargs(**options)
  File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/management/commands/generatemedia.py", line 10, in handle_noargs
    generate_media()
  File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/api.py", line 21, in generate_media
    for key, url, content in backend.get_output():
  File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/generators/bundles/bundles.py", line 33, in get_output
    variation, combination)
  File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/generators/bundles/bundles.py", line 72, in generate_file
    output = list(backend.get_output(variation))
  File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/filters/yuicompressor.py", line 31, in get_output
    "Error was: %s" % e)
ValueError: Failed to execute Java VM or yuicompressor. Please make sure that you have installed Java and that it's in your PATH and that you've configured YUICOMPRESSOR_PATH in your settings correctly.
Error was: [Errno 2] No such file or directory

Et du coup je n'arrive pas à joindre mon serveur sur http://IPduServeur:8000 pourtant je n'ai pas d'erreur

Code :
(creme)administrateur@cremeCRM:~/creme_crm-1.6$ python manage.py runserver
/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/utils.py:7: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
  from django.utils.importlib import import_module
/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/utils.py:7: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
  from django.utils.importlib import import_module
Performing system checks...

System check identified no issues (0 silenced).
April 04, 2017 - 08:25:32
Django version 1.8.17, using settings 'creme.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Je touche presque au but Smile

Merci encore
  Répondre


Messages dans ce sujet

Atteindre :


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