from django.conf.urls import url,include
from django.contrib import admin
from django.views.static import serve
import settings

from rest_framework.routers import DefaultRouter

from catalogo.views import CatalogoViewsets,CategoriaViewsets
from cmsweb.views import *
from carro.views import LineasViewsets,CarroViewsets
from cliente.views import salir,nuevo_usuario,ingresar,DireccionViewsets,ComentarioViewSet,ComentarioImagenViewSet
from pago.views import paypal_paymet,get_stripe_key,definir_pago,stripe_paymet,retorn_paypal,get_pago_contraentrega
from pedido.views import PedidoViewSet,MetodoEnvioViewSet
from ubigeo.views import RegionViewset
from utiles.views import ColorViewsets,TallasViewsets

router = DefaultRouter()
router.register(r'productos', CatalogoViewsets,'productos')
router.register(r'categoria', CategoriaViewsets,'categorias')
router.register(r'cms/paginas', PaginaViewsets,'paginas')
router.register(r'carro/lineas', LineasViewsets,'lineas')
router.register(r'pedidos', PedidoViewSet,'pedidos')
router.register(r'metodos_envio',MetodoEnvioViewSet,'mentodos_envios')
router.register(r'ubigeo',RegionViewset,'ubigeo')
router.register(r'cliente/direcciones',DireccionViewsets,'direcciones')
router.register(r'colores',ColorViewsets,'colores')
router.register(r'tallas',TallasViewsets,'tallas')
router.register(r'comentarios',ComentarioViewSet,'comentarios')
router.register(r'comentarioimgs',ComentarioImagenViewSet,'comentarios_imagenes')


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^api/', include(router.urls)),
    url(r'^api/carro/', include('carro.urls')),   
    #Usauario 
    url(r'^api/user/', include('cliente.urls')),        
    url(r'^ajax/crear/', nuevo_usuario, name='nuevo_usuario'),    
    url(r'^salir/$',salir,name='salir'),
    url(r'^login/$',ingresar,name='salir'),
    #pagos
    url(r'^pago_contraentrega/',get_pago_contraentrega,name='pago_contraentrega'),    
    url(r'^definir_pago/',definir_pago,name='definir_pago'),    
    url(r'^retorno_paypal/',retorn_paypal,name='retorn_paypal'),    
    url(r'^pago/stripe/$',stripe_paymet,name='pago_stripe'),
    url(r'^get_stripe_key/$',get_stripe_key,name='get_key'),    
    url(r'^pago/paypal/', paypal_paymet,name = 'pago_paypal'),    
    url(r'^hardcode/get/paypal/', include('paypal.standard.ipn.urls')),
    #Web
    url(r'^',include('cmsweb.urls')),
]
if settings.DEBUG:
    urlpatterns = [
    url(r'^media/(?P<path>.*)$', serve,
        {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
] + urlpatterns

#from django.conf.urls import include, url
#from django.contrib import admin
#
#import settings
#
#from rest_framework_jwt.views import obtain_jwt_token,verify_jwt_token
#
#from catalogo import views
#from catalogo import views as oficina_views
#from carro.views import LineasViewsets,CarroViewsets
##from cmsweb.views import CarruselViewsets,PageViewsets,MenuViewsets,VerificarView
#from utiles.views import ColorViewsets,TallasViewsets
#from pedido.views import PedidoViewSet,MetodoEnvioViewSet
#from ubigeo.views import RegionViewset
#from cliente.views import DireccionViewsets,ComentarioViewSet,MayoristaViewset,ComentarioImagenViewSet,SuscritoViewset
#from rest_framework.routers import DefaultRouter
#
#router = DefaultRouter()
#
#urlpatterns = [
    #url(r'^admin/', include(admin.site.urls)),
    #url(r'^api/', include(router.urls)),
    #url(r'^api/carro/', include('carro.urls')),
    #url(r'^api/user/', include('cliente.urls')),
    #url(r'^ajax/crear/', 'cliente.views.nuevo_usuario', name='nuevo_usuario'),
    #url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
    #url(r'^api-token-auth/', obtain_jwt_token),
    #url(r'^api-token-verify/', verify_jwt_token),
    #url(r'^salir/$','cliente.views.salir',name='salir'),
    #url(r'^login/$','cliente.views.ingresar',name='salir'),
    ##pagos
    #url(r'^pago_contraentrega/','pago.views.get_pago_contraentrega',name='pago_contraentrega'),    
    #url(r'^definir_pago/','pago.views.definir_pago',name='definir_pago'),    
    #url(r'^retorno_paypal/','pago.views.retorn_paypal',name='retorn_paypal'),    
    #url(r'^pago/stripe/$','pago.views.stripe_paymet',name='pago_stripe'),
    #url(r'^get_stripe_key/$','pago.views.get_stripe_key',name='get_key'),    
    #url(r'^pago/paypal/', 'pago.views.paypal_paymet',name = 'pago_paypal'),    
    #url(r'^hardcode/get/paypal/', include('paypal.standard.ipn.urls')),
    ##api oficina
    #url(r'^api_oficina/',include(router_oficina.urls)),
    #url('', include('social.apps.django_app.urls', namespace='social')),
    #url(r'^oficina/',include('oficina.urls')),    
    #url(r'^',include('cmsweb.urls')),
#
#]
#if settings.DEBUG:
    #urlpatterns = [
    #url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
        #{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
#] + urlpatterns
06780f6f2391d176d3823cb9b8538b877d28b2f9
<mask token>

<mask token>
router.register('productos', CatalogoViewsets, 'productos')
router.register('categoria', CategoriaViewsets, 'categorias')
router.register('cms/paginas', PaginaViewsets, 'paginas')
router.register('carro/lineas', LineasViewsets, 'lineas')
router.register('pedidos', PedidoViewSet, 'pedidos')
router.register('metodos_envio', MetodoEnvioViewSet, 'mentodos_envios')
router.register('ubigeo', RegionViewset, 'ubigeo')
router.register('cliente/direcciones', DireccionViewsets, 'direcciones')
router.register('colores', ColorViewsets, 'colores')
router.register('tallas', TallasViewsets, 'tallas')
router.register('comentarios', ComentarioViewSet, 'comentarios')
router.register('comentarioimgs', ComentarioImagenViewSet,
    'comentarios_imagenes')
<mask token>
if settings.DEBUG:
    urlpatterns = [url('^media/(?P<path>.*)$', serve, {'document_root':
        settings.MEDIA_ROOT, 'show_indexes': True})] + urlpatterns

<mask token>
router = DefaultRouter()
router.register('productos', CatalogoViewsets, 'productos')
router.register('categoria', CategoriaViewsets, 'categorias')
router.register('cms/paginas', PaginaViewsets, 'paginas')
router.register('carro/lineas', LineasViewsets, 'lineas')
router.register('pedidos', PedidoViewSet, 'pedidos')
router.register('metodos_envio', MetodoEnvioViewSet, 'mentodos_envios')
router.register('ubigeo', RegionViewset, 'ubigeo')
router.register('cliente/direcciones', DireccionViewsets, 'direcciones')
router.register('colores', ColorViewsets, 'colores')
router.register('tallas', TallasViewsets, 'tallas')
router.register('comentarios', ComentarioViewSet, 'comentarios')
router.register('comentarioimgs', ComentarioImagenViewSet,
    'comentarios_imagenes')
urlpatterns = [url('^admin/', admin.site.urls), url('^api/', include(router
    .urls)), url('^api/carro/', include('carro.urls')), url('^api/user/',
    include('cliente.urls')), url('^ajax/crear/', nuevo_usuario, name=
    'nuevo_usuario'), url('^salir/$', salir, name='salir'), url('^login/$',
    ingresar, name='salir'), url('^pago_contraentrega/',
    get_pago_contraentrega, name='pago_contraentrega'), url(
    '^definir_pago/', definir_pago, name='definir_pago'), url(
    '^retorno_paypal/', retorn_paypal, name='retorn_paypal'), url(
    '^pago/stripe/$', stripe_paymet, name='pago_stripe'), url(
    '^get_stripe_key/$', get_stripe_key, name='get_key'), url(
    '^pago/paypal/', paypal_paymet, name='pago_paypal'), url(
    '^hardcode/get/paypal/', include('paypal.standard.ipn.urls')), url('^',
    include('cmsweb.urls'))]
if settings.DEBUG:
    urlpatterns = [url('^media/(?P<path>.*)$', serve, {'document_root':
        settings.MEDIA_ROOT, 'show_indexes': True})] + urlpatterns

from django.conf.urls import url, include
from django.contrib import admin
from django.views.static import serve
import settings
from rest_framework.routers import DefaultRouter
from catalogo.views import CatalogoViewsets, CategoriaViewsets
from cmsweb.views import *
from carro.views import LineasViewsets, CarroViewsets
from cliente.views import salir, nuevo_usuario, ingresar, DireccionViewsets, ComentarioViewSet, ComentarioImagenViewSet
from pago.views import paypal_paymet, get_stripe_key, definir_pago, stripe_paymet, retorn_paypal, get_pago_contraentrega
from pedido.views import PedidoViewSet, MetodoEnvioViewSet
from ubigeo.views import RegionViewset
from utiles.views import ColorViewsets, TallasViewsets
router = DefaultRouter()
router.register('productos', CatalogoViewsets, 'productos')
router.register('categoria', CategoriaViewsets, 'categorias')
router.register('cms/paginas', PaginaViewsets, 'paginas')
router.register('carro/lineas', LineasViewsets, 'lineas')
router.register('pedidos', PedidoViewSet, 'pedidos')
router.register('metodos_envio', MetodoEnvioViewSet, 'mentodos_envios')
router.register('ubigeo', RegionViewset, 'ubigeo')
router.register('cliente/direcciones', DireccionViewsets, 'direcciones')
router.register('colores', ColorViewsets, 'colores')
router.register('tallas', TallasViewsets, 'tallas')
router.register('comentarios', ComentarioViewSet, 'comentarios')
router.register('comentarioimgs', ComentarioImagenViewSet,
    'comentarios_imagenes')
urlpatterns = [url('^admin/', admin.site.urls), url('^api/', include(router
    .urls)), url('^api/carro/', include('carro.urls')), url('^api/user/',
    include('cliente.urls')), url('^ajax/crear/', nuevo_usuario, name=
    'nuevo_usuario'), url('^salir/$', salir, name='salir'), url('^login/$',
    ingresar, name='salir'), url('^pago_contraentrega/',
    get_pago_contraentrega, name='pago_contraentrega'), url(
    '^definir_pago/', definir_pago, name='definir_pago'), url(
    '^retorno_paypal/', retorn_paypal, name='retorn_paypal'), url(
    '^pago/stripe/$', stripe_paymet, name='pago_stripe'), url(
    '^get_stripe_key/$', get_stripe_key, name='get_key'), url(
    '^pago/paypal/', paypal_paymet, name='pago_paypal'), url(
    '^hardcode/get/paypal/', include('paypal.standard.ipn.urls')), url('^',
    include('cmsweb.urls'))]
if settings.DEBUG:
    urlpatterns = [url('^media/(?P<path>.*)$', serve, {'document_root':
        settings.MEDIA_ROOT, 'show_indexes': True})] + urlpatterns

from django.conf.urls import url,include
from django.contrib import admin
from django.views.static import serve
import settings

from rest_framework.routers import DefaultRouter

from catalogo.views import CatalogoViewsets,CategoriaViewsets
from cmsweb.views import *
from carro.views import LineasViewsets,CarroViewsets
from cliente.views import salir,nuevo_usuario,ingresar,DireccionViewsets,ComentarioViewSet,ComentarioImagenViewSet
from pago.views import paypal_paymet,get_stripe_key,definir_pago,stripe_paymet,retorn_paypal,get_pago_contraentrega
from pedido.views import PedidoViewSet,MetodoEnvioViewSet
from ubigeo.views import RegionViewset
from utiles.views import ColorViewsets,TallasViewsets

router = DefaultRouter()
router.register(r'productos', CatalogoViewsets,'productos')
router.register(r'categoria', CategoriaViewsets,'categorias')
router.register(r'cms/paginas', PaginaViewsets,'paginas')
router.register(r'carro/lineas', LineasViewsets,'lineas')
router.register(r'pedidos', PedidoViewSet,'pedidos')
router.register(r'metodos_envio',MetodoEnvioViewSet,'mentodos_envios')
router.register(r'ubigeo',RegionViewset,'ubigeo')
router.register(r'cliente/direcciones',DireccionViewsets,'direcciones')
router.register(r'colores',ColorViewsets,'colores')
router.register(r'tallas',TallasViewsets,'tallas')
router.register(r'comentarios',ComentarioViewSet,'comentarios')
router.register(r'comentarioimgs',ComentarioImagenViewSet,'comentarios_imagenes')


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^api/', include(router.urls)),
    url(r'^api/carro/', include('carro.urls')),   
    #Usauario 
    url(r'^api/user/', include('cliente.urls')),        
    url(r'^ajax/crear/', nuevo_usuario, name='nuevo_usuario'),    
    url(r'^salir/$',salir,name='salir'),
    url(r'^login/$',ingresar,name='salir'),
    #pagos
    url(r'^pago_contraentrega/',get_pago_contraentrega,name='pago_contraentrega'),    
    url(r'^definir_pago/',definir_pago,name='definir_pago'),    
    url(r'^retorno_paypal/',retorn_paypal,name='retorn_paypal'),    
    url(r'^pago/stripe/$',stripe_paymet,name='pago_stripe'),
    url(r'^get_stripe_key/$',get_stripe_key,name='get_key'),    
    url(r'^pago/paypal/', paypal_paymet,name = 'pago_paypal'),    
    url(r'^hardcode/get/paypal/', include('paypal.standard.ipn.urls')),
    #Web
    url(r'^',include('cmsweb.urls')),
]
if settings.DEBUG:
    urlpatterns = [
    url(r'^media/(?P<path>.*)$', serve,
        {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
] + urlpatterns

#from django.conf.urls import include, url
#from django.contrib import admin
#
#import settings
#
#from rest_framework_jwt.views import obtain_jwt_token,verify_jwt_token
#
#from catalogo import views
#from catalogo import views as oficina_views
#from carro.views import LineasViewsets,CarroViewsets
##from cmsweb.views import CarruselViewsets,PageViewsets,MenuViewsets,VerificarView
#from utiles.views import ColorViewsets,TallasViewsets
#from pedido.views import PedidoViewSet,MetodoEnvioViewSet
#from ubigeo.views import RegionViewset
#from cliente.views import DireccionViewsets,ComentarioViewSet,MayoristaViewset,ComentarioImagenViewSet,SuscritoViewset
#from rest_framework.routers import DefaultRouter
#
#router = DefaultRouter()
#
#urlpatterns = [
    #url(r'^admin/', include(admin.site.urls)),
    #url(r'^api/', include(router.urls)),
    #url(r'^api/carro/', include('carro.urls')),
    #url(r'^api/user/', include('cliente.urls')),
    #url(r'^ajax/crear/', 'cliente.views.nuevo_usuario', name='nuevo_usuario'),
    #url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
    #url(r'^api-token-auth/', obtain_jwt_token),
    #url(r'^api-token-verify/', verify_jwt_token),
    #url(r'^salir/$','cliente.views.salir',name='salir'),
    #url(r'^login/$','cliente.views.ingresar',name='salir'),
    ##pagos
    #url(r'^pago_contraentrega/','pago.views.get_pago_contraentrega',name='pago_contraentrega'),    
    #url(r'^definir_pago/','pago.views.definir_pago',name='definir_pago'),    
    #url(r'^retorno_paypal/','pago.views.retorn_paypal',name='retorn_paypal'),    
    #url(r'^pago/stripe/$','pago.views.stripe_paymet',name='pago_stripe'),
    #url(r'^get_stripe_key/$','pago.views.get_stripe_key',name='get_key'),    
    #url(r'^pago/paypal/', 'pago.views.paypal_paymet',name = 'pago_paypal'),    
    #url(r'^hardcode/get/paypal/', include('paypal.standard.ipn.urls')),
    ##api oficina
    #url(r'^api_oficina/',include(router_oficina.urls)),
    #url('', include('social.apps.django_app.urls', namespace='social')),
    #url(r'^oficina/',include('oficina.urls')),    
    #url(r'^',include('cmsweb.urls')),
#
#]
#if settings.DEBUG:
    #urlpatterns = [
    #url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
        #{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
#] + urlpatterns