Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
http://luc.lino-framework.org/blog/2018/0524.html
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaffre committed May 24, 2018
1 parent 34bbcfb commit a15e892
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/dev/builddocs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ Indeed you can verify that importing this module in a normal Python
session will fail:

>>> import lino_book.projects.team.tests.test_notify
django.core.exceptions.ImproperlyConfigured: Requested setting SITE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Traceback (most recent call last):
...
ImproperlyConfigured: Requested setting SITE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.


As the error message tries to explain, the module refuses to import
because :envvar:`DJANGO_SETTINGS_MODULE` is not set. That's related
Expand Down Expand Up @@ -103,7 +106,7 @@ Let's try this::
And in *that* Python shell you try to import the module which Sphinx
was not able to import::

>>> import lino_book.projects.team.tests.test_notify
import lino_book.projects.team.tests.test_notify

What happens now?

Expand Down

0 comments on commit a15e892

Please sign in to comment.