ivagongar / EGC-1530-ivagongar2

This is a placeholder for the EGC exam at 15:30
GNU Affero General Public License v3.0
0 stars 0 forks source link

(Bug) Error al realizar runserver #1

Open ivagongar opened 5 years ago

ivagongar commented 5 years ago

Al intentar lanzar en local utilizando manage.py runserver surge un error. Se adjunta traza:

Traceback (most recent call last): File "C:\Users\Ivan\Desktop\examen egc\EGC-1530-ivagongar2\decide\manage.py", line 15, in <module> execute_from_command_line(sys.argv) File "C:\Python\lib\site-packages\django\core\management\__init__.py", line 371, in execute_from_command_line utility.execute() File "C:\Python\lib\site-packages\django\core\management\__init__.py", line 365, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Python\lib\site-packages\django\core\management\base.py", line 288, in run_from_argv self.execute(*args, **cmd_options) File "C:\Python\lib\site-packages\django\core\management\base.py", line 332, in execute self.check() File "C:\Python\lib\site-packages\django\core\management\base.py", line 364, in check include_deployment_checks=include_deployment_checks, File "C:\Python\lib\site-packages\django\core\management\commands\migrate.py", line 58, in _run_checks issues.extend(super()._run_checks(**kwargs)) File "C:\Python\lib\site-packages\django\core\management\base.py", line 351, in _run_checks return checks.run_checks(**kwargs) File "C:\Python\lib\site-packages\django\core\checks\registry.py", line 73, in run_checks new_errors = check(app_configs=app_configs) File "C:\Python\lib\site-packages\django\core\checks\urls.py", line 40, in check_url_namespaces_unique all_namespaces = _load_all_namespaces(resolver) File "C:\Python\lib\site-packages\django\core\checks\urls.py", line 57, in _load_all_namespaces url_patterns = getattr(resolver, 'url_patterns', []) File "C:\Python\lib\site-packages\django\utils\functional.py", line 36, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "C:\Python\lib\site-packages\django\urls\resolvers.py", line 536, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "C:\Python\lib\site-packages\django\utils\functional.py", line 36, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "C:\Python\lib\site-packages\django\urls\resolvers.py", line 529, in urlconf_module return import_module(self.urlconf_name) File "C:\Python\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "C:\Users\Ivan\Desktop\examen egc\EGC-1530-ivagongar2\decide\decide\urls.py", line 25, in <module> path('admin/', admin.site.urls), NameError: name 'path' is not defined Finished "C:\Users\Ivan\Desktop\examen egc\EGC-1530-ivagongar2\decide\manage.py migrate" execution.

ivagongar commented 5 years ago

El error está provocado por dos líneas de import que se encontraban comentadas en decide/urls.py from django.contrib import admin from django.urls import path, include