Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

636
Views
Apio No se proporcionó ningún nombre de host. Volviendo al 'localhost' predeterminado

Tengo esto en mi /var/log/celery/w1.log

ingrese la descripción de la imagen aquí

Estoy siguiendo los pasos para Apio aquí .

Tengo esto en mi celery.py

 from __future__ import absolute_import, unicode_literals import os from celery import Celery # Set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sample.settings') app = Celery('sample2', broker='amqp://', include=['sample2.tasks']) # Using a string here means the worker doesn't have to serialize # the configuration object to child processes. # - namespace='CELERY' means all celery-related configuration keys # should have a `CELERY_` prefix. app.config_from_object('django.conf:settings', namespace='CELERY') if __name__ == '__main__': app.start()

¿Qué puedo hacer para arreglar esto? Gracias por adelantado.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

agregue la línea soplada a init .py cerca de settings.py

 from .celery import app as celery_app __all__ = ['celery_app']

estructura del proyecto

 - proj/ - manage.py - proj/ - __init__.py - settings.py - urls.py
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!