Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up a Django project in PyCharm

I'm new in this area so I have a question. Recently, I started working with Python and Django. I installed PyCharm Community edition as my IDE, but I'm unable to create a Django project.

I looked for some tutorials, and there is an option to select "project type", but in the latest version this option is missing. Can someone tell me how to do this?

like image 864
user3676356 Avatar asked May 26 '14 12:05

user3676356


People also ask

How do I enable Django in PyCharm?

To enable Django support, follow these steps: Open the project Settings/Preferences dialog ( Ctrl+Alt+S ) and navigate to the Languages & Frameworks | Django page. Make sure that the checkbox Enable Django support is selected. Apply changes (if any) and close the dialog.

Is PyCharm good for Django?

One of the features of PyCharm is that it includes a support for Django. With the ability of including JavaScript features within PyCharm, it can be considered as the best IDE for Django.

Can we create Django project in PyCharm Community Edition?

Setting up Django with PyCharmLaunch your PyCharm Community Edition and open your newly created Django project folder. To do this, click on File, then Open, and select 'pycharmtut'. This will import the folder and its contents into the Project sidebar.

Do I have to install Django for every project in PyCharm?

If you are using virtual environment for every new project then you need to install django each time. Other wise you can use single virtual environment for all the project.


1 Answers

You can simply go to:

In Run -> Edit Configurations create new configuration Script: path_to/manage.py Script parameters: runserver 
like image 173
Shantanu Avatar answered Oct 02 '22 16:10

Shantanu