Skip to content

Commit 4c7f630

Browse files
committed
Setup Insights App
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
1 parent c006e6c commit 4c7f630

5 files changed

Lines changed: 27 additions & 0 deletions

File tree

‎insights/__init__.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# Copyright (c) nexB Inc. and others. All rights reserved.
3+
# VulnerableCode is a trademark of nexB Inc.
4+
# SPDX-License-Identifier: Apache-2.0
5+
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
6+
# See https://github.com/aboutcode-org/vulnerablecode for support or download.
7+
# See https://aboutcode.org for more information about nexB OSS projects.
8+
#

‎insights/apps.py‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#
2+
# Copyright (c) nexB Inc. and others. All rights reserved.
3+
# VulnerableCode is a trademark of nexB Inc.
4+
# SPDX-License-Identifier: Apache-2.0
5+
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
6+
# See https://github.com/aboutcode-org/vulnerablecode for support or download.
7+
# See https://aboutcode.org for more information about nexB OSS projects.
8+
#
9+
10+
from django.apps import AppConfig
11+
12+
13+
class InsightsConfig(AppConfig):
14+
name = "insights"

‎vulnerabilities/templates/navbar.html‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
</div>
2727
</div>
2828
<div class="navbar-end mr-3">
29+
<a class="navbar-item {% active_item 'insights-dashboard' %}" href="{% url 'insights-dashboard' %}">
30+
Insights
31+
</a>
2932
<a class="navbar-item {% active_item 'todo-list' %}" href="{% url 'todo-list' %}">
3033
Advisory To-Dos
3134
</a>

‎vulnerablecode/settings.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
# Local apps
7979
# Must come before Third-party apps for proper templates override
8080
"vulnerabilities",
81+
"insights",
8182
# Django built-in
8283
"django.contrib.auth",
8384
"django.contrib.contenttypes",

‎vulnerablecode/urls.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def __init__(self, *args, **kwargs):
6565
urlpatterns = [
6666
path("admin/login/", AdminLoginView.as_view(), name="admin-login"),
6767
path("api/v3/", include(api_v3_router.urls)),
68+
path("insights/", include("insights.urls")),
6869
path(
6970
"robots.txt",
7071
TemplateView.as_view(template_name="robots.txt", content_type="text/plain"),

0 commit comments

Comments
 (0)