try:
    from django.conf.urls import include, patterns, url
except ImportError:
    from django.conf.urls.defaults import include, patterns, url

from mailviews.previews import autodiscover, site


autodiscover()

urlpatterns = patterns('',
    url(regex=r'', view=site.urls),
)

from django.conf.urls import url

from mailviews.previews import autodiscover, site


autodiscover()

urlpatterns = [
    url(regex=r'', view=site.urls),
]

fix url patterns for new django releases