Issue #6 resolved

Missing import in django_wsgiserver/management/commands/runwsgiserver.py

Anonymous created an issue

django.contrib.admin must be imported from there, not rely on other modules having imported it previously, else we get:

{{{

!python

Traceback (most recent call last): File "django-manage.py", line 6, in <module> execute_from_command_line() File "/usr/local/lib/python2.6/site-packages/django/core/management/init.py", line 353, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.6/site-packages/django/core/management/init.py", line 303, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.6/site-packages/django/core/management/base.py", line 195, in run_from_argv self.execute(*args, options.__dict__) File "/usr/local/lib/python2.6/site-packages/django/core/management/base.py", line 222, in execute output = self.handle(*args, options) File "/usr/local/lib/python2.6/site-packages/django_wsgiserver/management/commands/runwsgiserver.py", line 88, in handle runwsgiserver(args) File "/usr/local/lib/python2.6/site-packages/django_wsgiserver/management/commands/runwsgiserver.py", line 303, in runwsgiserver start_server_servestatic(options) File "/usr/local/lib/python2.6/site-packages/django_wsgiserver/management/commands/runwsgiserver.py", line 241, in start_server_servestatic os.path.join( django.contrib.admin.path[0], AttributeError: 'module' object has no attribute 'contrib'

}}}

Comments (1)

  1. Log in to comment