title: url design in django-cms
body: <p>I am using django-cms to design a site,as of now i had to create a basic home page with a menu bar like <code>About Us</code>, <code>Products</code>, <code>Contact Us</code> etc., </p>
  
  <p>I had done all the necessary settings of <code>django</code> and <code>django-cms</code>, activated the admin section and working perfectly.</p>
  
  <p>I have created a <code>Home Page template</code> that contains the  <code>About Us</code>, <code>Products</code>, <code>Contact Us</code> and created a page called <code>aboutus</code> through django-cms <code>admin</code> with a slug <code>about-us</code>.</p>
  
  <p>Now i had given that slug <code>about-us</code> which is nothing but a url in the anchor tag for <code>About Us</code> menu , so when i clicked the link its working fine and redirecting me to the page <code>aboutus</code> with the url in the browser as <code>http://localhost:8080/aboutus</code>.</p>
  
  <p>but the problem is , when i clicked again on the <code>aboutus</code> link its generating the url twice that is like <code>http://localhost:8080/aboutus/aboutus</code>, i mean for each and every click, the slug <code>aboutus</code> is appending to the url.</p>
  
  <p>Below are my codes</p>
  
  <p><strong>settings.py</strong></p>
  
  <pre><code>TEMPLATE_CONTEXT_PROCESSORS = (
       .......
      'cms.context_processors.media',
      'sekizai.context_processors.sekizai',
  )
  CMS_TEMPLATES = (
      ('home.html', gettext('Home')),
      ('aboutus.html', gettext("About Us")),
      ('management_team.html',gettext('Management Team')),
  )
  .....
  ....
  </code></pre>
  
  <p><strong>urls.py</strong></p>
  
  <pre><code>from django.conf.urls.defaults import *
  from django.contrib import admin
  from django.conf import settings
  
  admin.autodiscover()
  
  urlpatterns = patterns('',
  
       url(r'^admin/', include(admin.site.urls)),
       url(r'^', include('cms.urls')),
  )
  </code></pre>
  
  <p><strong>home.html</strong></p>
  
  <pre><code>{% load cms_tags sekizai_tags %}
  {% load staticfiles %}
  {% load staticfiles %}
  &lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
      &lt;title&gt;{% block head %}{% endblock %}&lt;/title&gt;
        {% render_block "css" %}
    &lt;/head&gt;
    &lt;body&gt;
        {% cms_toolbar %}
          &lt;div class="submenu"&gt;
              &lt;a href="about-us"&gt;About Company Services&lt;/a&gt;&lt;br /&gt;
              &lt;a href="management-team"&gt;Our Management Team&lt;/a&gt;
          &lt;/div&gt;
          &lt;a href="about-us" class="menu aboutus"&gt;About Us&lt;/a&gt;&lt;/div&gt;
        {% render_block "js" %}
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So above is my overall code,in which <code>home.html</code> displays a home page with the menu as below
  (by using some css styles)</p>
  
  <pre><code>   About Us
          About Company Services 
          Our Management Team
  </code></pre>
  
  <p>So when i clicked on the the link  <code>About Us</code> the url generating is <code>http://localhost:8000/about-us/</code> and immediately when we clicked on <code>About Company Services</code> the url generating is <code>http://localhost:8000/about-us/about-us</code> and <code>http://localhost:8000/about-us/about-us/our-management-team/</code> when clicked on <code>Our Management Team</code> immediately . So the url is appending to the previous url instead of appending to the <code>domain name</code>.</p>
  
  <p>I have created all the pages by using the created templates from django-cms admin as </p>
  
  <pre><code>   Page Name                slug
  
     About Us                 about-us
     About Company Services   about-us 
     Our Management Team      our-management-team 
  </code></pre>
  
  <p>So whats wrong in the above code, why the urls are appending to the previous urls instead of appending to the domain ?</p>
  
  <p>How to create a <code>childs(About Company Services,Our Management Team )</code> from the django-cms admin to the <code>parent(About Us)</code> </p>
  
  <p>Actually i want  to create two pages<code>(About Company Services,Our Management Team )</code> under <code>About Us</code> page , how can we achieve this in django-cms admin</p>
  
  <p>Can anyone please let me know the concept of menus in django-cms, i have tried and read the documentation of <code>django-cms many many many times</code> but unable to understand the concept of <code>menus</code> so approached <code>SO</code></p>