from django.conf.urls import url from videos.views import VideoCreateView, VideoListView, VideoDetailView, VideoUpdateView, VideoDeleteView urlpatterns = [ url(r'^create/$', VideoCreateView.as_view(), name='create'), url(r'^$', VideoListView.as_view(), name='list'), url(r'^(?P<slug>[\w-]+)/$', VideoDetailView.as_view(), name='detail'), url(r'^(?P<slug>[\w-]+)/edit/$', VideoUpdateView.as_view(), name='update'), url(r'^(?P<slug>[\w-]+)/delete/$', VideoDeleteView.as_view(), name='delete'), ]
from .views1 import Home, Base, Team, Landingpage from videos.views import VideoListView from videos.views import (VideoDetailView, VideoCreateView, VideoUpdateView, VideoDeleteView) from .views1 import UserCreateView, UserCreateDoneView #templates안에 기본 index파일을 넣어주고 mysite안에 있는 urls를 위에 import해주고 밑에 url을 연결해준다 urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'accounts/', include('django.contrib.auth.urls')), url(r'accounts/register/$', UserCreateView.as_view(), name='register'), url(r'accounts/register/done/$', UserCreateDoneView.as_view(), name='register_done'), url(r'^$', Home.as_view()), url(r'^base/$', Base.as_view()), url(r'^team/$', Team.as_view()), url(r'^index/$', Landingpage.as_view()), url(r'^videos/$', VideoListView.as_view(), name='videos'), url(r'^videos/(?P<pk>\d+)/$', VideoDetailView.as_view(), name='video-detail'), url(r'^videos/create/$', VideoCreateView.as_view(), name='video-create'), url(r'^videos/(?P<pk>\d+)/update/$', VideoUpdateView.as_view(), name='video-update'), url(r'^videos/(?P<pk>\d+)/delete/$', VideoDeleteView.as_view(), name='video-delete'), url(r'^photo/', include('photo.urls', namespace='photo')) ]
from .views import Team from videos.views import VideoListView from videos.views import VideoDetailView from videos.views import VideoCreateView, VideoUpdateView, VideoDeleteView from .views import Landingpage, UserCreateView, UserCreateDoneView # from videos.views import home # from videos.views import HomeView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^accounts/', include('django.contrib.auth.urls')), url(r'^accounts/register/$', UserCreateView.as_view(), name='register'), url(r'^accounts/done/$', UserCreateDoneView.as_view(), name='register_done'), #url(r'^$', home, name='home'), #url(r'^$', HomeView.as_view(), name='home'), #r은 read 읽는 것 / ^$:아무것도 안들어 간것. ^:시작 / $:끝 url(r'^$', Home.as_view()), url(r'^base/$', Base.as_view()), url(r'^team/$', Team.as_view()), # url(r'^about/$', about), # url(r'^team/$', team), url(r'^video/$', VideoListView.as_view(), name='video'), url(r'^video/(?P<pk>\d+)/$', VideoDetailView.as_view(), name='video-detail'), url(r'^video/create/$', VideoCreateView.as_view(), name='video-create'), url(r'^video/(?P<pk>\d+)/update/$', VideoUpdateView.as_view(), name='video-update'), url(r'^video/(?P<pk>\d+)/delete/$', VideoDeleteView.as_view(), name='video-delete'), url(r'^index/$', Landingpage.as_view()), url(r'^photo/', include("photo.urls", namespace='photo')) ]