Source

django-socketio-on-dotcloud / hellodjango / urls.py

Full commit
from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
# import the view from helloapp
from helloapp.views import hello_view
# Uncomment the next two lines to enable the admin:
from django.contrib import admin


admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', view=hello_view, name='hello_page'),
    url("^chat/", include("chat.urls")),
    url("", include('django_socketio.urls')),
    url(r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns += patterns('django.contrib.staticfiles.views',
        url(r'^static/(?P<path>.*)$', 'serve'),
    )