M Hashmi:
> Reply me back I am waiting. Apologies if my assumption caused your time.
No need to apologize! You are trying to help me. I'm grateful.
In doing my simplified test case, I forgot to add the new app to
INSTALLED_APP. Thanks for the pointer!
But after fixing that, I get an "Internal Server Error" instead, and
the log files contains the traceback below. Some of the time stamps
are in local time (UTC+2) and some are in UTC. I guess that is just
some idiosyncrasy of Apache httpd and mod_wsgi.
The test server, "./manage.py runserver" still works fine.
(I also attach the updated site tree. There is just a small change,
but the entire site is so small so I thought it was ok.)
[Mon Aug 08 12:49:59.214434 2016] [core:notice] [pid 12016] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:SystemLow
[Mon Aug 08 12:49:59.215009 2016] [ssl:info] [pid 12016] AH01887: Init: Initializing (virtual) servers for SSL
[Mon Aug 08 12:49:59.215550 2016] [ssl:info] [pid 12016] AH01876: mod_ssl/2.4.23 compiled against Server: Apache/2.4.23, Library: OpenSSL/1.0.2h
[Mon Aug 08 12:49:59.216226 2016] [suexec:notice] [pid 12016] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Aug 08 12:49:59.252466 2016] [auth_digest:notice] [pid 12016] AH01757: generating secret for digest authentication ...
[Mon Aug 08 12:49:59.252819 2016] [socache_shmcb:info] [pid 12016] AH00830: Shared memory socache initialised
[Mon Aug 08 12:49:59.252826 2016] [ssl:info] [pid 12016] AH01887: Init: Initializing (virtual) servers for SSL
[Mon Aug 08 12:49:59.253247 2016] [ssl:info] [pid 12016] AH01876: mod_ssl/2.4.23 compiled against Server: Apache/2.4.23, Library: OpenSSL/1.0.2h
[Mon Aug 08 12:49:59.253272 2016] [http2:info] [pid 12016] AH03090: mod_http2 (v1.5.11, feats=CHPRIO+SHA256, nghttp2 1.7.1), initializing...
[Mon Aug 08 12:49:59.254005 2016] [lbmethod_heartbeat:notice] [pid 12016] AH02282: No slotmem from mod_heartmonitor
[Mon Aug 08 12:49:59.279641 2016] [wsgi:info] [pid 12021] mod_wsgi (pid=12021): Initializing Python.
[Mon Aug 08 12:49:59.281769 2016] [mpm_prefork:notice] [pid 12016] AH00163: Apache/2.4.23 (Fedora) OpenSSL/1.0.2h-fips PHP/5.6.23 mod_wsgi/4.4.8 Python/3.5.1 configured -- resuming normal operations
[Mon Aug 08 12:49:59.281802 2016] [mpm_prefork:info] [pid 12016] AH00164: Server built: Jul 18 2016 15:38:14
[Mon Aug 08 12:49:59.281815 2016] [core:notice] [pid 12016] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Aug 08 12:49:59.282035 2016] [wsgi:info] [pid 12020] mod_wsgi (pid=12020): Initializing Python.
[Mon Aug 08 12:49:59.284088 2016] [wsgi:info] [pid 12027] mod_wsgi (pid=12027): Initializing Python.
[Mon Aug 08 12:49:59.291791 2016] [wsgi:info] [pid 12022] mod_wsgi (pid=12022): Initializing Python.
[Mon Aug 08 12:49:59.312125 2016] [wsgi:info] [pid 12043] mod_wsgi (pid=12043): Initializing Python.
[Mon Aug 08 12:49:59.317964 2016] [wsgi:info] [pid 12020] mod_wsgi (pid=12020): Attach interpreter ''.
[Mon Aug 08 12:49:59.320378 2016] [wsgi:info] [pid 12027] mod_wsgi (pid=12027): Attach interpreter ''.
[Mon Aug 08 12:49:59.321265 2016] [wsgi:info] [pid 12020] mod_wsgi (pid=12020): Adding '/var/www/dyn' to path.
[Mon Aug 08 12:49:59.323805 2016] [wsgi:info] [pid 12027] mod_wsgi (pid=12027): Adding '/var/www/dyn' to path.
[Mon Aug 08 12:49:59.327720 2016] [wsgi:info] [pid 12022] mod_wsgi (pid=12022): Attach interpreter ''.
[Mon Aug 08 12:49:59.330202 2016] [wsgi:info] [pid 12022] mod_wsgi (pid=12022): Adding '/var/www/dyn' to path.
[Mon Aug 08 12:49:59.331290 2016] [wsgi:info] [pid 12021] mod_wsgi (pid=12021): Attach interpreter ''.
[Mon Aug 08 12:49:59.334499 2016] [wsgi:info] [pid 12021] mod_wsgi (pid=12021): Adding '/var/www/dyn' to path.
[Mon Aug 08 12:49:59.344669 2016] [wsgi:info] [pid 12043] mod_wsgi (pid=12043): Attach interpreter ''.
[Mon Aug 08 12:49:59.347136 2016] [wsgi:info] [pid 12043] mod_wsgi (pid=12043): Adding '/var/www/dyn' to path.
[Mon Aug 08 12:50:09.731008 2016] [wsgi:info] [pid 12020] mod_wsgi (pid=12020): Create interpreter '
www.uddeborg.se|/dyn'.
[Mon Aug 08 12:50:09.740547 2016] [wsgi:info] [pid 12020] mod_wsgi (pid=12020): Adding '/var/www/dyn' to path.
[Mon Aug 08 12:50:09.741401 2016] [wsgi:info] [pid 12020] [client
62.65.125.225:47982] mod_wsgi (pid=12020, process='', application='
www.uddeborg.se|/dyn'): Loading WSGI script '/var/www/dyn/dynsite/wsgi.py'.
[Mon Aug 08 10:50:10.059568 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] mod_wsgi (pid=12020): Target WSGI script '/var/www/dyn/dynsite/wsgi.py' cannot be loaded as Python module.
[Mon Aug 08 10:50:10.059639 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] mod_wsgi (pid=12020): Exception occurred processing WSGI script '/var/www/dyn/dynsite/wsgi.py'.
[Mon Aug 08 10:50:10.060501 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] Traceback (most recent call last):
[Mon Aug 08 10:50:10.060566 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "/var/www/dyn/dynsite/wsgi.py", line 16, in <module>
[Mon Aug 08 10:50:10.060572 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] application = get_wsgi_application()
[Mon Aug 08 10:50:10.060582 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "/usr/lib/python3.5/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
[Mon Aug 08 10:50:10.060587 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] django.setup()
[Mon Aug 08 10:50:10.060597 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "/usr/lib/python3.5/site-packages/django/__init__.py", line 18, in setup
[Mon Aug 08 10:50:10.060602 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] apps.populate(settings.INSTALLED_APPS)
[Mon Aug 08 10:50:10.060611 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "/usr/lib/python3.5/site-packages/django/apps/registry.py", line 85, in populate
[Mon Aug 08 10:50:10.060616 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] app_config = AppConfig.create(entry)
[Mon Aug 08 10:50:10.060625 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "/usr/lib/python3.5/site-packages/django/apps/config.py", line 116, in create
[Mon Aug 08 10:50:10.060630 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] mod = import_module(mod_path)
[Mon Aug 08 10:50:10.060639 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "/usr/lib64/python3.5/importlib/__init__.py", line 126, in import_module
[Mon Aug 08 10:50:10.060644 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] return _bootstrap._gcd_import(name[level:], package, level)
[Mon Aug 08 10:50:10.060653 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "<frozen importlib._bootstrap>", line 986, in _gcd_import
[Mon Aug 08 10:50:10.060662 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "<frozen importlib._bootstrap>", line 969, in _find_and_load
[Mon Aug 08 10:50:10.060672 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "<frozen importlib._bootstrap>", line 944, in _find_and_load_unlocked
[Mon Aug 08 10:50:10.060682 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
[Mon Aug 08 10:50:10.060691 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "<frozen importlib._bootstrap>", line 986, in _gcd_import
[Mon Aug 08 10:50:10.060701 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "<frozen importlib._bootstrap>", line 969, in _find_and_load
[Mon Aug 08 10:50:10.060710 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
[Mon Aug 08 10:50:10.060744 2016] [wsgi:error] [pid 12020] [client
62.65.125.225:47982] ImportError: No module named 'app\xc3\xa5\xc3\xa4\xc3\xb6'