#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django.conf import settings

from opps.core.cache import cache_page

from .views import AsyncServer


urlpatterns = patterns(
    '',
    url(r'^(?P<channel__long_slug>[\w//-]+)/(?P<slug>[\w-]+)\.server$',
        cache_page(settings.OPPS_CACHE_EXPIRE_DETAIL)(
            AsyncServer.as_view()), name='open'),
)

@@ -186,17 +186,36 @@
 ncServer
+, LongPullingServer
 %0A
-
 %0A%0Aurlpat
@@ -413,12 +413,216 @@
 me='
-open
+asyncserver'),%0A    url(r'%5E(?P%3Cchannel__long_slug%3E%5B%5Cw//-%5D+)/(?P%3Cslug%3E%5B%5Cw-%5D+)%5C.pulingserver$',%0A        cache_page(settings.OPPS_CACHE_EXPIRE_DETAIL)(%0A            LongPullingServer.as_view()), name='pulingserver
 '),%0A

create url entry long puling to notification