Code

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#18069 closed Bug (needsinfo)

manage.py reset app

Reported by: strelnikov Owned by: nobody
Component: Core (Management commands) Version: 1.4
Severity: Release blocker Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

python manage.py reset app

Traceback (most recent call last):

File "manage.py", line 10, in <module>

execute_from_command_line(sys.argv)

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/init.py", line 442, in execute_from_command_line

utility.execute()

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/init.py", line 381, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/init.py", line 261, in fetch_command

klass = load_command_class(app_name, subcommand)

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/init.py", line 69, in load_command_class

module = import_module('%s.management.commands.%s' % (app_name, name))

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module

import(name)

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/commands/reset.py", line 5, in <module>

from django.core.management.sql import sql_reset

ImportError: cannot import name sql_reset

Attachments (0)

Change History (2)

comment:1 Changed 2 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to needsinfo
  • Status changed from new to closed

How have you installed Django? I suspect you ran setup.py install from a svn checkout, before and after r17842. That isn't a valid method of installing Django, as explained in the installation instructions, and that would explain the problem you're seeing.

comment:2 Changed 2 years ago by anonymous

ufff, a lot of changes, thank you a lot, Augustin, for explanation, I will go through the release notice more careful next time

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.