Netbox - No CSS loading with Apache2 #2914

Closed
opened 2025-12-29 18:23:22 +01:00 by adam · 3 comments
Owner

Originally created by @ecsgh on GitHub (Sep 29, 2019).

Environment

  • Python version: 3.6.5
  • NetBox version: 2.6.5

By default, the look is normal. All CSS seem to be loaded.
Except the page Admin. Here the CSS does not seem to load.

<title>Site administration | NetBox</title>
<link rel="stylesheet" type="text/css" href="/static/admin/css/base.css">
<link rel="stylesheet" type="text/css" href="/static/admin/css/dashboard.css">
   <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" type="text/css" href="/static/admin/css/responsive.css">

The first error is in vhost.conf
netbox/netbox/ static does not exist in the source.
There is only project-static.
Means that in vhost.conf .../netbox/netbox/static must be replaced with ../netbox/project-static .

Second bug I could not fix is that under static, alias from project-static, there is no admin/css/..
Only one css/base.css

https://github.com/netbox-community/netbox/issues/3381

Steps to Reproduce

  1. Open startpage
  2. Open Admin Page

Expected Behavior

That css is okay under Adminpage

Observed Behavior

Originally created by @ecsgh on GitHub (Sep 29, 2019). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.6.5 * NetBox version: 2.6.5 By default, the look is normal. All CSS seem to be loaded. Except the page Admin. Here the CSS does not seem to load. ``` <title>Site administration | NetBox</title> <link rel="stylesheet" type="text/css" href="/static/admin/css/base.css"> <link rel="stylesheet" type="text/css" href="/static/admin/css/dashboard.css"> <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"> <link rel="stylesheet" type="text/css" href="/static/admin/css/responsive.css"> ``` The first error is in vhost.conf netbox/netbox/ static does not exist in the source. There is only project-static. Means that in vhost.conf .../netbox/netbox/static must be replaced with ../netbox/project-static . Second bug I could not fix is that under static, alias from project-static, there is no admin/css/.. Only one css/base.css https://github.com/netbox-community/netbox/issues/3381 ### Steps to Reproduce 1. Open startpage 2. Open Admin Page 3. <!-- What did you expect to happen? --> ### Expected Behavior That css is okay under Adminpage <!-- What happened instead? --> ### Observed Behavior
adam closed this issue 2025-12-29 18:23:22 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 30, 2019):

Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using one of the templates provided here. For general discussion, questions, or assistance with installation issues, please post to our mailing list instead.

@jeremystretch commented on GitHub (Sep 30, 2019): Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using one of the templates provided [here](https://github.com/digitalocean/netbox/issues/new/choose). For general discussion, questions, or assistance with installation issues, please post to our [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss) instead.
Author
Owner

@ecsgh commented on GitHub (Sep 30, 2019):

I have use the template!

@ecsgh commented on GitHub (Sep 30, 2019): I have use the template!
Author
Owner

@DanSheps commented on GitHub (Sep 30, 2019):

This is not reproducible on the current master and develop branches.

Please use the mailing list for assistance with configuration.

@DanSheps commented on GitHub (Sep 30, 2019): This is not reproducible on the current master and develop branches. Please use the mailing list for assistance with configuration.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2914