# Django Tutorial Errors

**URL:** <https://forum.djangoproject.com/t/django-tutorial-errors/29671>\
**Category:** Getting Started\
**Created:** [March 31, 2024, 5:42pm UTC](https://forum.djangoproject.com/t/django-tutorial-errors/29671 "2024-03-31T17:42:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamBickford711](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/adambickford711/32/20270_2.png) [@AdamBickford711](https://forum.djangoproject.com/u/AdamBickford711)\
**Post date:** [March 31, 2024, 5:42pm UTC](https://forum.djangoproject.com/t/django-tutorial-errors/29671/1 "2024-03-31T17:42:35Z")

</div>

I’m working through the Django tutorial and am experiencing a bizarre blowup.  
I have gotten to the “Write your first view” section. I updated the views.py and the urls.py files according to the example. When I run the command:  
$ python manage.py runserver, this happens:

```auto
python manage.py runserver
 Watching for file changes with StatReloader
 Performing system checks...
 
 Exception in thread django-main-thread:
 Traceback (most recent call last):
   File "C:\Users\adamb\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1073, in _bootstrap_inner
     self.run()
   File "C:\Users\adamb\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1010, in run
     self._target(*self._args, **self._kwargs)
   File "C:\Users\adamb\OneDrive\Documents\Django\d_workspace\Lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
     fn(*args, **kwargs)
   File "C:\Users\adamb\OneDrive\Documents\Django\d_workspace\Lib\site-packages\django\core\management\commands\runserver.py", line 133, in inner_run
     self.check(display_num_errors=True)
   File "C:\Users\adamb\OneDrive\Documents\Django\d_workspace\Lib\site-packages\django\core\management\base.py", line 486, in check
     all_issues = checks.run_checks(
                  ^^^^^^^^^^^^^^^^^^
   File "C:\Users\adamb\OneDrive\Documents\Django\d_workspace\Lib\site-packages\django\core\checks\registry.py", line 88, in run_checks
     new_errors = check(app_configs=app_configs, databases=databases)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "C:\Users\adamb\OneDrive\Documents\Django\d_workspace\Lib\site-packages\django\core\checks\urls.py", line 14, in check_url_config
     return check_resolver(resolver)
            ^^^^^^^^^^^^^^^^^^^^^^^^
   File "C:\Users\adamb\OneDrive\Documents\Django\d_workspace\Lib\site-packages\django\core\checks\urls.py", line 24, in check_resolver
     return check_method()
            ^^^^^^^^^^^^^^
   File "C:\Users\adamb\OneDrive\Documents\Django\d_workspace\Lib\site-packages\django\urls\resolvers.py", line 519, in check
     for pattern in self.url_patterns:
                    ^^^^^^^^^^^^^^^^^
   File "C:\Users\adamb\OneDrive\Documents\Django\d_workspace\Lib\site-packages\django\utils\functional.py", line 47, in __get__
     res = instance. __dict__ [self.name] = self.func(instance)
                                          ^^^^^^^^^^^^^^^^^^^
   File "C:\Users\adamb\OneDrive\Documents\Django\d_workspace\Lib\site-packages\django\urls\resolvers.py", line 738, in url_patterns
     patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
                        ^^^^^^^^^^^^^^^^^^^
   File "C:\Users\adamb\OneDrive\Documents\Django\d_workspace\Lib\site-packages\django\utils\functional.py", line 47, in __get__
     res = instance. __dict__ [self.name] = self.func(instance)
                                          ^^^^^^^^^^^^^^^^^^^
   File "C:\Users\adamb\OneDrive\Documents\Django\d_workspace\Lib\site-packages\django\urls\resolvers.py", line 731, in urlconf_module
     return import_module(self.urlconf_name)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "C:\Users\adamb\AppData\Local\Programs\Python\Python312\Lib\importlib\ __init__.py", line 90, in import_module
     return _bootstrap._gcd_import(name[level:], package, level)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
   File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
   File "<frozen importlib._bootstrap_external>", line 991, in exec_module
   File "<frozen importlib._bootstrap_external>", line 1129, in get_code
   File "<frozen importlib._bootstrap_external>", line 1059, in source_to_code
   File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
   File "C:\Users\adamb\OneDrive\Documents\Django\d_workspace\tutsite\tutsite\urls.py", line 1
     """
     ^^^
 SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 43-44: truncated \UXXXXXXXX escape

```

What is going on? Is this a configuration issue?  
TIA

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [March 31, 2024, 6:28pm UTC](https://forum.djangoproject.com/t/django-tutorial-errors/29671/2 "2024-03-31T18:28:32Z")

</div>

Most likely, this error is cause by you having “smart quotes” in your source code.

Please copy/paste your tutsite\urls.py file into your next post, surrounded between lines of three backtick - ` characters. This means you’ll have a line of ```, then the code from the file, then another line of ```.

When posting code (or error messages here) that is how you should post it, not using blocktext. (I’ve taken the liberty of fixing your original post for you.)
