Sfoglia il codice sorgente

Blog current year

pull/2/head
parent
commit
447711e995
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      rophako/settings.py

+ 3
- 0
rophako/settings.py Vedi File

@@ -29,6 +29,9 @@ class ConfigHandler(object):
basedir=basedir
)
self.photo.root_private = self.photo.root_private.format(basedir=basedir)
self.blog.copyright = self.blog.copyright.format(
year=datetime.datetime.utcnow().strftime("%Y")
)

def print_settings(self):
"""Pretty-print the contents of the configuration."""


Caricamento…
Annulla
Salva