Advertisement
Guest User

log erori django

a guest
Apr 25th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. pi@raspberrypi:~/FII-Student-A4/Back/fii_student $ python3 manage.py runserver 0:8000
  2. Watching for file changes with StatReloader
  3. Performing system checks...
  4.  
  5. Traceback (most recent call last):
  6. File "manage.py", line 15, in <module>
  7. execute_from_command_line(sys.argv)
  8. File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
  9. utility.execute()
  10. File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 375, in execute
  11. self.fetch_command(subcommand).run_from_argv(self.argv)
  12. File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 323, in run_from_argv
  13. self.execute(*args, **cmd_options)
  14. File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/runserver.py", line 60, in execute
  15. super().execute(*args, **options)
  16. File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 364, in execute
  17. output = self.handle(*args, **options)
  18. File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/runserver.py", line 95, in handle
  19. self.run(**options)
  20. File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/runserver.py", line 102, in run
  21. autoreload.run_with_reloader(self.inner_run, **options)
  22. File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 579, in run_with_reloader
  23. start_django(reloader, main_func, *args, **kwargs)
  24. File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 564, in start_django
  25. reloader.run(django_main_thread)
  26. File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 272, in run
  27. get_resolver().urlconf_module
  28. File "/usr/local/lib/python3.5/dist-packages/django/utils/functional.py", line 80, in __get__
  29. res = instance.__dict__[self.name] = self.func(instance)
  30. File "/usr/local/lib/python3.5/dist-packages/django/urls/resolvers.py", line 564, in urlconf_module
  31. Exception in thread Thread-1:
  32. Traceback (most recent call last):
  33. File "/usr/local/lib/python3.5/dist-packages/django/urls/resolvers.py", line 573, in url_patterns
  34. iter(patterns)
  35. TypeError: 'module' object is not iterable
  36.  
  37. During handling of the above exception, another exception occurred:
  38.  
  39. Traceback (most recent call last):
  40. File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
  41. self.run()
  42. File "/usr/lib/python3.5/threading.py", line 862, in run
  43. self._target(*self._args, **self._kwargs)
  44. File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 54, in wrapper
  45. fn(*args, **kwargs)
  46. File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/runserver.py", line 117, in inner_run
  47. self.check(display_num_errors=True)
  48. File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 390, in check
  49. include_deployment_checks=include_deployment_checks,
  50. File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 377, in _run_checks
  51. return checks.run_checks(**kwargs)
  52. File "/usr/local/lib/python3.5/dist-packages/django/core/checks/registry.py", line 72, in run_checks
  53. new_errors = check(app_configs=app_configs)
  54. File "/usr/local/lib/python3.5/dist-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique
  55. all_namespaces = _load_all_namespaces(resolver)
  56. File "/usr/local/lib/python3.5/dist-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces
  57. url_patterns = getattr(resolver, 'url_patterns', [])
  58. File "/usr/local/lib/python3.5/dist-packages/django/utils/functional.py", line 80, in __get__
  59. res = instance.__dict__[self.name] = self.func(instance)
  60. File "/usr/local/lib/python3.5/dist-packages/django/urls/resolvers.py", line 580, in url_patterns
  61. raise ImproperlyConfigured(msg.format(name=self.urlconf_name))
  62. django.core.exceptions.ImproperlyConfigured: The included URLconf 'fii_student.urls' does not appear to have any patterns in it. If you see valid patterns in th e file then the issue is probably caused by a circular import.
  63.  
  64. return import_module(self.urlconf_name)
  65. File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
  66. return _bootstrap._gcd_import(name[level:], package, level)
  67. File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  68. File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  69. File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  70. File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  71. File "<frozen importlib._bootstrap_external>", line 673, in exec_module
  72. File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  73. File "/home/pi/FII-Student-A4/Back/fii_student/fii_student/urls.py", line 20, in <module>
  74. from api.views import *
  75. File "/home/pi/FII-Student-A4/Back/fii_student/api/views.py", line 32, in <module>
  76. class UsersViewSet(viewsets.ModelViewSet):
  77. File "/home/pi/FII-Student-A4/Back/fii_student/api/views.py", line 33, in UsersViewSet
  78. queryset = FiiUser.objects.all()
  79. NameError: name 'FiiUser' is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement