Django and pydoc - ImproperlyConfigured

19 views
Skip to first unread message

Gergely Polonkai

unread,
Feb 25, 2015, 2:54:12 AM2/25/15
to django...@googlegroups.com

Hello,

I'm trying to document my own webpage's code so I will remember each piece if I have to touch it later. I added docstrings to several functions already, and while this is generally enough, I couldn't help but tried pydoc blog.models.Post

What I got instead of the craved documents was an ImuroperlyConfigured exception. I found some clues that defining a settings module via the DJANGO_SETTINGS_MODULE  environment variable would help (and it does), but it just doesn't sound right to me. Isn't there an easier solution? (Note that I don't count putting this env variable to the virtualenv's activate scripts as an easier method :)

Best,
Gergely

Reply all
Reply to author
Forward
0 new messages