tag regexp strings
This commit is contained in:
parent
454c4eeaa5
commit
bde25f5762
3 changed files with 6 additions and 6 deletions
|
|
@ -100,7 +100,7 @@ if os.path.exists('__init__.py'):
|
|||
local_settings += '\nLOCAL_APPS = ["%s"]\n' % name
|
||||
local_settings_changed = True
|
||||
else:
|
||||
apps = re.compile('(LOCAL_APPS.*?)\]', re.DOTALL).findall(local_settings)[0]
|
||||
apps = re.compile(r'(LOCAL_APPS.*?)\]', re.DOTALL).findall(local_settings)[0]
|
||||
if name not in apps:
|
||||
new_apps = apps.strip() + ',\n"%s"\n' % name
|
||||
local_settings = local_settings.replace(apps, new_apps)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue