diff --git a/install.py b/install.py index 20a4484..64a49f1 100755 --- a/install.py +++ b/install.py @@ -105,6 +105,13 @@ if os.path.exists('__init__.py'): new_apps = apps.strip() + ',\n"%s"\n' % name local_settings = local_settings.replace(apps, new_apps) local_settings_changed = True + if 'LOCAL_URLPATTERNS' not in local_settings: + local_settings += ''' +LOCAL_URLPATTERNS = [ + [r'^(?P[A-Z0-9].*)/source(?P[\d\.]+)\.(?P.*)$', 'p_for_power.views.source_frame'], +] +''' + local_settings_changed = True if local_settings_changed: with open(local_settings_py, 'w') as fd: fd.write(local_settings)