Pergunta

Look at this image:

PyCharm

I think is missing some setup config, because when I try to create my models.py happens this. The code is not recognized and the file is not like py files...

Any idea about what I'm doing wrong?

Note: Is not a file type problem, because the another files code is recognized and the file icon is of python.

Foi útil?

Solução

Note: Is not a file type problem, because the another files code is recognized and the file icon is of python.

You are wrong -- it is File Types problem.

  1. Preferences | File Types
  2. Text Files in upper list
  3. Find and remove unwanted pattern in lower list -- I expect this to be models.py or quite similar

A bit more / simialr SO questions:

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top