Opened 15 years ago

Last modified 13 years ago

#13512 closed

syncdb fails on application with no models defined — at Initial Version

Reported by: Atr3ides Owned by: nobody
Component: Database layer (models, ORM) Version: 1.2-beta
Severity: 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

Traceback (most recent call last):

File "src/project/manage.py", line 18, in <module>

management.execute_manager(settings)

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/core/management/init.py", line 438, in execute_manager

utility.execute()

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/core/management/init.py", line 379, in execute

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

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/core/management/base.py", line 191, in run_from_argv

self.execute(*args, options.dict)

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/core/management/base.py", line 217, in execute

self.validate()

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/core/management/base.py", line 245, in validate

num_errors = get_validation_errors(s, app)

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/core/management/validation.py", line 28, in get_validation_errors

for (app_name, error) in get_app_errors().items():

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/db/models/loading.py", line 146, in get_app_errors

self._populate()

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/db/models/loading.py", line 61, in _populate

self.load_app(app_name, True)

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/db/models/loading.py", line 78, in load_app

models = import_module('.models', app_name)

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module

import(name)

File "/home/user/projects/project/ve/lib/python2.6/site-packages/piston/models.py", line 28, in <module>

admin.site.register(Nonce)

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/contrib/admin/sites.py", line 90, in register

validate(admin_class, model)

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/contrib/admin/validation.py", line 20, in validate

models.get_apps()

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/db/models/loading.py", line 115, in get_apps

self._populate()

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/db/models/loading.py", line 61, in _populate

self.load_app(app_name, True)

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/db/models/loading.py", line 83, in load_app

if not module_has_submodule(app_module, 'models'):

File "/home/user/projects/project/ve/lib/python2.6/site-packages/django/utils/module_loading.py", line 15, in module_has_submodule

for entry in package.path: # No path, then not a package.

AttributeError: 'module' object has no attribute 'path'

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top