Re: Changing URL

2014-08-25 Thread Babatunde Akinyanmi
On 25 Aug 2014 22:12, "Jagger" wrote: > > It works. Thanks. I removed the hardcoded URLs from the templates and I refer to index in this way: > > NEWS > > You asked why I gave the two patterns the same name. > The website default page is 'index'. It contains the news. The News menu also points to

Re: Changing URL

2014-08-25 Thread Jagger
It works. Thanks. I removed the hardcoded URLs from the templates and I refer to index in this way: NEWS You asked why I gave the two patterns the same name. The website default page is 'index'. It contains the news. The News menu also points to index. Pattern A maps index to root: url(r'^$', vi

Re: Changing URL

2014-08-25 Thread Babatunde Akinyanmi
Ok. I'm replying inline: On 24 Aug 2014 18:43, "Jagger" wrote: > > The link is in the base.html of spweb app: > > NEWS > This link is relative so the browser will append the href attribute to the present URL. You should change it to: NEWS >> >> On 24 Aug 2014 12:30, "Jagger" wrote: >>> >>> Hi E

Re: Changing URL

2014-08-24 Thread Jagger
The link is in the base.html of spweb app: NEWS 2014. augusztus 24., vasárnap 16:59:53 UTC+2 időpontban Tundebabzy a következőt írta: > > How did you write the link as a relative link un your template? > On 24 Aug 2014 12:30, "Jagger" > wrote: > >> Hi Everyone! >> >> >> >> I use Python 2.7

Re: Changing URL

2014-08-24 Thread Babatunde Akinyanmi
How did you write the link as a relative link un your template? On 24 Aug 2014 12:30, "Jagger" wrote: > Hi Everyone! > > > > I use Python 2.7 and Django 1.6 on Xubuntu 14.04. > > > I'm a beginner. My problem is: > > > The root URLConf: > > from django.conf.urls import patterns, include, url >

Changing URL

2014-08-24 Thread Jagger
Hi Everyone! I use Python 2.7 and Django 1.6 on Xubuntu 14.04. I'm a beginner. My problem is: The root URLConf: from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^admin/', include(admi