Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1from django.urls import include, path 

2from django.conf import settings 

3 

4if 'ckeditor_uploader' in settings.INSTALLED_APPS: 

5 urlpatterns = [ 

6 path('ckeditor/', include('ckeditor_uploader.urls')), 

7 ] 

8elif 'ckeditor' in settings.INSTALLED_APPS: 

9 urlpatterns = [] 

10elif 'tinymce' in settings.INSTALLED_APPS: 

11 urlpatterns = [ 

12 path('tinymce/', include('tinymce.urls')), 

13 ] 

14else: 

15 raise Exception("Cannot find widget to use with richflatpages. Please add 'ckeditor' (perhaps with 'ckeditor_uploader') or 'tinymce' to your INSTALLED_APPS in your Django settings config.") 

16 

17urlpatterns += [ 

18 path('', include('django.contrib.flatpages.urls')), 

19]