
# Views that are visible in demo mode.
DEMO_SAFE_VIEWS = [
    'main.views.home_view',
    'main.views.project_list_view',
    'main.views.project_view',
    'main.views.tab_root_analyze',
    'main.views.reference_genome_list_view',
    'main.views.reference_genome_view',
    'main.views.sample_list_view',
    'main.views.alignment_list_view',
    'main.views.alignment_view',
    'main.views.sample_alignment_error_view',
    'main.views.variant_set_list_view',
    'main.views.variant_set_view',
    'main.views.single_variant_view',
    'main.xhr_handlers.get_variant_list',
    'main.xhr_handlers.get_variant_set_list',
    'main.xhr_handlers.get_gene_list',
    'main.xhr_handlers.get_alignment_groups',
    'main.xhr_handlers.is_materialized_view_valid',
    'main.xhr_handlers.get_ref_genomes',
    'main.xhr_handlers.compile_jbrowse_and_redirect',
    'main.template_xhrs.variant_filter_controls',
]


# Views that are visible in demo mode.
DEMO_SAFE_VIEWS = [
    'main.views.home_view',
    'main.views.project_list_view',
    'main.views.project_view',
    'main.views.tab_root_analyze',
    'main.views.reference_genome_list_view',
    'main.views.reference_genome_view',
    'main.views.sample_list_view',
    'main.views.alignment_list_view',
    'main.views.alignment_view',
    'main.views.sample_alignment_error_view',
    'main.views.variant_set_list_view',
    'main.views.variant_set_view',
    'main.views.single_variant_view',
    'main.xhr_handlers.get_variant_list',
    'main.xhr_handlers.get_variant_set_list',
    'main.xhr_handlers.get_gene_list',
    'main.xhr_handlers.get_alignment_groups',
    'main.xhr_handlers.is_materialized_view_valid',
    'main.xhr_handlers.get_ref_genomes',
    'main.xhr_handlers.compile_jbrowse_and_redirect',
    'main.template_xhrs.variant_filter_controls',
    'main.demo_view_overrides.login_demo_account',
    'django.contrib.auth.views.logout'
]

Add login and logout to allowed views in DEMO_MODE.
Add login and logout to allowed views in DEMO_MODE.

  
  # Views that are visible in demo mode.
  DEMO_SAFE_VIEWS = [
      'main.views.home_view',
      'main.views.project_list_view',
      'main.views.project_view',
      'main.views.tab_root_analyze',
      'main.views.reference_genome_list_view',
      'main.views.reference_genome_view',
      'main.views.sample_list_view',
      'main.views.alignment_list_view',
      'main.views.alignment_view',
      'main.views.sample_alignment_error_view',
      'main.views.variant_set_list_view',
      'main.views.variant_set_view',
      'main.views.single_variant_view',
      'main.xhr_handlers.get_variant_list',
      'main.xhr_handlers.get_variant_set_list',
      'main.xhr_handlers.get_gene_list',
      'main.xhr_handlers.get_alignment_groups',
      'main.xhr_handlers.is_materialized_view_valid',
      'main.xhr_handlers.get_ref_genomes',
      'main.xhr_handlers.compile_jbrowse_and_redirect',
      'main.template_xhrs.variant_filter_controls',
+     'main.demo_view_overrides.login_demo_account',
+     'django.contrib.auth.views.logout'
  ]
  
Add login and logout to allowed views in DEMO_MODE.
## Code Before:

# Views that are visible in demo mode.
DEMO_SAFE_VIEWS = [
    'main.views.home_view',
    'main.views.project_list_view',
    'main.views.project_view',
    'main.views.tab_root_analyze',
    'main.views.reference_genome_list_view',
    'main.views.reference_genome_view',
    'main.views.sample_list_view',
    'main.views.alignment_list_view',
    'main.views.alignment_view',
    'main.views.sample_alignment_error_view',
    'main.views.variant_set_list_view',
    'main.views.variant_set_view',
    'main.views.single_variant_view',
    'main.xhr_handlers.get_variant_list',
    'main.xhr_handlers.get_variant_set_list',
    'main.xhr_handlers.get_gene_list',
    'main.xhr_handlers.get_alignment_groups',
    'main.xhr_handlers.is_materialized_view_valid',
    'main.xhr_handlers.get_ref_genomes',
    'main.xhr_handlers.compile_jbrowse_and_redirect',
    'main.template_xhrs.variant_filter_controls',
]

## Instruction:
Add login and logout to allowed views in DEMO_MODE.
## Code After:

# Views that are visible in demo mode.
DEMO_SAFE_VIEWS = [
    'main.views.home_view',
    'main.views.project_list_view',
    'main.views.project_view',
    'main.views.tab_root_analyze',
    'main.views.reference_genome_list_view',
    'main.views.reference_genome_view',
    'main.views.sample_list_view',
    'main.views.alignment_list_view',
    'main.views.alignment_view',
    'main.views.sample_alignment_error_view',
    'main.views.variant_set_list_view',
    'main.views.variant_set_view',
    'main.views.single_variant_view',
    'main.xhr_handlers.get_variant_list',
    'main.xhr_handlers.get_variant_set_list',
    'main.xhr_handlers.get_gene_list',
    'main.xhr_handlers.get_alignment_groups',
    'main.xhr_handlers.is_materialized_view_valid',
    'main.xhr_handlers.get_ref_genomes',
    'main.xhr_handlers.compile_jbrowse_and_redirect',
    'main.template_xhrs.variant_filter_controls',
    'main.demo_view_overrides.login_demo_account',
    'django.contrib.auth.views.logout'
]
