app/soc/views/models/site.py
changeset 574 b7b77b4c9612
parent 569 96d9655a7538
child 586 a4a36b06a870
equal deleted inserted replaced
573:1b37588c4922 574:b7b77b4c9612
   147 
   147 
   148   def getDjangoURLPatterns(self):
   148   def getDjangoURLPatterns(self):
   149     """See base.View.getDjangoURLPatterns().
   149     """See base.View.getDjangoURLPatterns().
   150     """
   150     """
   151 
   151 
       
   152     page_name = "Home Page"
   152     patterns = super(View, self).getDjangoURLPatterns()
   153     patterns = super(View, self).getDjangoURLPatterns()
   153     patterns += [(r'^$','soc.views.models.site.main_public')]
   154     patterns += [(r'^$','soc.views.models.site.main_public',
       
   155                  {'page_name': page_name}, page_name)]
   154 
   156 
   155     page_name = "Edit Site Settings"
   157     page_name = "Edit Site Settings"
   156     patterns += [(r'^' + self._params['url_name'] + '/edit$',
   158     patterns += [(r'^' + self._params['url_name'] + '/edit$',
   157                   'soc.views.models.site.main_edit',
   159                   'soc.views.models.site.main_edit',
   158                   {'page_name': page_name}, page_name)]
   160                   {'page_name': page_name}, page_name)]