문제

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.

도움이 되었습니까?

해결책

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:

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top