|
1 | 1 | from django.contrib import admin |
2 | 2 | from django.urls import include, path |
3 | 3 |
|
| 4 | +import os |
| 5 | + |
4 | 6 | urlpatterns = [ |
5 | | - path('motifsearch/', include('motifsearch.urls')), |
6 | | - path('gene_ex/', include('gene_ex.urls')), |
7 | | - path('structure_view/', include('structure_view.urls')), |
8 | | - path('rna_2d_structure/', include('rna_2d_structure.urls')), |
9 | | - path('protein_feature_view/', include('protein_feature_view.urls')), |
10 | 7 | path('gocam_viz/', include('gocam_viz.urls')), |
11 | 8 | path('gocam_view/', include('gocam_view.urls')), |
12 | 9 | path('gocam_connections/', include('gocam_connections.urls')), |
13 | | - path('rhea_widget/', include('rhea_widget.urls')), |
14 | | - path('stats/', include('stats.urls')), |
15 | | - path('admin/', admin.site.urls), |
16 | 10 | ] |
| 11 | + |
| 12 | +if len(os.environ["WEBSITE_CONFIG_JSON_PATH"]) > 0: |
| 13 | + urlpatterns.append(path('motifsearch/', include('motifsearch.urls'))) |
| 14 | + urlpatterns.append(path('gene_ex/', include('gene_ex.urls'))) |
| 15 | + urlpatterns.append(path('structure_view/', include('structure_view.urls'))) |
| 16 | + urlpatterns.append(path('rna_2d_structure/', include('rna_2d_structure.urls'))) |
| 17 | + urlpatterns.append(path('protein_feature_view/', include('protein_feature_view.urls'))) |
| 18 | + urlpatterns.append(path('rhea_widget/', include('rhea_widget.urls'))) |
| 19 | + urlpatterns.append(path('stats/', include('stats.urls'))) |
| 20 | + urlpatterns.append(path('admin/', admin.site.urls)) |
0 commit comments