Text transferred from: http://ddkangfu.blog.51cto.com/311989/115876
1. Enable debug Configuration
2. Create a New debug
3. Select the manager. py file.
4. Add runserver-noreload to the arguments tab.
5. Add two variables to the Environment tab:
Django_settings_module: settings
Pythonpath: $ pwd
6. After the configuration is complete, run the new debugging in debug.
Original article:
In order to debug, the preferred way for me, is to do it through the eclipse with pydev configured for Django. to do this, we need a couple more of adjustments in order to get the Django runserver running properly.
We go the main menu and we select the Open Run dialogue... window, there we select on the left Python run and on the main tab to the right we select the project where we are going to make the debugging: /Some/path/to/sources/manage. py.
In the arguments tab we add the program arguments: runserver -- noreload and then we finally select the environment tab where we add the django_settings_module set to value settings and pythonpath set to value $ PWD. click Apply and run.
If you look at the console view, you will see the runserver output which indicates that all is well:
Validating models...
0 errors found
Django version 0.97-Pre-svn-unknown, using settings 'txm. settings'
Development server is running at [url] http: // 127.0.0.1: 8000/[/url]
Quit the server with CONTROL-C.