Django syntax error: unexpected token `('

I’ve installed Django and moved django-admin to usr/local/bin as suggested on the setup page. When I run

django-admin.py startproject myproject  

It says django-admin permission denied. Django setup page suggests:

sudo chmod +x django-admin 

This removes the permission error but introduces the following:

django-admin.py startproject myproject  from: can't read /var/mail/django.utils.version /usr/local/bin/django-admin.py: line 3: syntax error near unexpected token `(' /usr/local/bin/django-admin.py: line 3: `VERSION = (3, 0, 8, 'final', 0)' 

Any idea how to resolve the error? I am using a Mac. Django version 3.0.8. and Python3. Thanks!

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.