# Path: main/views.py
# class HomeView(TemplateView):
#     #View to handle the home page
#     template_name = "home.html"


from django.conf.urls import patterns, url
from main.views import HomeView

urlpatterns = patterns('',
    url(r'^$', HomeView.as_view(), name='home'),
   # url(r'^login', 'main.views.login', name='login'),
    url(r'^signup', 'main.views.signup', name='register'),
    #url(r'^logout', 'main.views.logout', name='logout'),
    url(r'^upload', 'videos.views.upload', name='upload'),
    url(r'^video/(?P<video_id>\d+)', 'videos.views.view_video', name='view_video'),

# Path: main/views.py
# class HomeView(TemplateView):
#     #View to handle the home page
#     template_name = "home.html"


# Path: main/urls.py
from django.conf.urls import patterns, url
from main.views import HomeView


urlpatterns = patterns('',
    url(r'^$', HomeView.as_view(), name='home'),
   # url(r'^login', 'main.views.login', name='login'),
    url(r'^signup', 'main.views.signup', name='register'),
    #url(r'^logout', 'main.views.logout', name='logout'),
    url(r'^upload', 'videos.views.upload', name='upload'),
    url(r'^video/(?P<video_id>\d+)', 'videos.views.view_video', name='view_video'),

    url(r'^watch/(?P<video_id>\d+)', 'videos.views.view_video', name='view_video'),