You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although I have defined the CRONTAB_DJANGO_MANAGE_PATH variable on the settings.py
Any idea?
Traceback (most recent call last):
File "private/devcon/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 443, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 69, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module import(name)
File "/usr/local/lib/python2.7/dist-packages/django_crontab-0.3-py2.7.egg/django_crontab/management/commands/crontab.py", line 3, in
from django_crontab.app_settings import CRONTAB_EXECUTABLE, CRONJOBS,
File "/usr/local/lib/python2.7/dist-packages/django_crontab-0.3-py2.7.egg/django_crontab/app_settings.py", line 20, in
DJANGO_MANAGE_PATH = getattr(settings, 'CRONTAB_DJANGO_MANAGE_PATH', import_module(DJANGO_PROJECT_NAME + '.manage').file.replace('pyc', 'py'))
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module import(name)
ImportError: No module named manage
The text was updated successfully, but these errors were encountered:
Sure, this crashes no matter whether CRONTAB_DJANGO_MANAGE_PATH is set or not, especially when using Django 1.4 where the manage.py file moved one folder up.
This should be fixed with 47e8bc8. Version 0.4 is released on pypi so just run
Line:
*/5 * * * * /usr/bin/python /home/sites/devcon.pre.is/private/devcon/ crontab run devcon.core.cron.test # django-cronjobs for devcon
I have this problem when I try to run the command copy / paste from the crontab file:
/usr/bin/python: can't find 'main' module in '/home/sites/devcon.pre.is/private/devcon/'
Seems your settings.CRONTAB_DJANGO_MANAGE_PATH doesn't include the "manage.py" at the end.
Try testing it without overwriting this setting. If it fails add "manage.py" at the end of it.
And i'm going to mention this in the documentation.
Although I have defined the CRONTAB_DJANGO_MANAGE_PATH variable on the settings.py
Any idea?
Traceback (most recent call last):
File "private/devcon/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 443, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 69, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
import(name)
File "/usr/local/lib/python2.7/dist-packages/django_crontab-0.3-py2.7.egg/django_crontab/management/commands/crontab.py", line 3, in
from django_crontab.app_settings import CRONTAB_EXECUTABLE, CRONJOBS,
File "/usr/local/lib/python2.7/dist-packages/django_crontab-0.3-py2.7.egg/django_crontab/app_settings.py", line 20, in
DJANGO_MANAGE_PATH = getattr(settings, 'CRONTAB_DJANGO_MANAGE_PATH', import_module(DJANGO_PROJECT_NAME + '.manage').file.replace('pyc', 'py'))
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
import(name)
ImportError: No module named manage
The text was updated successfully, but these errors were encountered: