It seems that changes to the urls.py
file in my Django project are ignored unless I reload Apache. Any ideas why this is happening? This is my virutal host file:
<IfModule mod_ssl.c>
<VirtualHost www.mydomain.com:443>
ServerName www.mydomain.com
ServerAdmin myaddress@mydomain.com
WSGIScriptAlias / /var/www/html/www.mydomain.com/myproject/wsgi.py
WSGIDaemonProcess myproject python-path=/var/www/html/www.mydomain.com:/var/www/html/www.mydomain.com/env/lib/python3.6/site-packages
WSGIProcessGroup myproject
<Directory /var/www/html/myproject>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# Let's Encrypt files
SSLCertificateFile /etc/letsencrypt/live/www.mydomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.mydomain.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
Changes are otherwise applied instantly, as I can check via the show_urls
command from django-extensions.