|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
[Django Code] #8085: call_command('runserver') executes management command twice.
by noreply-71
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message #8085: call_command('runserver') executes management command twice.
---------------------------+------------------------------------------------ Reporter: ericholscher | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ When you use runserver in a management command, it executes the code in the management command twice. This is cited in the testserver management command: {{{ 32 # Run the development server. Turn off auto-reloading because it causes 33 # a strange error -- it causes this handle() method to be called 34 # multiple times. 35 shutdown_message = '\nServer stopped.\nNote that the test database, %r, has not been deleted. You can explore it on your own.' % db_name 36 call_command('runserver', addrport=addrport, shutdown_message=shutdown_message, use_reloader=False) }}} I ran into this as well, and I'm just putting it in here so hopefully someone sees it and fixes it. -- Ticket URL: <http://code.djangoproject.com/ticket/8085> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@... To unsubscribe from this group, send email to django-updates+unsubscribe@... For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: [Django] #8085: call_command('runserver') executes management command twice.
by noreply-71
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message #8085: call_command('runserver') executes management command twice.
------------------------------------------------+--------------------------- Reporter: ericholscher | Owner: Status: new | Milestone: post-1.0 Component: django-admin.py runserver | Version: SVN Resolution: | Keywords: Stage: Someday/Maybe | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ------------------------------------------------+--------------------------- Changes (by ericholscher): * owner: ericholscher => * status: assigned => new -- Ticket URL: <http://code.djangoproject.com/ticket/8085#comment:3> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@... To unsubscribe from this group, send email to django-updates+unsubscribe@... For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: [Django] #8085: call_command('runserver') executes management command twice.
by noreply-71
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message #8085: call_command('runserver') executes management command twice.
------------------------------------------------+--------------------------- Reporter: ericholscher | Owner: Status: new | Milestone: Component: django-admin.py runserver | Version: SVN Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ------------------------------------------------+--------------------------- Changes (by tiberiu_ichim): * stage: Someday/Maybe => Unreviewed Comment: One issue I have related to this: the second time the code is executed, in my setup (I'm using zc.buildout, and I have Django listed as an egg dependency for my own egg), it can't find the django modules. -- Ticket URL: <http://code.djangoproject.com/ticket/8085#comment:5> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@... To unsubscribe from this group, send email to django-updates+unsubscribe@... For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: [Django] #8085: call_command('runserver') executes management command twice.
by noreply-71
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message #8085: call_command('runserver') executes management command twice.
------------------------------------------------+--------------------------- Reporter: ericholscher | Owner: Status: new | Milestone: Component: django-admin.py runserver | Version: SVN Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ------------------------------------------------+--------------------------- Comment (by tiberiu_ichim): My problem is solved if I run "runserver" with the --noreload option, so the problem must be in django.utils.autoreloader. Some details about my setup: my python is actually a script generated with zc.recipes.egg's "interpreter" option. This script inserts all my egg dependencies in the sys.path, then calls an execfile(mymodule). I think the autoreloader only looks at the module that was executed (manage.py) but ignores the special settings for sys.path that that module had. -- Ticket URL: <http://code.djangoproject.com/ticket/8085#comment:6> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@... To unsubscribe from this group, send email to django-updates+unsubscribe@... For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |