# I'm new to python and Django - syntax error help please

**URL:** <https://forum.codewithmosh.com/t/im-new-to-python-and-django-syntax-error-help-please/6257>\
**Category:** Django\
**Created:** [July 21, 2021, 8:21am UTC](https://forum.codewithmosh.com/t/im-new-to-python-and-django-syntax-error-help-please/6257 "2021-07-21T08:21:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewkaczka](https://avatars.discourse-cdn.com/v4/letter/e/51bf81/32.png) [@ewkaczka](https://forum.codewithmosh.com/u/ewkaczka)\
**Post date:** [July 21, 2021, 8:21am UTC](https://forum.codewithmosh.com/t/im-new-to-python-and-django-syntax-error-help-please/6257/1 "2021-07-21T08:21:09Z")

</div>

I just started the new Django Pt1 course and still trying to set everything up, typed in everything as Mosh said to the terminal (i.e. like so: python manage.py startapp playground) to create a new app but I’m getting an invalid syntax error saying: File “manage.py”, line 17  
) from exc  
^  
I didn’t do anything to the manage.py file so I have no idea what is happening? Heeeelp! Thank you.

---

<div class="post-metadata">

**Author:** ![ewkaczka](https://avatars.discourse-cdn.com/v4/letter/e/51bf81/32.png) [@ewkaczka](https://forum.codewithmosh.com/u/ewkaczka)\
**Post date:** [July 21, 2021, 8:25am UTC](https://forum.codewithmosh.com/t/im-new-to-python-and-django-syntax-error-help-please/6257/2 "2021-07-21T08:25:27Z")

</div>

I may have found the problem : Import “django.core.management” could not be resolved from sourcePylance[reportMissingModuleSource](https://github.com/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md#diagnostic-severity-rules)  
but I don’t know how to solve this problem…

---

<div class="post-metadata">

**Author:** ![Ale](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Ale](https://forum.codewithmosh.com/u/Ale)\
**Post date:** [July 21, 2021, 1:40pm UTC](https://forum.codewithmosh.com/t/im-new-to-python-and-django-syntax-error-help-please/6257/3 "2021-07-21T13:40:40Z")

</div>

did u install django globally or on a virtual environment? if so did u activate the virtual environment?

---

<div class="post-metadata">

**Author:** ![ewkaczka](https://avatars.discourse-cdn.com/v4/letter/e/51bf81/32.png) [@ewkaczka](https://forum.codewithmosh.com/u/ewkaczka)\
**Post date:** [July 21, 2021, 3:32pm UTC](https://forum.codewithmosh.com/t/im-new-to-python-and-django-syntax-error-help-please/6257/4 "2021-07-21T15:32:37Z")

</div>

Virtual. I have done this: storefront % pipenv shell

Shell for **/Users/ewa/.local/share/virtualenvs/storefront-I5Re\_dFz**  **already activated.**

So, I don’t understand what I’ve done wrong?

---

<div class="post-metadata">

**Author:** ![ewkaczka](https://avatars.discourse-cdn.com/v4/letter/e/51bf81/32.png) [@ewkaczka](https://forum.codewithmosh.com/u/ewkaczka)\
**Post date:** [July 21, 2021, 3:33pm UTC](https://forum.codewithmosh.com/t/im-new-to-python-and-django-syntax-error-help-please/6257/5 "2021-07-21T15:33:09Z")

</div>

And, thank you for your reply 🙂

---

<div class="post-metadata">

**Author:** ![Ale](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Ale](https://forum.codewithmosh.com/u/Ale)\
**Post date:** [July 21, 2021, 5:08pm UTC](https://forum.codewithmosh.com/t/im-new-to-python-and-django-syntax-error-help-please/6257/6 "2021-07-21T17:08:18Z")

</div>

well if your on windows I actually use the cmd because I cant manage to run commands through the vs code terminal but I dont know what could it be

---

<div class="post-metadata">

**Author:** ![oskccy](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@oskccy](https://forum.codewithmosh.com/u/oskccy)\
**Post date:** [November 30, 2022, 1:44am UTC](https://forum.codewithmosh.com/t/im-new-to-python-and-django-syntax-error-help-please/6257/7 "2022-11-30T01:44:49Z")

</div>

It’s because you are running: python manage.py start app x, not python3 manage.py start app x. That’s what has worked for myself, changing the “python” syntax to your newest version of Python, in this case you’d type in “python3”.
