Пример #1
0
from django.conf.urls import patterns, url
from bambu.dataportability.views import *
from django.conf import settings

if 'bambu.bootstrap' in settings.INSTALLED_APPS or 'bambu.bootstrap.v2' in settings.INSTALLED_APPS:
    from bambu.bootstrap.v2.decorators import body_classes
elif 'bambu.bootstrap.v3' in settings.INSTALLED_APPS:
    from bambu.bootstrap.v3.decorators import body_classes
else:

    def body_classes(view, *classes):
        return view


urlpatterns = patterns(
    '',
    url(r'^import/(?P<guid>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
        body_classes(status, 'dataportability', 'import-status'),
        {'kind': 'import'},
        name='import_status'),
    url(r'^export/(?P<guid>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
        body_classes(status, 'dataportability', 'export-status'),
        {'kind': 'export'},
        name='export_status'),
    url(r'^export/(?P<guid>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/download/$',
        download,
        name='download_export'))
Пример #2
0
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 or 'bambu.bootstrap.v2' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v2.decorators import body_classes
elif 'bambu.bootstrap.v3' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v3.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')
)
Пример #3
0
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 or 'bambu.bootstrap.v2' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v2.decorators import body_classes
elif 'bambu.bootstrap.v3' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v3.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')
)
Пример #4
0
from django.conf.urls import patterns, url
from bambu.dataportability.views import *
from django.conf import settings

if 'bambu.bootstrap' in settings.INSTALLED_APPS or 'bambu.bootstrap.v2' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v2.decorators import body_classes
elif 'bambu.bootstrap.v3' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v3.decorators import body_classes
else:
	def body_classes(view, *classes):
		return view

urlpatterns = patterns('',
	url(r'^import/(?P<guid>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', body_classes(status, 'dataportability', 'import-status'), {'kind': 'import'}, name = 'import_status'),
	url(r'^export/(?P<guid>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', body_classes(status, 'dataportability', 'export-status'), {'kind': 'export'}, name = 'export_status'),
	url(r'^export/(?P<guid>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/download/$', download, name = 'download_export')
)
Пример #5
0
from django.conf.urls import patterns, url
from bambu.notifications.views import manage
from django.conf import settings

if 'bambu.bootstrap' in settings.INSTALLED_APPS or 'bambu.bootstrap.v2' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v2.decorators import body_classes
elif 'bambu.bootstrap.v3' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v3.decorators import body_classes
else:
	def body_classes(view, *classes):
		return view

urlpatterns = patterns('bambu.notifications.views',
	url(r'^$', body_classes(manage, 'profile', 'profile-edit', 'notifications'), name = 'notifications_manage'),
	url(r'^(?P<pk>\d+)/$', 'notification', name = 'notification'),
	url(r'^(?P<pk>\d+)/delete/$', 'delete_notification', name = 'delete_notification')
)
Пример #6
0
from django.conf.urls import patterns, include, url
from bambu.faq.views import topics
from django.conf import settings

if 'bambu.bootstrap' in settings.INSTALLED_APPS or 'bambu.bootstrap.v2' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v2.decorators import body_classes
elif 'bambu.bootstrap.v3' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v3.decorators import body_classes
else:
	def body_classes(view, *classes):
		return view

urlpatterns = patterns('',
	url(r'^$', body_classes(topics, 'faq'), name = 'faq_topics'),
	url(r'^(?P<category>[\w-]+)/$', body_classes(topics, 'faq', 'faq-category'),
		name = 'faq_topics_category'
	)
)
Пример #7
0
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 or 'bambu.bootstrap.v2' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v2.decorators import body_classes
elif 'bambu.bootstrap.v3' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v3.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')
)
Пример #8
0
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 or 'bambu.bootstrap.v2' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v2.decorators import body_classes
elif 'bambu.bootstrap.v3' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v3.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'
	)
)
Пример #9
0
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 or 'bambu.bootstrap.v2' in settings.INSTALLED_APPS:
    from bambu.bootstrap.v2.decorators import body_classes
elif 'bambu.bootstrap.v3' in settings.INSTALLED_APPS:
    from bambu.bootstrap.v3.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'))
Пример #10
0
from django.conf.urls import patterns, url
from bambu.webhooks.views import webhooks
from django.conf import settings

if 'bambu.bootstrap' in settings.INSTALLED_APPS or 'bambu.bootstrap.v2' in settings.INSTALLED_APPS:
    from bambu.bootstrap.v2.decorators import body_classes
elif 'bambu.bootstrap.v3' in settings.INSTALLED_APPS:
    from bambu.bootstrap.v3.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'),
)
Пример #11
0
from bambu.saas.views import ajax
from bambu.saas.views import *
from bambu.saas.models import Plan
from django.contrib.auth.views import login, logout
from django.conf import settings

if 'bambu.bootstrap' in settings.INSTALLED_APPS or 'bambu.bootstrap.v2' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v2.decorators import body_classes
elif 'bambu.bootstrap.v3' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v3.decorators import body_classes
else:
	def body_classes(view, *classes):
		return view

urlpatterns = patterns('',
	url(r'^plans/$', body_classes(plans, 'saas-plans'), name = 'plans'),
	url(r'^signup/$', body_classes(signup, 'saas-signup'), name = 'signup'),
	url(r'^signup/pay/$', body_classes(signup_pay, 'saas-signup', 'saas-signup-pay'),
		name = 'signup_pay'
	),
	url(r'^signup/complete/$', body_classes(verify_email, 'saas-verify'), name = 'signup_complete'),
	url(r'^upgrade/$', body_classes(upgrade, 'saas-upgrade'), name = 'upgrade'),
	url(r'^upgrade/pay/$', body_classes(upgrade_pay, 'saas-upgrade'), name = 'upgrade_pay'),
	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, 'saas-verify'), name = 'verify_email'
	),
	url(r'^invite/(?P<guid>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
		body_classes(invitation_accept, 'saas-verify'), name = 'invitation_accept'
	),
	url(r'^reset/$', body_classes(reset_password, 'saas-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})/$',
Пример #12
0
from django.conf.urls import patterns, url
from bambu.webhooks.views import webhooks
from django.conf import settings

if 'bambu.bootstrap' in settings.INSTALLED_APPS or 'bambu.bootstrap.v2' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v2.decorators import body_classes
elif 'bambu.bootstrap.v3' in settings.INSTALLED_APPS:
	from bambu.bootstrap.v3.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'),
)