location /static/ {
alias /opt/netbox/netbox/static/;
}--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/1cef4a44-b082-4234-bca7-2449a121e96c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Could you please test this?
Thank you.
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/7722bf16-e9a5-432f-bd3d-8db0159aad3a%40googlegroups.com.
DEBUG is only to be used for development and troubleshooting purposes. It is not suitable for production use, and not required to serve static content.
On Wed, Oct 12, 2016 at 11:05 AM, Volkan Yalçın <vlya...@gmail.com> wrote:
Hi again,I forgot to say, please don't forget to clear cache before check.
On Wednesday, October 12, 2016 at 5:54:21 PM UTC+3, Volkan Yalçın wrote:Hi,I had similar problem too. Then I found it is because of debug variable. Debug should be True at line 27 in settings.py file.DEBUG = getattr(configuration, 'DEBUG', True)Could you please test this?Thank you.
On Tuesday, October 11, 2016 at 10:54:27 AM UTC+3, Shane P wrote:Hi there, I've managed to work through the install and after much difficulty with nginx 502 bad gateway (selinux the culprit) the home page now doesn't render as per the attached.My skill set isn't great with linux so it's been bit of a battle to get to this stage.When I run the test step as per the docs it all works fine:./manage.py runserver 0.0.0.0:8000 --insecureI'm running CentOS 7 and I've just followed the steps as per the doco, if there's config files needed to help troubleshoot please let me know.Would greatly appreciate any nudge in the right direction!Cheers
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
Serving the filesIn addition to these configuration steps, you’ll also need to actually serve the static files.During development, if you use django.contrib.staticfiles, this will be done automatically by runserver when DEBUG is set to True (see django.contrib.staticfiles.views.serve()).This method is grossly inefficient and probably insecure, so it is unsuitable for production.See Deploying static files for proper strategies to serve static files in production environments.
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/f6d2ca49-0534-4c64-a6f1-61372fff4c5a%40googlegroups.com.