Ich habe den ganzen Tag damit verbracht. Ich konnte meine statischen Dateien nicht erhalten. Meine Django-Anwendung funktioniert gut. Ich benutze: Python 3.4, Django 1.8.13, mod_wsgi 4.5.2. Ich habe die meisten Fehler in meiner httpd.conf mit anderen Fragen in SO gelöst. Was braucht man mehr, um das zu schaffen?Statische Dateien nicht über Apache für Django Anwendung
httpd.conf
ServerRoot "/home/rajkumar2014/webapps/allure/apache2"
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule wsgi_module modules/mod_wsgi.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule alias_module modules/mod_alias.so
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog /home/rajkumar2014/logs/user/access_allure.log combined
ErrorLog /home/rajkumar2014/logs/user/error_allure.log
Listen 21188
KeepAlive Off
SetEnvIf X-Forwarded-SSL on HTTPS=1
ServerLimit 1
StartServers 1
MaxRequestWorkers 5
MinSpareThreads 1
MaxSpareThreads 3
ThreadsPerChild 5
WSGIRestrictEmbedded On
WSGILazyInitialization On
<VirtualHost *:21188>
Alias /media "/home/webapps/allure_media"
Alias /static "/home/webapps/allure_static"
<Directory /home/rajkumar2014/webapps/allure_media>
Require all granted
</Directory>
<Directory /home/rajkumar2014/webapps/allure_static>
Require all granted
</Directory>
WSGIDaemonProcess allure processes=2 threads=12 python-path=/home/rajkumar2014/webapps/allure/allure:/home/rajkumar2014/webapps/allure/lib/python3.4/site-packages:/home/rajkumar2014/webapps/allure/lib/python3.4
WSGIProcessGroup allure
WSGIScriptAlias//home/rajkumar2014/webapps/allure/allure/allure/wsgi.py
<Directory /home/rajkumar2014/webapps/allure/apache2>
Require all granted
</Directory>
</VirtualHost>
settings.py
STATIC_URL = '/static/'
STATIC_ROOT = '/home/rajkumar2014/webapps/allure_static/'
STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),)
# Media files (All user uploaded content)
MEDIA_ROOT = '/home/rajkumar2014/webapps/allure_media/'
MEDIA_URL = '/media/'
Bitte helfen.