diff options
Diffstat (limited to 'apps/blog/signals.py')
-rw-r--r-- | apps/blog/signals.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/apps/blog/signals.py b/apps/blog/signals.py deleted file mode 100644 index a8c0556..0000000 --- a/apps/blog/signals.py +++ /dev/null @@ -1,21 +0,0 @@ -from django.template.loader import render_to_string -from django.conf import settings -from django.template import Context -from django.db.models import get_model -from django.conf import settings - -from locations.models import Region,Country,Route - -from build.base import BuildWriting,BuildMap - -def update_recent(sender, instance, signal, *args, **kwargs): - if not settings.DEVELOPMENT: - if instance.status == 1: - #update homepage, archives and details - b = BuildWriting() - b.build_homepage() - b.build_archive_pages() - b.build_detail_pages() - #update map - b = BuildMap() - b.build()
\ No newline at end of file |