2012-02-29 11:08:03 +01:00
|
|
|
import trans
|
2012-02-29 15:03:45 +01:00
|
|
|
from django.conf import settings
|
2012-03-05 14:47:10 +01:00
|
|
|
from datetime import datetime, date
|
2012-02-29 11:08:03 +01:00
|
|
|
|
|
|
|
def version(request):
|
|
|
|
return {'version': trans.VERSION}
|
|
|
|
|
2012-02-29 15:03:45 +01:00
|
|
|
def title(request):
|
2012-03-02 14:11:32 +01:00
|
|
|
return {'site_title': settings.SITE_TITLE}
|
2012-03-05 14:47:10 +01:00
|
|
|
|
|
|
|
def date(request):
|
|
|
|
return {
|
|
|
|
'current_date': datetime.utcnow().strftime('%Y-%m-%d'),
|
|
|
|
'current_year': datetime.utcnow().strftime('%Y'),
|
|
|
|
'current_month': datetime.utcnow().strftime('%m'),
|
|
|
|
}
|