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 8169393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:50:10+00:00 2026-06-06T20:50:10+00:00

I’m trying to work out how to run the debug stuff that pycharm seems

  • 0

I’m trying to work out how to run the debug stuff that pycharm seems to offer (well, it allows me to set breakpoints, anyway, so i’m assuming there’s a nice gui for it)

I’ve concluded that i cannot use the ctrl-shift-r and then “runserver” command, and that instead i’d need to setup a “run configuration”? I made a “django server” one, but i don’t know what values to put etc. When i run it, it tells me that some setting is wrong – i’m pretty sure it isn’t, because the standard “runserver” command works fine.

And that’s about all i concluded. If there is a nifty tutorial or steps to get it so i can

  1. put in a break point
  2. go to the page that triggers that breakpoint and follow the code’s inner working in pycharm

i’d be thrilled!

cheers!

UPDATE: in case you’re wondering, here is the error i got:

Traceback (most recent call last):

File “manage.py”, line 11, in
import settings

File “C:\development\PycharmProjects\dumpstown\settings.py”, line 185, in
add_to_builtins(‘gravatar.templatetags.gravatar’)

File “C:\development\python\lib\site-packages\django\template\base.py”, line 1017, in add_to_builtins

builtins.append(import_library(module))

File “C:\development\python\lib\site-packages\django\template\base.py”, line 963, in import_library

raise InvalidTemplateLibrary(“ImportError raised loading %s: %s” % (taglib_module, e))

django.template.base.InvalidTemplateLibrary: ImportError raised loading gravatar.templatetags.gravatar: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

Where the application itself, on a “runserver” never has any issues.

UPDATE: as per my answer below, pycharm is broken for add_to_builtins.

  • 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-06-06T20:50:12+00:00Added an answer on June 6, 2026 at 8:50 pm

    So i gave all the answers here a +1 for trying – but they’re not the issue. Near as i can tell, the answer is that pycharm is broken. Which is a pain, but the solution is easy –

    IF you dont’ want to use the little green button at the top of pycharm, or use the pycharm debugging feature? then don’t worry, you don’t need to do anything. Continue using ctrl-shift-r and runserver (or whatever your shortcut to manage.py is)

    IF you do want to use the little green “run” button, or if you want to use pycharm’s debugging kit, then you absolutely cannot use the “add_to_builtins”, at least in the settings.py file (I never put it anywhere else myself, pycharm might require it elsewhere?). add_to_builtins doesn’t work in pycharm – it gets itself caught in a loop of grave consequences when you use the little green button or the debug button. Using ctrl-shift-r and runserver doesn’t, curiously, have this problem.

    The good news is that “add_to_builtins” isn’t a must-have, just a nice-to-have. Just add the “{% load x %}” command to each template where you use x and you will be set.
    Alternatively, save a hundred bucks and use some sort of free eclipse tool.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:

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.