Skip to content

Commit 1b7b8da

Browse files
committed
Merge branch 'master' into calendar
2 parents 7828f9f + 9d63dab commit 1b7b8da

File tree

6 files changed

+32
-10
lines changed

6 files changed

+32
-10
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ notifications:
5656
slack:
5757
rooms:
5858
secure: nPXwHnPcf37yGkCkLimx5UmY9LTtOHL0lw88cAQeXCNNjeZuhS2jS5xGUOwwp3SrsYE4tZhD0WuVEHGDcyIhmBZh9Qqk3NHKz+tQDD/e0GE/8uTTfR1Eh+pq1YOIcLYzzKA2khmJSeHqqDriVZZoWpn67oHtrui9FYesapZ8AX0=
59-
on_success: change
60-
on_failure: always
59+
on_success: never
60+
on_failure: never
6161
on_start: never
6262
addons:
6363
firefox: "45.0"

docs/upgrading.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,27 @@ The following needs to be added to settings.py: ::
7171
]
7272

7373
Once all these steps are completed your installation of DefectDojo will be running under Django 1.11
74+
75+
76+
July 6th 2017 - New location for system settings
77+
================================================
78+
79+
Pull request #313 moves a number of system settings previously located in the application's settings.py
80+
to a model that can be used and changed within the web application under "Configuration -> System Settings".
81+
82+
If you're using a custom ``URL_PREFIX`` you will need to set this in the model after upgrading by
83+
editing ``dojo/fixtures/system_settings.json`` and setting your URL prefix in the ``url_prefix`` value there.
84+
Then issue the command ``./manage.py loaddata system_settings.json`` to load your settings into the database.
85+
86+
If you're not using a custom ``URL_PREFIX``, after upgrading simply go to the System Settings page and review
87+
which values you want to set for each setting, as they're not automatically migrated from settings.py.
88+
89+
If you like you can then remove the following settings from settings.py to avoid confusion:
90+
91+
* ``ENABLE_DEDUPLICATION``
92+
* ``ENABLE_JIRA``
93+
* ``S_FINDING_SEVERITY_NAMING``
94+
* ``URL_PREFIX``
95+
* ``TIME_ZONE``
96+
* ``TEAM_NAME``
97+

dojo/templates/dojo/closed_findings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h3 class="has-filters">
4646
<td class="">{{ finding.mitigated.date }}</td>
4747
<td>{{ finding.age }}</td>
4848
<td>
49-
<p class="label severity severity-{{ finding.severity|safe }}">
49+
<p class="label severity severity-{{ finding.severity }}">
5050
{{ finding.severity_display }}
5151
</p>
5252
</td>

dojo/templates/dojo/view_eng.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ <h4> Findings</h4>
650650
<tr class="{% if finding.active %}active_finding{% else %}inactive_finding{% endif %}">
651651
<td><a href="{% url 'view_finding' finding.id %}">{{ finding.title }}</a></td>
652652
<td>
653-
<span class="label severity severity-{{ finding.severity|safe }}">
653+
<span class="label severity severity-{{ finding.severity }}">
654654
{{ finding.severity_display }}
655655
</span>
656656
</td>

dojo/templates/dojo/view_test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ <h4 class="pull-left"> Findings &nbsp;&nbsp;</h4>
242242
<td>{{ finding.reporter.username }}</td>
243243
<td>{{ finding.mitigated }}</td>
244244
<td>
245-
<span class="label severity severity-{{ finding.severity|safe }}">
245+
<span class="label severity severity-{{ finding.severity }}">
246246
{{ finding.severity_display }}
247247
</span>
248248
</td>

dojo/urls.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from django.conf import settings
22
from django.conf.urls import include, url
3+
from django.conf.urls.static import static
34
from django.contrib import admin
45
from tastypie.api import Api
56

@@ -100,8 +101,5 @@
100101
url(r'^%s' % get_system_setting('url_prefix'), include(ur)),
101102
]
102103

103-
104-
# if settings.DEBUG:
105-
# urlpatterns += patterns('django.views.static',
106-
# (r'media/(?P<path>.*)', 'serve', {
107-
# 'document_root': settings.MEDIA_ROOT}))
104+
if settings.DEBUG:
105+
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

0 commit comments

Comments
 (0)