0

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.

Lara
  • 2,170
  • 6
  • 22
  • 43

1 Answers1

2

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:

Community
  • 1
  • 1
LazyOne
  • 158,824
  • 45
  • 388
  • 391