Estoy queriendo hacer funcionar este proyecto
https://github.com/createdbyfahad/django-react-example
en el que uno de los pasos (en el tercer paso) me sale error:
How to run After cloning the repo, do the following to setup the app: 1- from the backend folder, execute those lines:
source env/bin/activate
pip install -r requirements.txt
python manage.py createsuperuser (en este)
python manage.py runserver
obtengo este error
python manage.py createsuperuser File "manage.py", line 14 ) from exc ^ SyntaxError: invalid syntax
por que obtengo este error?
este es el archivo manage.py
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)