from django.conf.urls import url

from nucleus.base import views


urlpatterns = (
    url(r'^/?$', views.home, name='base.home'),
)

from django.conf.urls import url
from django.views.generic import RedirectView


urlpatterns = (
    url(r'^/?$', RedirectView.as_view(url='/rna/', permanent=True), name='base.home'),
)

Change root URL to redirect to /rna/
Change root URL to redirect to /rna/

  from django.conf.urls import url
+ from django.views.generic import RedirectView
- 
- from nucleus.base import views
  
  
  urlpatterns = (
-     url(r'^/?$', views.home, name='base.home'),
+     url(r'^/?$', RedirectView.as_view(url='/rna/', permanent=True), name='base.home'),
  )
  
Change root URL to redirect to /rna/
## Code Before:
from django.conf.urls import url

from nucleus.base import views


urlpatterns = (
    url(r'^/?$', views.home, name='base.home'),
)

## Instruction:
Change root URL to redirect to /rna/
## Code After:
from django.conf.urls import url
from django.views.generic import RedirectView


urlpatterns = (
    url(r'^/?$', RedirectView.as_view(url='/rna/', permanent=True), name='base.home'),
)
