Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7447827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:53:42+00:00 2026-05-29T12:53:42+00:00

I am trying to debug my Django project via Eclipse. The app works fine

  • 0

I am trying to debug my Django project via Eclipse. The app works fine when I type the url into the browser after starting the server via the command prompt. Now I want to debug it.

I have done the following: I have set up a debug/run configuration: In the configuration’s Main tab it points to the project and to views.py. In the arguments tab I have Program arguments: runserver –noreload. (I write debug/run configuration because it seems to go to the same configuration, whether I do “Debug as” or “Run as”.)

I have added a breakpoint to my code.

I am confused about whether I should first start the server via the command prompt; I have therefore tried both ways. And I am confused about whether I should do “Run as” or “Debug as” from Eclipse. I have therefore tried all combis:

combi 1:
Run server via command prompt. Click on my project (or module- tried both) and then select “Run as/Run Configuration”. Select my new configuration and run. Result: the console title bar reads: –noreload. If I now type the url into the browser, it works fine, not stopping at the breakpoint.

combi 2:
Run server via command prompt. Click on my project (or module- tried both) and then select “Debug as/Debug Configuration”. Select my new configuration and run. Result: the console title bar reads: views.py. In the console it reads “pydev debugger: starting” If I now type the url into the browser, it works fine, not stopping at the breakpoint.

combi 3/4:
Server is not running from the command prompt. Same result as 1 and 2, except that the browser cannot connect to localhost.

I read a tutorial that said to have DJANGO_SETTINGS_MODULE set to value settings and PYTHONPATH set to value $PWD. When I do this I get an error that it can’t find my settings file. I therefore left these out, also because I saw another tutorial where they were not set at all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T12:53:54+00:00Added an answer on May 29, 2026 at 12:53 pm

    It turned out to be a dumb error: In debug configuration, I had Main Module pointing to views.py instead of to manage.py. Changing it fixed the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to run tests on django with coverage . It works fine,
I'm trying to debug a deadlock in a multi-threaded Python application after it has
I'm trying to configure logging for a Django app using the Python logging module.
I am trying to get a Django app running on Apache with mod_wsgi. I
I'm trying to debug an app running inside the windows phone 7 emulator, but
I am trying to debug a libusb-based driver that work just fine on Linux
When trying to debug an MVC2 app in VS2010 using IE 8, I sometimes
I'm trying to use django-localeurl in one of my project, but following the docs
I'm trying to get django cms' plugin context processors for my hooked app. I
I keep hitting an error when trying to use django-debug-toolbar and django-cms together. MpttMeta

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.