97 } |
97 } |
98 |
98 |
99 patterns = [] |
99 patterns = [] |
100 |
100 |
101 page_name = "Home Page" |
101 page_name = "Home Page" |
102 patterns += [(r'^$', 'soc.views.models.%(module_name)s.main_public', |
102 patterns += [(r'^$', 'soc.views.models.%(module_name)s.main_public', |
103 page_name)] |
103 page_name)] |
104 |
104 |
105 page_name = "Maintenance" |
105 page_name = "Maintenance" |
106 patterns += [(r'^maintenance$', |
106 patterns += [(r'^maintenance$', |
107 'soc.views.models.%(module_name)s.maintenance', page_name)] |
107 'soc.views.models.%(module_name)s.maintenance', page_name)] |
108 |
108 |
109 page_name = "Edit Site" |
109 page_name = "Edit Site" |
110 patterns += [(r'^%(url_name)s/(?P<access_type>edit)$', |
110 patterns += [(r'^%(url_name)s/(?P<access_type>edit)$', |
111 'soc.views.models.%(module_name)s.main_edit', |
111 'soc.views.models.%(module_name)s.main_edit', |
114 if soc.logic.system.isDebug(): |
114 if soc.logic.system.isDebug(): |
115 patterns += [('^seed_db$', 'soc.models.seed_db.seed', "Seed DB"), |
115 patterns += [('^seed_db$', 'soc.models.seed_db.seed', "Seed DB"), |
116 ('^clear_db$', 'soc.models.seed_db.clear', "Clear DB"), |
116 ('^clear_db$', 'soc.models.seed_db.clear', "Clear DB"), |
117 ('^reseed_db$', 'soc.models.seed_db.reseed', "Reseed DB"), |
117 ('^reseed_db$', 'soc.models.seed_db.reseed', "Reseed DB"), |
118 ('^seed_many$', 'soc.models.seed_db.seed_many', "Seed Many"), |
118 ('^seed_many$', 'soc.models.seed_db.seed_many', "Seed Many"), |
|
119 ('^new_seed_many$', 'soc.models.seed_db.new_seed_many', |
|
120 "New Seed Many"), |
119 ] |
121 ] |
120 |
122 |
121 new_params['extra_django_patterns'] = patterns |
123 new_params['extra_django_patterns'] = patterns |
122 |
124 |
123 params = dicts.merge(params, new_params) |
125 params = dicts.merge(params, new_params) |