Skip to content

Commit 6b2e245

Browse files
Gpetrakgiohappy
authored andcommitted
improving the import of the handler500
1 parent 0890835 commit 6b2e245

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/project_name/urls.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414
# GNU General Public License for more details.
1515
#
16-
# You should have received a copy of the GNU General Public License
16+
# You should have received a copy of the GNU General Public Licenses
1717
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
#
1919
#########################################################################
2020

21-
from geonode.urls import urlpatterns
22-
23-
# global handler 500 view
24-
handler500 = "geonode.views.err500"
21+
# Do not remove handler500 import. It is required to re-export
22+
# the custom error page handler for the GeoNode project
23+
# related issue: https://github.com/GeoNode/geonode-project/issues/570
24+
from geonode.urls import urlpatterns, handler500 # noqa
2525

2626
"""
2727
# You can register your own urlpatterns here

0 commit comments

Comments
 (0)