urls.py 315 B

1234567891011
  1. from django.conf.urls import url
  2. from Ws import views
  3. urlpatterns = [
  4. #url(r'^noticias/$', views.lista_noticias),
  5. #url(r'noticia/(?P<id>[0-9]+)/$', views.detalles_noticia),
  6. url(r'^noticias/$', views.ListaNoticias.as_view()),
  7. url(r'noticia/(?P<id>[0-9]+)/$', views.DetalleNoticia.as_view()),
  8. ]