Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new carbon ad code * final fixes
- Loading branch information
Peter Bengtsson
committed
May 15, 2018
1 parent
0b0cd64
commit 8654b93
Showing
3 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
import shutil | ||
from django.core.wsgi import get_wsgi_application | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "peterbecom.settings") | ||
application = get_wsgi_application() | ||
|
||
|
||
cache_dir = 'peterbecom-static-content/_FSCACHE/plog' | ||
if os.path.isdir(cache_dir): | ||
shutil.rmtree(cache_dir) | ||
print('Deleted', cache_dir) | ||
|
||
from django.core.cache import cache # noqa | ||
cache.clear() | ||
with open('peterbecom/__init__.py') as f: | ||
code = f.read() | ||
|
||
with open('peterbecom/__init__.py', 'w') as f: | ||
f.write(code) |