[pyar] Django y CSS3
Leax Guidi
lg.leax en gmail.com
Mie Feb 13 20:01:18 ART 2013
si ya tire el collectstatics, asi tengo los urls.py
---- En el proyecto -----
from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'proyectos.views.home', name='home'),
# url(r'^proyectos/', include('proyectos.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# url(r'^admin/', include(admin.site.urls)),
url(r'^medicos/', include('medicos.urls')),
)
--------------------------------------
----- En la app ------
from django.conf.urls import patterns, include, url
from django.views.generic import DetailView, ListView
#from polls.models import Poll
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
#url(r'^$', 'prueba_django.views.home', name='home'),
#url(r'^prueba_django/', include('prueba_django.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^$',
ListView.as_view(
queryset='',
#Poll.objects.order_by('-pub_date')[:5],
context_object_name='Medicos',
template_name='medicos/index.html')),
#url(r'^(?P<pk>\d+)/$',
# DetailView.as_view(
# model=Poll,
# template_name='polls/detail.html')),
#url(r'^(?P<pk>\d+)/results/$',
# DetailView.as_view(
# model=Poll,
# template_name='polls/results.html'),
# name='poll_results'),
#url(r'^(?P<poll_id>\d+)/vote/$', 'polls.views.vote'),
)
-----------------------
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20130213/3a9f05b5/attachment.html>
More information about the pyar
mailing list