title: how do i debug/breakpoint my django app using pycharm?
body: <p>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)</p>
  
  <p>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.</p>
  
  <p>And that's about all i concluded. If there is a nifty tutorial or steps to get it so i can </p>
  
  <ol>
  <li>put in a break point</li>
  <li>go to the page that triggers that breakpoint and follow the  code's inner working in pycharm</li>
  </ol>
  
  <p>i'd be thrilled!</p>
  
  <p>cheers!</p>
  
  <p>UPDATE: in case you're wondering, here is the error i got:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):</p>
    
    <p>File "manage.py", line 11, in 
        import settings</p>
    
    <p>File "C:\development\PycharmProjects\dumpstown\settings.py", line 185, in 
        add_to_builtins('gravatar.templatetags.gravatar')</p>
    
    <p>File "C:\development\python\lib\site-packages\django\template\base.py", line 1017, in add_to_builtins</p>
    
    <p>builtins.append(import_library(module))</p>
    
    <p>File "C:\development\python\lib\site-packages\django\template\base.py", line 963, in import_library</p>
    
    <p>raise InvalidTemplateLibrary("ImportError raised loading %s: %s" % (taglib_module, e))</p>
    
    <p>django.template.base.InvalidTemplateLibrary: ImportError raised loading gravatar.templatetags.gravatar: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.</p>
  </blockquote>
  
  <p>Where the application itself, on a "runserver" never has any issues.</p>
  
  <p>UPDATE: as per my answer below, pycharm is broken for add_to_builtins.</p>