Bonjour,
mon application cè doctor:
Doctor
| template (header.html , index.html, account.html, about.html...)
| static
| views.py
| model.py
| _init.py etc....
Je voudrais faire des lien entre les differents page de mon template par
exemple lien de la page index.html vers la page account.html
avec urlpatterns ca ne marche pas, comment je peux faire ca?
voici mon code urls.py
[code]from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('all.doctor.views',
url(r'^$', 'index', name='index'),
url(r'^account$', 'account', name='account' ),
url(r'^$', 'login', name='login'),
# url(r'^$', 'all.v# url(r'^about$', 'about',
name='about'iews.home', name='home'),
# url(r'^all/', include('all.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)),
)
[/code]
et mon code views.py
[code]
from django.shortcuts import render_to_response
def index(request):
return render_to_response('template/index.html')
def account(request):
return render_to_response('template/account.html')
[/code]
merci
_______________________________________________
django mailing list
[email protected]
http://lists.afpy.org/mailman/listinfo/django