Exemple #1
0
admin.autodiscover()

urlpatterns = patterns(
    '',
    # Examples:
    # url(r'^$', 'buddhawaj.views.home', name='home'),
    # url(r'^buddhawaj/', include('buddhawaj.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)

from wiki.urls import get_pattern as get_wiki_pattern
from django_notify.urls import get_pattern as get_notify_pattern
urlpatterns += patterns('', (r'^notify/', get_notify_pattern()),
                        (r'', get_wiki_pattern()))

if not settings.PRODUCTION:
    urlpatterns += patterns(
        '',
        url(r'^cache/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': settings.CACHE_ROOT,
        }),
        url(r'^wiki/images/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': settings.IMAGES_ROOT,
        }),
    )
# coding: utf-8
from django.conf.urls import patterns, include, url
from django.contrib import admin

from wiki.urls import get_pattern as get_wiki_pattern
from django_notify.urls import get_pattern as get_notify_pattern

admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', '{{ project_name }}.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
)

# Following is the url configuration for django-wiki. It puts the wiki in / so
# it’s important that it is the last entry in urlpatterns. You can also put it
# in /wiki by putting '^wiki/' as the pattern.

urlpatterns += patterns('',
    url(r'^notify/', get_notify_pattern()),
    url(r'', get_wiki_pattern())
)
Exemple #3
0
from django.conf.urls import patterns, include, url
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns(
    "",
    # Examples:
    # url(r'^$', 'buddhawaj.views.home', name='home'),
    # url(r'^buddhawaj/', include('buddhawaj.foo.urls')),
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # Uncomment the next line to enable the admin:
    url(r"^admin/", include(admin.site.urls)),
)

from wiki.urls import get_pattern as get_wiki_pattern
from django_notify.urls import get_pattern as get_notify_pattern

urlpatterns += patterns("", (r"^notify/", get_notify_pattern()), (r"", get_wiki_pattern()))

if not settings.PRODUCTION:
    urlpatterns += patterns(
        "",
        url(r"^cache/(?P<path>.*)$", "django.views.static.serve", {"document_root": settings.CACHE_ROOT}),
        url(r"^wiki/images/(?P<path>.*)$", "django.views.static.serve", {"document_root": settings.IMAGES_ROOT}),
    )
    # Configure umessages compose view so that it uses recipient autocompletion
    url(r'^messages/compose/$',
        messages_views.message_compose,
        kwargs={'compose_form': AutoCompleteComposeForm},
        name='userena_umessages_compose'),
    # Form at the bottom of message list doesn't use autocompletion
    url(r'^messages/reply/$',
        messages_views.message_compose,
        name='userena_umessages_reply'),
    url(r'^messages/', include('userena.contrib.umessages.urls')),

    (r'^newsletters/', include('emencia.django.newsletter.urls')),

    # Wiki
    (r'^notify/', get_notify_pattern()),
    (r'^wiki/', get_wiki_pattern()),
                             
    #(r'^ajax_select/', include('ajax_select.urls')),
	url(r'^ajax_lookup/(?P<channel>[-\w]+)/$',
		'ajax_select.views.ajax_lookup',
        name = 'ajax_lookup'
    ),
    url(r'^add_popup/(?P<app_label>\w+)/(?P<model>\w+)/$',
        'ajax_select.views.add_popup',
        name = 'add_popup'
    ),

    (r'^jsi18n/(?P<packages>\S+?)/$', 'django.views.i18n.javascript_catalog'),                             
                             
)
Exemple #5
0
        name='auth_logout'),
    url(r'^accounts/password-change/$',
        'django.contrib.auth.views.password_change',
        name='change_password'),
    url(r'^accounts/password-change/done/$',
        'django.contrib.auth.views.password_change_done'),
    url(r'^accounts/password-reset/$',
        'django.contrib.auth.views.password_reset',
        name='reset_password'),
    url(r'^accounts/password-reset/done/$',
        'django.contrib.auth.views.password_reset_done'),
    url(r'^accounts/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
        'django.contrib.auth.views.password_reset_confirm'),
    url(r'^accounts/reset/done/$',
        'django.contrib.auth.views.password_reset_complete'), 
    (r'^wiki/notify/', get_notify_pattern()),
    (r'^wiki/', get_wiki_pattern()),
    # Cartridge URLs.
    ("^shop/", include("cartridge.shop.urls")),
    url("^account/orders/$", "cartridge.shop.views.order_history",
        name="shop_order_history"),

     # We don't want to presume how your homepage works, so here are a
    # few patterns you can use to set it up.

    # HOMEPAGE AS STATIC TEMPLATE
    # ---------------------------
    # This pattern simply loads the index.html template. It isn't
    # commented out like the others, so it's the default. You only need
    # one homepage pattern, so if you use a different one, comment this
    # one out.
Exemple #6
0
from django.conf.urls import patterns, include, url
from wiki.urls import get_pattern as get_wiki_pattern
from django_notify.urls import get_pattern as get_notify_pattern

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns(
    "",
    # Examples:
    # url(r'^$', 'qpywiki.views.home', name='home'),
    # url(r'^qpywiki/', include('qpywiki.foo.urls')),
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    (r"^notify/", get_notify_pattern()),
    (r"", get_wiki_pattern()),
)
Exemple #7
0
    url(r'^projects/', include('raspberryio.project.urls')),
    url(r'^accounts/', include('raspberryio.userprofile.urls')),
    url(r'^search/', include('raspberryio.search.urls')),
    url(r'^community/blogs/', include('raspberryio.aggregator.urls')),
    url(r'^community/', include('raspberryio.qanda.urls')),
    url(r'^rss/community/blogs/firehose/$',
        CommunityAggregatorFirehoseFeed(),
        name='aggregator-firehose-feed'),
    url(r'^rss/community/blogs/(?P<slug>[\w-]+)/$',
        CommunityAggregatorFeed(),
        name='aggregator-feed'),

    # django-push
    url(r'^subscriber/', include('django_push.subscriber.urls')),

    # django-activity-streams
    url('^activity/', include('actstream.urls')),

    # wiki
    url(r'^wiki/notify/', get_notify_pattern()),
    url(r'^wiki/.*_settings/', RedirectView.as_view(url='/wiki/')),
    url(r'wiki/', get_wiki_pattern()),
    # Mezzanine urls
    url(r'^', include('mezzanine.urls')),
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# Adds ``STATIC_URL`` to the context of error pages, so that error
# pages can use JS, CSS and images.
handler404 = "mezzanine.core.views.page_not_found"
handler500 = "mezzanine.core.views.server_error"