Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi:~/FII-Student-A4/Back/fii_student $ python3 manage.py runserver 0:8000
- Watching for file changes with StatReloader
- Performing system checks...
- Traceback (most recent call last):
- File "manage.py", line 15, in <module>
- execute_from_command_line(sys.argv)
- File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
- utility.execute()
- File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 375, in execute
- self.fetch_command(subcommand).run_from_argv(self.argv)
- File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 323, in run_from_argv
- self.execute(*args, **cmd_options)
- File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/runserver.py", line 60, in execute
- super().execute(*args, **options)
- File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 364, in execute
- output = self.handle(*args, **options)
- File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/runserver.py", line 95, in handle
- self.run(**options)
- File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/runserver.py", line 102, in run
- autoreload.run_with_reloader(self.inner_run, **options)
- File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 579, in run_with_reloader
- start_django(reloader, main_func, *args, **kwargs)
- File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 564, in start_django
- reloader.run(django_main_thread)
- File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 272, in run
- get_resolver().urlconf_module
- File "/usr/local/lib/python3.5/dist-packages/django/utils/functional.py", line 80, in __get__
- res = instance.__dict__[self.name] = self.func(instance)
- File "/usr/local/lib/python3.5/dist-packages/django/urls/resolvers.py", line 564, in urlconf_module
- Exception in thread Thread-1:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.5/dist-packages/django/urls/resolvers.py", line 573, in url_patterns
- iter(patterns)
- TypeError: 'module' object is not iterable
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
- self.run()
- File "/usr/lib/python3.5/threading.py", line 862, in run
- self._target(*self._args, **self._kwargs)
- File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 54, in wrapper
- fn(*args, **kwargs)
- File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/runserver.py", line 117, in inner_run
- self.check(display_num_errors=True)
- File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 390, in check
- include_deployment_checks=include_deployment_checks,
- File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 377, in _run_checks
- return checks.run_checks(**kwargs)
- File "/usr/local/lib/python3.5/dist-packages/django/core/checks/registry.py", line 72, in run_checks
- new_errors = check(app_configs=app_configs)
- File "/usr/local/lib/python3.5/dist-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique
- all_namespaces = _load_all_namespaces(resolver)
- File "/usr/local/lib/python3.5/dist-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces
- url_patterns = getattr(resolver, 'url_patterns', [])
- File "/usr/local/lib/python3.5/dist-packages/django/utils/functional.py", line 80, in __get__
- res = instance.__dict__[self.name] = self.func(instance)
- File "/usr/local/lib/python3.5/dist-packages/django/urls/resolvers.py", line 580, in url_patterns
- raise ImproperlyConfigured(msg.format(name=self.urlconf_name))
- 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.
- return import_module(self.urlconf_name)
- File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
- return _bootstrap._gcd_import(name[level:], package, level)
- File "<frozen importlib._bootstrap>", line 986, in _gcd_import
- File "<frozen importlib._bootstrap>", line 969, in _find_and_load
- File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
- File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
- File "<frozen importlib._bootstrap_external>", line 673, in exec_module
- File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
- File "/home/pi/FII-Student-A4/Back/fii_student/fii_student/urls.py", line 20, in <module>
- from api.views import *
- File "/home/pi/FII-Student-A4/Back/fii_student/api/views.py", line 32, in <module>
- class UsersViewSet(viewsets.ModelViewSet):
- File "/home/pi/FII-Student-A4/Back/fii_student/api/views.py", line 33, in UsersViewSet
- queryset = FiiUser.objects.all()
- NameError: name 'FiiUser' is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement