Use pydev in eclipse to debug Django (graphic version)

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.