from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),

    url(r'^comments/', include('fluent_comments.urls')),
    url(r'^articles/', include('article.urls')),

    url(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'articles/', 'permanent': False}),
)

from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from django.views.generic import RedirectView
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),

    url(r'^comments/', include('fluent_comments.urls')),
    url(r'^articles/', include('article.urls')),

    url(r'^$', RedirectView.as_view(url='articles/', permanent=False)),
)

Fix running the example project with Django 1.5
Fix running the example project with Django 1.5

  from django.conf.urls.defaults import patterns, include, url
  from django.contrib import admin
+ from django.views.generic import RedirectView
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
      url(r'^admin/', include(admin.site.urls)),
  
      url(r'^comments/', include('fluent_comments.urls')),
      url(r'^articles/', include('article.urls')),
  
-     url(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'articles/', 'permanent': False}),
+     url(r'^$', RedirectView.as_view(url='articles/', permanent=False)),
  )
  
Fix running the example project with Django 1.5
## Code Before:
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),

    url(r'^comments/', include('fluent_comments.urls')),
    url(r'^articles/', include('article.urls')),

    url(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'articles/', 'permanent': False}),
)

## Instruction:
Fix running the example project with Django 1.5
## Code After:
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from django.views.generic import RedirectView
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),

    url(r'^comments/', include('fluent_comments.urls')),
    url(r'^articles/', include('article.urls')),

    url(r'^$', RedirectView.as_view(url='articles/', permanent=False)),
)
