1

I've been working on a Django project, I'm using Pycharm as my IDE, the problem is that , firstly I don't have a CSS file type in the new file section, also I don't have autocomplete for bootstrap so I have to write everything manually which really is a pain in the ass. Any help would be much appreciated. I'm using Pycharm community edition 2017 and i'm on Ubuntu 16.0.4.

  • Is this what u r looking for https://stackoverflow.com/questions/4906246/pycharm-python-ide-doesnt-auto-complete-django-modules – Paandittya Feb 26 '18 at 20:48
  • No, I don't have problem in Pycharm auto-completing django modules, my only problem is with bootstrap – Stoufa Gheribi Feb 26 '18 at 22:05
  • 1
    Community Edition does not support CSS or web development in general. See [editions comparison](https://www.jetbrains.com/pycharm/features/editions_comparison_matrix.html). – rafalmp Feb 27 '18 at 00:19

2 Answers2

3

You need Pycharm professional version.

  1. If you create a new Boostrap project everything works fine. But if you have a Django or pure python project then follow 2nd option

  2. download bootstrap from https://getbootstrap.com/docs/5.3/getting-started/download/ and extract it in your parent project directory.

In settings/Project Structure make sure this bootstrap folder is not in excluded category.

Then you will see all Autofills.

BLimitless
  • 2,060
  • 5
  • 17
  • 32
Aseem
  • 5,848
  • 7
  • 45
  • 69
  • How do I configure bootstrap with Django after downloading? And where to place the bootstrap folder? – Ali Sajjad Apr 10 '21 at 10:55
  • Put bootstrap folder in your Django parent project directory. Then follow steps mentioned in the answer above. – Aseem Apr 13 '21 at 05:02
0

Pycharm community edition does not support CSS files. I suggest you use Sublime Text 3 which in my opinion takes care of every need you have in CSS. Plus, it has a lot of plugins which will help you to customize your experience.

Ramtin
  • 3,058
  • 1
  • 22
  • 24