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

runserver command doesn't start with django 2.0.2 #41

Closed
gh640 opened this issue Feb 28, 2018 · 2 comments
Closed

runserver command doesn't start with django 2.0.2 #41

gh640 opened this issue Feb 28, 2018 · 2 comments

Comments

@gh640
Copy link
Contributor

gh640 commented Feb 28, 2018

After installing this package, runserver commands raises the following error related with MIDDLEWARE_CLASSES.

python manage.py runserver
Traceback (most recent call last):
  File "site/manage.py", line 15, in <module>
    execute_from_command_line(sys.argv)
  File "/(the path)/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
    utility.execute()
  File "/(the path)/lib/python3.6/site-packages/django/core/management/__init__.py", line 365, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/(the path)/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/(the path)/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 62, in execute
    super().execute(*args, **options)
  File "/(the path)/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute
    output = self.handle(*args, **options)
  File "/(the path)/lib/python3.6/site-packages/django_pdb/management/commands/runserver.py", line 61, in handle
    middleware = settings.MIDDLEWARE_CLASSES
  File "/(the path)/lib/python3.6/site-packages/django/conf/__init__.py", line 57, in __getattr__
    val = getattr(self._wrapped, name)
AttributeError: 'Settings' object has no attribute 'MIDDLEWARE_CLASSES'

My environment is:

  • Python 3.6.4
  • Django 2.0.2

This may be related to #40. Thank you in advance.

gh640 added a commit to gh640/django-pdb that referenced this issue Feb 28, 2018
HassenPy added a commit that referenced this issue Mar 1, 2018
…_error

Issue #41: Fix MIDDLEWARE_CLASSES error with `runserver`
@HassenPy
Copy link
Owner

HassenPy commented Mar 1, 2018

Hey @gh640, merged your PR, don't hesitate to report any other issues, thanks!

@HassenPy HassenPy closed this as completed Mar 1, 2018
@gh640
Copy link
Contributor Author

gh640 commented Mar 2, 2018

Thanks!

HassenPy added a commit that referenced this issue May 4, 2018
…_error

Issue #41: Fix MIDDLEWARE_CLASSES error with `runserver`
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

No branches or pull requests

2 participants