Django: Getting Started Transcripts
Chapter: Posting Data
Lecture: Configuring PyCharm with Django's dev server
Login or purchase this course to watch this video and the rest of the course contents.
0:00 The next step will be to run the Django development server and then visit the admin area. But before I do that I want to take you on a little aside.
0:09 Up until now I've run the Django server in either a terminal window or in PyCharms terminal area.
0:16 This option is always available to you and if you're not using PyCharm, you're able to continue to do that. Most ids have debugging tools built in.
0:25 If you're familiar with PyCharm, you'll notice I never hit the play button to run my code.
0:30 That's because the code isn't directly in Django but through the development server.
0:36 There's a way though to tell PyCharm to run the dev server when you hit the play button Not only is this convenient,
0:41 but it also means you can take advantage of the debugging tools. It just requires a bit of setup. In the top right corner here click add configuration
0:50 add new, choose Python, name your configuration and then in the script area, choose your management.py file from the project.
1:12 In the parameter section, add run server as your management command,
1:18 double check that your virtual environment is pointing to the right place and then click OK
1:22 Essentially what I've done here is configure PyCharm to do the same thing I would have done in the terminal by hand.
1:30 Run the management py command with run server as an argument. Now I can hit the run button and the server will run.
1:41 If you're not using PyCharm, do a little googling to see if your ID does something similar or if you prefer the old school,
1:47 keep using a terminal. Whatever works best for you. Now that I've run this, I can head off to the browser to use the Django admin area to add a review.