from django.conf.urls import patterns, url from bambu_enquiries.views import enquiry, enquiry_thanks from django.conf import settings if 'bambu_bootstrap' in settings.INSTALLED_APPS: from bambu_bootstrap.decorators import body_classes else: def body_classes(view, *classes): return view urlpatterns = patterns('', url(r'^$', body_classes(enquiry, 'enquiries'), name = 'enquiry'), url(r'^thanks/$', body_classes(enquiry_thanks, 'enquiries', 'enquiries-thanks'), name = 'enquiry_thanks' ) )
from django.conf.urls import patterns, url from bambu_enquiries.views import enquiry, enquiry_thanks from django.conf import settings if 'bambu_bootstrap' in settings.INSTALLED_APPS: from bambu_bootstrap.decorators import body_classes else: def body_classes(view, *classes): return view urlpatterns = patterns( '', url(r'^$', body_classes(enquiry, 'enquiries'), name='enquiry'), url(r'^thanks/$', body_classes(enquiry_thanks, 'enquiries', 'enquiries-thanks'), name='enquiry_thanks'))
from django.conf.urls import patterns, url from bambu_signup.views import * from bambu_signup.views import ajax from django.conf import settings if 'bambu_bootstrap' in settings.INSTALLED_APPS: from bambu_bootstrap.decorators import body_classes else: def body_classes(view, *classes): return view urlpatterns = patterns( '', url(r'^signup/$', body_classes(register, 'signup'), name='signup'), url(r'^signup/complete/$', body_classes(register_complete, 'signup', 'signup-complete'), name='signup_complete'), url(r'^login/$', login, name='login'), url(r'^logout/$', logout, name='logout'), url(r'^verify/(?P<guid>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', body_classes(verify_email, 'signup-verify'), name='verify_email'), url(r'^reset/$', body_classes(reset_password, 'signup-reset'), name='forgot_password'), url(r'^reset/(?P<guid>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', body_classes(reset_password, 'signup-reset', 'signup-reset-result'), name='reset_password'), url(r'^ajax/username-exists\.js$', ajax.username_exists, name='username_exists_ajax'),
from django.conf.urls import patterns, include, url from bambu_blog.views import posts, post, post_comment from bambu_blog.feeds import BlogFeed from django.conf import settings if 'bambu_bootstrap' in settings.INSTALLED_APPS: from bambu_bootstrap.decorators import body_classes else: def body_classes(view, *classes): return view urlpatterns = patterns( '', url(r'^$', body_classes(posts, 'blog'), name='blog_posts'), url(r'^feed/$', BlogFeed(), name='blog_posts_feed'), url(r'^(?P<year>\d{4})/$', body_classes(posts, 'blog', 'blog-year'), name='blog_posts_by_year'), url(r'^(?P<year>\d{4})/feed/$', BlogFeed(), name='blog_posts_by_year_feed'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/$', body_classes(posts, 'blog', 'blog-month'), name='blog_posts_by_month'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/feed/$', BlogFeed(), name='blog_posts_by_month_feed'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/$', body_classes(posts, 'blog', 'blog-day'), name='blog_posts_by_day'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/feed/$',
from django.conf.urls import patterns, url from bambu_pages.views import page from django.conf import settings if 'bambu_bootstrap' in settings.INSTALLED_APPS: from bambu_bootstrap.decorators import body_classes else: def body_classes(view, *classes): return view urlpatterns = patterns('', url(r'^(?P<slug>[\/\w-]+)/$', body_classes(page, 'page'), name = 'page') )
from django.conf.urls import patterns, url from bambu_signup.views import * from bambu_signup.views import ajax from django.conf import settings if 'bambu_bootstrap' in settings.INSTALLED_APPS: from bambu_bootstrap.decorators import body_classes else: def body_classes(view, *classes): return view urlpatterns = patterns('', url(r'^signup/$', body_classes(register, 'signup'), name = 'signup'), url(r'^signup/complete/$', body_classes(register_complete, 'signup', 'signup-complete'), name = 'signup_complete' ), url(r'^login/$', login, name = 'login'), url(r'^logout/$', logout, name = 'logout'), url(r'^verify/(?P<guid>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', body_classes(verify_email, 'signup-verify'), name = 'verify_email' ), url(r'^reset/$', body_classes(reset_password, 'signup-reset'), name = 'forgot_password'), url(r'^reset/(?P<guid>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', body_classes(reset_password, 'signup-reset', 'signup-reset-result'), name = 'reset_password' ), url(r'^ajax/username-exists\.js$', ajax.username_exists, name = 'username_exists_ajax'), url(r'^ajax/email-exists\.js$', ajax.email_exists, name = 'email_exists_ajax') )
from django.conf.urls import patterns, include, url from django.conf import settings from django.contrib import admin from django.contrib.auth.decorators import login_required from django.views.decorators.vary import vary_on_cookie from bambu_bootstrap.views import DirectTemplateView from bambu_bootstrap.decorators import body_classes admin.autodiscover() urlpatterns = patterns( '', url(r'^admin/doc/', include('django.contrib.admindocs.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^$', vary_on_cookie( body_classes(DirectTemplateView.as_view(template_name='home.html'), 'home')), name='home'), url(r'^mail/', include('bambu_mail.urls')), url(r'logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='logout'), url(r'', include('social_auth.urls')), url(r'^', include('mynexthack.inspiration.urls')))
from django.conf.urls import patterns, url from bambu_bootstrap.decorators import body_classes from mynexthack.inspiration.views import * urlpatterns = patterns( '', url(r'^all/$', ideas, name='all_ideas'), url(r'^me/$', my_ideas, name='my_ideas'), url(r'^(?P<username>[\w]+)/$', body_classes(ideas, 'ideas'), name='ideas'), url(r'^(?P<username>[\w]+)/(?P<slug>[\w-]{10})/$', body_classes(idea, 'ideas', 'ideas-single'), name='idea'), url(r'^(?P<username>[\w]+)/(?P<slug>[\w-]{10})/up/', vote, {'value': -1}, name='vote_up'), url(r'^(?P<username>[\w]+)/(?P<slug>[\w-]{10})/down/', vote, {'value': 1}, name='vote_down'), url(r'^(?P<username>[\w]+)/(?P<slug>[\w-]{10})/use/', use, name='use'))
from django.conf.urls import patterns, include, url from bambu_blog.views import posts, post, post_comment from bambu_blog.feeds import BlogFeed from django.conf import settings if 'bambu_bootstrap' in settings.INSTALLED_APPS: from bambu_bootstrap.decorators import body_classes else: def body_classes(view, *classes): return view urlpatterns = patterns('', url(r'^$', body_classes(posts, 'blog'), name = 'blog_posts'), url(r'^feed/$', BlogFeed(), name = 'blog_posts_feed'), url(r'^(?P<year>\d{4})/$', body_classes(posts, 'blog', 'blog-year'), name = 'blog_posts_by_year'), url(r'^(?P<year>\d{4})/feed/$', BlogFeed(), name = 'blog_posts_by_year_feed'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/$', body_classes(posts, 'blog', 'blog-month'), name = 'blog_posts_by_month'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/feed/$', BlogFeed(), name = 'blog_posts_by_month_feed'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/$', body_classes(posts, 'blog', 'blog-day'), name = 'blog_posts_by_day'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/feed/$', BlogFeed(), name = 'blog_posts_by_day_feed'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[\w-]+)/$', body_classes(post, 'blog', 'blog-post'), name = 'blog_post'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[\w-]+)/comment/$', body_classes(post_comment, 'blog', 'blog-post', 'comment-post'), name = 'blog_post_comment'), url(r'^tag/(?P<tag>[\w-]+)/$', body_classes(posts, 'blog'), name = 'blog_posts_by_tag'), url(r'^tag/(?P<tag>[\w-]+)/feed/$', BlogFeed(), name = 'blog_posts_by_tag_feed'), url(r'^category/(?P<category>[\w-]+)/$', body_classes(posts, 'blog'), name = 'blog_posts_by_category'), url(r'^category/(?P<category>[\w-]+)/feed/$', BlogFeed(), name = 'blog_posts_by_category_feed'), url(r'^author/(?P<username>[\w]+)/$', body_classes(posts, 'blog'), name = 'blog_posts_by_author'), url(r'^author/(?P<username>[\w]+)/feed/$', BlogFeed(), name = 'blog_posts_by_author_feed') )
from django.conf.urls import patterns, url from django.conf import settings from bambu_webhooks.views import webhooks if 'bambu_bootstrap' in settings.INSTALLED_APPS: from bambu_bootstrap.decorators import body_classes else: def body_classes(view, *classes): return view urlpatterns = patterns( '', url(r'^$', body_classes(webhooks, 'profile', 'profile-edit', 'webhooks'), name='webhooks_manage'), )
from django.conf import settings from django.contrib import admin from django.contrib.auth.decorators import login_required from django.views.decorators.vary import vary_on_cookie from bambu_bootstrap.views import DirectTemplateView from bambu_bootstrap.decorators import body_classes admin.autodiscover() urlpatterns = patterns('', url(r'^admin/doc/', include('django.contrib.admindocs.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^$', vary_on_cookie( body_classes( DirectTemplateView.as_view(template_name = 'home.html'), 'home' ) ), name = 'home' ), url(r'^mail/', include('bambu_mail.urls')), url(r'logout/$', 'django.contrib.auth.views.logout', { 'next_page': '/' }, name = 'logout' ), url(r'', include('social_auth.urls')), url(r'^', include('mynexthack.inspiration.urls')) )
from django.conf.urls import patterns, url from bambu_bootstrap.decorators import body_classes from mynexthack.inspiration.views import * urlpatterns = patterns('', url(r'^all/$', ideas, name = 'all_ideas'), url(r'^me/$', my_ideas, name = 'my_ideas'), url(r'^(?P<username>[\w]+)/$', body_classes(ideas, 'ideas'), name = 'ideas'), url(r'^(?P<username>[\w]+)/(?P<slug>[\w-]{10})/$', body_classes(idea, 'ideas', 'ideas-single'), name = 'idea'), url(r'^(?P<username>[\w]+)/(?P<slug>[\w-]{10})/up/', vote, {'value': -1}, name = 'vote_up'), url(r'^(?P<username>[\w]+)/(?P<slug>[\w-]{10})/down/', vote, {'value': 1}, name = 'vote_down'), url(r'^(?P<username>[\w]+)/(?P<slug>[\w-]{10})/use/', use, name = 'use') )
from bambu_bootstrap.decorators import body_classes from testproject.myapp import views from django.conf.urls import patterns, url urlpatterns = patterns( '', url(r'^$', body_classes(views.home, 'homepage', 'index')))
from bambu_bootstrap.decorators import body_classes from testproject.myapp import views from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^$', body_classes(views.home, 'homepage', 'index')) )