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

from .google_merchant import get_feed_file_url

urlpatterns = [
    url(r'google/$', RedirectView.as_view(
        get_redirect_url=get_feed_file_url), name='google-feed')]

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

from .google_merchant import get_feed_file_url

urlpatterns = [
    url(r'google/$', RedirectView.as_view(
        get_redirect_url=get_feed_file_url, permanent=True), name='google-feed')]

Update feeds url due to RemovedInDjango19Warning
Update feeds url due to RemovedInDjango19Warning

  from django.conf.urls import url
  from django.views.generic.base import RedirectView
  
  from .google_merchant import get_feed_file_url
  
  urlpatterns = [
      url(r'google/$', RedirectView.as_view(
-         get_redirect_url=get_feed_file_url), name='google-feed')]
+         get_redirect_url=get_feed_file_url, permanent=True), name='google-feed')]
  
Update feeds url due to RemovedInDjango19Warning
## Code Before:
from django.conf.urls import url
from django.views.generic.base import RedirectView

from .google_merchant import get_feed_file_url

urlpatterns = [
    url(r'google/$', RedirectView.as_view(
        get_redirect_url=get_feed_file_url), name='google-feed')]

## Instruction:
Update feeds url due to RemovedInDjango19Warning
## Code After:
from django.conf.urls import url
from django.views.generic.base import RedirectView

from .google_merchant import get_feed_file_url

urlpatterns = [
    url(r'google/$', RedirectView.as_view(
        get_redirect_url=get_feed_file_url, permanent=True), name='google-feed')]
