Beispiel #1
0
 # The landing page
 url(r"^$", "misc.index", name="index"),
 # The dashboard
 url(r"^dashboard$", "misc.dashboard", name="dashboard"),
 # User
 url(r"^user/logout$", "user.logout", name="logout"),
 url(r"^user/registration$", "user.registration", name="registration"),
 url(r"^user/preferences$", "user.preferences", name="preferences"),
 url(r"^user/demo-entries$", "misc.demo_entries", name="demo-entries"),
 url(r"^user/api-key$", "user.api_key", name="api-key"),
 # Workout
 url(r"^workout/overview$", "workout.overview", name="workout-overview"),
 url(r"^workout/add$", "workout.add", name="workout-add"),
 url(r"^workout/(?P<pk>\d+)/copy/$", "workout.copy_workout", name="workout-copy"),
 url(r"^workout/(?P<pk>\d+)/edit/$", WorkoutEditView.as_view(), name="workout-edit"),
 url(r"^workout/(?P<pk>\d+)/delete/$", WorkoutDeleteView.as_view(), name="workout-delete"),
 url(r"^workout/(?P<id>\d+)/view/$", "workout.view", name="workout-view"),
 url(r"^workout/(?P<pk>\d+)/log/$", WorkoutLogDetailView.as_view(), name="workout-log"),
 url(r"^workout/log/edit-entry/(?P<pk>\d+)$", WorkoutLogUpdateView.as_view(), name="workout-log-edit"),
 url(r"^workout/(?P<workout_pk>\d+)/log/add$", WorkoutLogAddView.as_view(), name="workout-log-add"),
 url(r"^workout/calendar$", "log.calendar", name="workout-calendar"),
 url(r"^workout/calendar/(?P<year>\d{4})-(?P<month>\d{1,2})$", "log.calendar", name="workout-calendar"),
 url(r"^workout/(?P<pk>\d+)/ical$", ical.export, name="workout-ical"),
 # Timer
 url(r"^workout/(?P<day_pk>\d+)/timer$", "workout.timer", name="workout-timer"),
 # Schedules
 url(r"^workout/schedule/overview$", "schedule.overview", name="schedule-overview"),
 url(r"^workout/schedule/add$", schedule.ScheduleCreateView.as_view(), name="schedule-add"),
 url(r"^workout/schedule/(?P<pk>\d+)/view/$", "schedule.view", name="schedule-view"),
 url(r"^workout/schedule/(?P<pk>\d+)/edit/$", schedule.ScheduleEditView.as_view(), name="schedule-edit"),
 url(r"^workout/schedule/(?P<pk>\d+)/delete/$", schedule.ScheduleDeleteView.as_view(), name="schedule-delete"),
Beispiel #2
0
        name='preferences'),
    url(r'^user/demo-entries$',
        'misc.demo_entries',
        name='demo-entries'),

    # Workout
    url(r'^workout/overview$', 'workout.overview'),
    url(r'^workout/add$', 'workout.add'),
    url(r'^workout/(?P<pk>\d+)/copy/$',
        'workout.copy_workout',
        name='workout-copy'),
    url(r'^workout/(?P<pk>\d+)/edit/$',
        login_required(WorkoutEditView.as_view()),
        name='workout-edit'),
    url(r'^workout/(?P<pk>\d+)/delete/$',
        login_required(WorkoutDeleteView.as_view()),
        name='workout-delete'),
    url(r'^workout/(?P<id>\d+)/view/$',
        'workout.view',
        name='workout-view'),
    url(r'^workout/(?P<pk>\d+)/log/$',
        login_required(WorkoutLogDetailView.as_view()),
        name='workout-log'),
    url(r'^workout/log/edit-entry/(?P<pk>\d+)$',
        login_required(WorkoutLogUpdateView.as_view()),
        name='workout-log-edit'),

    # Schedules
    url(r'^workout/schedule/overview$',
        'schedule.overview',
        name='schedule-overview'),
Beispiel #3
0
        'user.api_key',
        name='api-key'),

    # Workout
    url(r'^workout/overview$',
        'workout.overview',
        name='workout-overview'),
    url(r'^workout/add$', 'workout.add'),
    url(r'^workout/(?P<pk>\d+)/copy/$',
        'workout.copy_workout',
        name='workout-copy'),
    url(r'^workout/(?P<pk>\d+)/edit/$',
        WorkoutEditView.as_view(),
        name='workout-edit'),
    url(r'^workout/(?P<pk>\d+)/delete/$',
        WorkoutDeleteView.as_view(),
        name='workout-delete'),
    url(r'^workout/(?P<id>\d+)/view/$',
        'workout.view',
        name='workout-view'),
    url(r'^workout/(?P<pk>\d+)/log/$',
        WorkoutLogDetailView.as_view(),
        name='workout-log'),
    url(r'^workout/log/edit-entry/(?P<pk>\d+)$',
        WorkoutLogUpdateView.as_view(),
        name='workout-log-edit'),

    # Schedules
    url(r'^workout/schedule/overview$',
        'schedule.overview',
        name='schedule-overview'),