AddressView, OrderView, OrderLogView, DeliveryView, DeliveryBoyView, TicketView, \ LocalityView, BillImage, CallBackRequestView, ContactUsView, upload_file urlpatterns = [ url(r'agent/', AgentView.as_view()), url(r'agent_login/', AgentLogInView.as_view()), url(r'agent_logout/', AgentLogOutView.as_view()), url(r'call/', CallView.as_view()), url(r'customer/', CustomerView.as_view()), url(r'contact_number/', ContactNumberView.as_view()), url(r'address/', AddressView.as_view()), url(r'locality/', LocalityView.as_view()), url(r'order/', OrderView.as_view()), url(r'order_log/', OrderLogView.as_view()), url(r'delivery/', DeliveryView.as_view()), url(r'delivery_boy/', DeliveryBoyView.as_view()), url(r'bill_image', BillImage.as_view()), url(r'ticket/', TicketView.as_view()), #Website related endpoints url(r'callback_request/', CallBackRequestView.as_view()), url(r'contact_us/', ContactUsView.as_view()), url(r'upload_file/', upload_file)
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from views import DeleteScheduleOrderView, ScheduleOrderView, OrderView from wizards import CreateOrderWizard, FORMS urlpatterns = patterns('', url(r'^$', ScheduleOrderView.as_view(), name='twitter-home'), url(r'^order-history/$', OrderView.as_view(), name='twitter-order-history'), url(r'^create-order/$', CreateOrderWizard.as_view(FORMS), name='twitter-create-order'), url(r'^delete/(?P<pk>[-\w]+)/$', DeleteScheduleOrderView.as_view(), name='twitter-delete'), )
from django.conf.urls import patterns, url from views import OrderView, OrderListView, OrderMessageListView urlpatterns = patterns('', url(r'^$', OrderListView.as_view(), name='orders'), url(r'^(?P<id>\d*)$', OrderView.as_view(), name='orders'), url(r'^(?P<id>\d*)/messages$', OrderMessageListView.as_view(), name='order_messages'), )
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import patterns from django.conf.urls import url from views import PreOrderView from views import OrderView from views import ReservationsListView urlpatterns = patterns('', url(r'^preorder/$', PreOrderView.as_view(), name='pre_order'), url(r'^order/$', OrderView.as_view(), name='order'), url(r'^my/$', ReservationsListView.as_view(), name='my_reservations'), )
# Create user loader function @login_manager.user_loader def load_user(user_id): return User.query.get(user_id) init_login() admin = admin.Admin(app, 'aBay', index_view=AdminIndexView(url='/killerapp'), template_mode="bootstrap3") admin.add_view(ActiveView(ActiveItem, db_session, endpoint="active")) admin.add_view(EndedView(ActiveItem, db_session, endpoint="ended")) admin.add_view(OrderView(OrderItem, db_session, endpoint="orders")) admin.add_view(ReceiptView(SoldReceipt, db_session, endpoint="receipts")) admin.add_view(LineItemView(LineItem, db_session, endpoint="lineitem")) admin.add_view(ScraperView(db_session, endpoint="scraper")) admin.add_view(TemplateView(db_session, endpoint="template")) admin.add_view(BlackListView(db_session, endpoint="blacklist")) admin.add_view(UserView(db_session, endpoint="users")) admin.add_view(eBayAccountView(db_session, endpoint="ebayacc")) admin.add_view(NotifyEmailView(db_session, endpoint="notifyemail")) @app.template_filter() def timepast(value): c = (dt.datetime.utcnow() - value.updated_on) return "%.2dh%.2dm" % (c.seconds // 3600, (c.seconds // 60) % 60)
# -*- coding: utf-8 -*- from django.conf.urls import url from views import OrderView urlpatterns = [ url(r'^$', OrderView.as_view(), name="view"), ]
# coding:utf-8 from django.conf.urls import patterns, url from views import IndexView, OrderView urlpatterns = patterns( '', url(r'^$', IndexView.as_view(), name='index'), url(r'^pattern/(?P<type>\w+)/$', OrderView.as_view(), name='order'), )