name='index'
You had errors because you missed the = symbol

On Mar 19, 2020 2:13 PM, "Eddie Nash" <[email protected]> wrote:

> I am going through the tutorial yet when I check to see if it is working,
> I get this error code. Please help me fix this!
>
>
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py",
> line 932, in _bootstra
> p_inner
>     self.run()
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py",
> line 870, in run
>     self._target(*self._args, **self._kwargs)
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/site-packages/django/utils/autoreload
> .py", line 53, in wrapper
>     fn(*args, **kwargs)
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/site-packages/django/core/management/
> commands/runserver.py", line 117, in inner_run
>
>     self.check(display_num_errors=True)
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/site-packages/django/core/management/
> base.py", line 392, in check
>     all_issues = self._run_checks(
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/site-packages/django/core/management/
> base.py", line 382, in _run_checks
>     return checks.run_checks(**kwargs)
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/site-packages/django/core/checks/regi
> stry.py", line 72, in run_checks
>     new_errors = check(app_configs=app_configs)
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/site-packages/django/core/checks/urls
> .py", line 40, in check_url_namespaces_unique
>     all_namespaces = _load_all_namespaces(resolver)
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/site-packages/django/core/checks/urls
> .py", line 57, in _load_all_namespaces
>     url_patterns = getattr(resolver, 'url_patterns', [])
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/site-packages/django/utils/functional
> .py", line 48, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/site-packages/django/urls/resolvers.p
> y", line 588, in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns",
> self.urlconf_module)
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/site-packages/django/utils/functional
> .py", line 48, in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/site-packages/django/urls/resolvers.p
> y", line 581, in urlconf_module
>     return import_module(self.urlconf_name)
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/importlib/__init__.py", line 127, in
> import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>
>   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 975, in
> _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 783, in exec_module
>   File "<frozen importlib._bootstrap>", line 219, in
> _call_with_frames_removed
>   File "/Users/michellenash/Desktop/Eddie/github/mysite/mysite/urls.py",
> line 20, in <module>
>     path('polls/', include('polls.urls')),
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/site-packages/django/urls/conf.py", l
> ine 34, in include
>     urlconf_module = import_module(urlconf_module)
>   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/
> python3.8/importlib/__init__.py", line 127, in
> import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 975, in
> _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 779, in exec_module
>   File "<frozen importlib._bootstrap_external>", line 916, in get_code
>   File "<frozen importlib._bootstrap_external>", line 846, in
> source_to_code
>   File "<frozen importlib._bootstrap>", line 219, in
> _call_with_frames_removed
>   File "/Users/michellenash/Desktop/Eddie/github/mysite/polls/urls.py",
> line 6
>     path('', views.index, name'index')
>                               ^
> SyntaxError: invalid syntax
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/fcf08b9d-587f-4fab-a79c-b0325845b036%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/fcf08b9d-587f-4fab-a79c-b0325845b036%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKpwL2L%3Dkvu1oocZ_qvZKPF%2BbTD%2BshWuSphVppaqdynz2qAbaQ%40mail.gmail.com.

Reply via email to