"""URL mapping."""
from django.conf.urls import url

from demoproject.apache import views
from demoproject.urlpatterns import patterns


urlpatterns = patterns(
    'demoproject.apache.views',
    url(r'^optimized-by-middleware/$',
        views.optimized_by_middleware,
        name='optimized_by_middleware'),
    url(r'^optimized-by-decorator/$',
        views.optimized_by_decorator,
        name='optimized_by_decorator'),
)
Exemple #2
0
"""URL mapping."""
from django.conf.urls import url

from demoproject.lighttpd import views
from demoproject.urlpatterns import patterns

urlpatterns = patterns(
    'demoproject.lighttpd.views',
    url(r'^optimized-by-middleware/$',
        views.optimized_by_middleware,
        name='optimized_by_middleware'),
    url(r'^optimized-by-decorator/$',
        views.optimized_by_decorator,
        name='optimized_by_decorator'),
)
from django.conf.urls import url

from demoproject.virtual import views
from demoproject.urlpatterns import patterns


urlpatterns = patterns(
    '',
    url(r'^text/$',
        views.TextDownloadView.as_view(),
        name='text'),
    url(r'^stringio/$',
        views.StringIODownloadView.as_view(),
        name='stringio'),
    url(r'^gerenated/$',
        views.GeneratedDownloadView.as_view(),
        name='generated'),
)
Exemple #4
0
from django.conf.urls import url

from demoproject.object import views
from demoproject.urlpatterns import patterns

urlpatterns = patterns(
    '',
    url(r'^default-file/(?P<slug>[a-zA-Z0-9_-]+)/$',
        views.default_file_view,
        name='default_file'),
    url(r'^another-file/(?P<slug>[a-zA-Z0-9_-]+)/$',
        views.another_file_view,
        name='another_file'),
    url(r'^deserialized_basename/(?P<slug>[a-zA-Z0-9_-]+)/$',
        views.deserialized_basename_view,
        name='deserialized_basename'),
    url(r'^inline-file/(?P<slug>[a-zA-Z0-9_-]+)/$',
        views.inline_file_view,
        name='inline_file'),
)
Exemple #5
0
from django.conf.urls import url

from demoproject.http import views
from demoproject.urlpatterns import patterns

urlpatterns = patterns(
    '',
    url(r'^simple_url/$',
        views.simple_url,
        name='simple_url'),
    url(r'^avatar_url/$',
        views.avatar_url,
        name='avatar_url'),
)
Exemple #6
0
urlpatterns = patterns(
    '',
    # ObjectDownloadView.
    url(
        r'^object/',
        include('demoproject.object.urls',
                app_name='object',
                namespace='object')),
    # StorageDownloadView.
    url(
        r'^storage/',
        include('demoproject.storage.urls',
                app_name='storage',
                namespace='storage')),
    # PathDownloadView.
    url(r'^path/',
        include('demoproject.path.urls', app_name='path', namespace='path')),
    # HTTPDownloadView.
    url(r'^http/',
        include('demoproject.http.urls', app_name='http', namespace='http')),
    # VirtualDownloadView.
    url(
        r'^virtual/',
        include('demoproject.virtual.urls',
                app_name='virtual',
                namespace='virtual')),
    # Nginx optimizations.
    url(r'^nginx/',
        include('demoproject.nginx.urls', app_name='nginx',
                namespace='nginx')),
    # Apache optimizations.
    url(
        r'^apache/',
        include('demoproject.apache.urls',
                app_name='apache',
                namespace='apache')),
    # Lighttpd optimizations.
    url(
        r'^lighttpd/',
        include('demoproject.lighttpd.urls',
                app_name='lighttpd',
                namespace='lighttpd')),
    # An informative homepage.
    url(r'$', home, name='home'))
Exemple #7
0
from django.conf.urls import url

from demoproject.virtual import views
from demoproject.urlpatterns import patterns

urlpatterns = patterns(
    '',
    url(r'^text/$', views.TextDownloadView.as_view(), name='text'),
    url(r'^stringio/$', views.StringIODownloadView.as_view(), name='stringio'),
    url(r'^gerenated/$',
        views.GeneratedDownloadView.as_view(),
        name='generated'),
)
Exemple #8
0
from django.conf.urls import url

from demoproject.path import views
from demoproject.urlpatterns import patterns

urlpatterns = patterns(
    '',
    url(r'^static-path/$',
        views.static_path,
        name='static_path'),
    url(r'^dynamic-path/(?P<path>[a-zA-Z0-9_-]+\.[a-zA-Z0-9]{1,4})$',
        views.dynamic_path,
        name='dynamic_path'),
)
urlpatterns = patterns(
    '',
    # ObjectDownloadView.
    url(r'^object/', include('demoproject.object.urls',
                             app_name='object',
                             namespace='object')),
    # StorageDownloadView.
    url(r'^storage/', include('demoproject.storage.urls',
                              app_name='storage',
                              namespace='storage')),
    # PathDownloadView.
    url(r'^path/', include('demoproject.path.urls',
                           app_name='path',
                           namespace='path')),
    # HTTPDownloadView.
    url(r'^http/', include('demoproject.http.urls',
                           app_name='http',
                           namespace='http')),
    # VirtualDownloadView.
    url(r'^virtual/', include('demoproject.virtual.urls',
                              app_name='virtual',
                              namespace='virtual')),
    # Nginx optimizations.
    url(r'^nginx/', include('demoproject.nginx.urls',
                            app_name='nginx',
                            namespace='nginx')),
    # Apache optimizations.
    url(r'^apache/', include('demoproject.apache.urls',
                             app_name='apache',
                             namespace='apache')),
    # Lighttpd optimizations.
    url(r'^lighttpd/', include('demoproject.lighttpd.urls',
                               app_name='lighttpd',
                               namespace='lighttpd')),
    # An informative homepage.
    url(r'$', home, name='home')
)