Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.7 ImportError on runcrons.py management command #35

Closed
Clean-Cole opened this issue Aug 18, 2014 · 6 comments
Closed

Django 1.7 ImportError on runcrons.py management command #35

Clean-Cole opened this issue Aug 18, 2014 · 6 comments

Comments

@Clean-Cole
Copy link

On Django 1.7 running github master branch install of django-cron

When trying to run python manage.py runcrons I received an import error on..

from django.db import close_connection
@stleon
Copy link

stleon commented Dec 24, 2014

The same problem.
This code works for me.
Use close_old_connections

@tiagoboldt
Copy link

Same: /Users/tiagoboldt/home/work/labprot-local-adaptor/venv/lib/python2.7/site-packages/django_cron/management/commands/runcrons.py:41: RemovedInDjango18Warning: close_connection is superseded by close_old_connections.

Could this fix be shipped to the repository?

@dfryta
Copy link
Member

dfryta commented Jan 13, 2015

Done. Thanks!

@dfryta dfryta closed this as completed Jan 13, 2015
@selva
Copy link

selva commented Jun 13, 2016

i unable use django cron i dont know why, can some one help me, how to resolve this,

my problem is
home/selva/hysovirtual/local/lib/python2.7/site-packages/django/core/management/init.py:345: RemovedInDjango110Warning: OptionParser usage for Django management commands is deprecated, use ArgumentParser instead
self.fetch_command(subcommand).run_from_argv(self.argv)

@craiglabenz
Copy link

What version of Django, @selva? Looks like probably 1.9 based on that warning.

@craiglabenz
Copy link

Looks like a dupe of #84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants