from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic.base import RedirectView

from mygpoauth import oauth2


urlpatterns = [
    # Examples:
    # url(r'^$', 'mygpoauth.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^$', RedirectView.as_view(url='http://mygpo-auth.rtfd.org/'),
        name='index'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^oauth2/', include('mygpoauth.oauth2.urls', namespace='oauth2')),
]

from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic.base import RedirectView

from mygpoauth import oauth2


urlpatterns = [
    # Examples:
    # url(r'^$', 'mygpoauth.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^$', RedirectView.as_view(url='http://mygpo-auth.rtfd.org/',
                                    permanent=False),
        name='index'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^oauth2/', include('mygpoauth.oauth2.urls', namespace='oauth2')),
]

Make "/" a non-permanent redirect
Make "/" a non-permanent redirect

  from django.conf.urls import include, url
  from django.contrib import admin
  from django.views.generic.base import RedirectView
  
  from mygpoauth import oauth2
  
  
  urlpatterns = [
      # Examples:
      # url(r'^$', 'mygpoauth.views.home', name='home'),
      # url(r'^blog/', include('blog.urls')),
  
-     url(r'^$', RedirectView.as_view(url='http://mygpo-auth.rtfd.org/'),
+     url(r'^$', RedirectView.as_view(url='http://mygpo-auth.rtfd.org/',
+                                     permanent=False),
          name='index'),
      url(r'^admin/', include(admin.site.urls)),
      url(r'^oauth2/', include('mygpoauth.oauth2.urls', namespace='oauth2')),
  ]
  
Make "/" a non-permanent redirect
## Code Before:
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic.base import RedirectView

from mygpoauth import oauth2


urlpatterns = [
    # Examples:
    # url(r'^$', 'mygpoauth.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^$', RedirectView.as_view(url='http://mygpo-auth.rtfd.org/'),
        name='index'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^oauth2/', include('mygpoauth.oauth2.urls', namespace='oauth2')),
]

## Instruction:
Make "/" a non-permanent redirect
## Code After:
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic.base import RedirectView

from mygpoauth import oauth2


urlpatterns = [
    # Examples:
    # url(r'^$', 'mygpoauth.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^$', RedirectView.as_view(url='http://mygpo-auth.rtfd.org/',
                                    permanent=False),
        name='index'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^oauth2/', include('mygpoauth.oauth2.urls', namespace='oauth2')),
]
