Petrus Theron
Petrus Theron

Reputation: 28856

Specify dev_appserver.py arguments in PyCharm

I need to override the Automatic ID Allocation Policy for my Google AppEngine app by running the following:

dev_appserver.py --auto_id_policy=sequential

How do I specify App Engine arguments from the PyCharm IDE, or which file should I edit?

Upvotes: 4

Views: 794

Answers (1)

Paul Collingwood
Paul Collingwood

Reputation: 9116

You need to go to the run/debug configurations and add your options to the "additional options" box. Then those additional options will be used when the devserver is executed.

A quick way to get to this is to click the button next to the "run" button on the menu bar - that button should also display the name of your application. Click on it then click "edit configurations" and you should see the screen below.

enter image description here

Here the -c option (IIRC) clears the datastore each time the devserver is run.

Upvotes: 4

Related Questions