[pyar] Django y CSS3
Maxi
maxirobaina en gmail.com
Mie Feb 13 22:43:35 ART 2013
El 13/02/2013 20:02, "Leax Guidi" <lg.leax en gmail.com> escribió:
>
> 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')),
> )
Fijate en el link que te pase. Te estaría faltando indicarle a django que
sirva los archivos estáticos a través del server de desarrollo.
> --------------------------------------
> ----- 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'),
> )
> -----------------------
>
> _______________________________________________
> pyar mailing list pyar en python.org.ar
> http://listas.python.org.ar/listinfo/pyar
>
> PyAr - Python Argentina - Sitio web: http://www.python.org.ar/
>
> La lista de PyAr esta Hosteada en USLA - Usuarios de Software Libre de
Argentina - http://www.usla.org.ar
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20130213/72e21bac/attachment.html>
More information about the pyar
mailing list