from social.templatetags.social_tags import choose_cite
- @never_cache
def main_page(request):
last_published = Book.objects.filter(parent=None).order_by('-created_at')[:4]
cite = choose_cite(RequestContext(request))
return HttpResponseRedirect(urlquote_plus(request.GET.get('next', '/'), safe='/?='))
+ @never_cache
def clock(request):
- """ Provides server time for jquery.countdown,
+ """ Provides server UTC time for jquery.countdown,
in a format suitable for Date.parse()
"""
- return HttpResponse(datetime.now().strftime('%Y/%m/%d %H:%M:%S'))
+ return HttpResponse(datetime.utcnow().strftime('%Y/%m/%d %H:%M:%S UTC'))
def publish_plan(request):
Django>=1.5,<1.6
fnpdjango>=0.1.6,<0.2
South>=0.7 # migrations for django
-django-pipeline>=1.2,<1.3
+django-pipeline>=1.2.24,<1.3
django-pagination>=1.0
django-maintenancemode>=0.10
django-piston>=0.2.2.1,<0.2.3
- django-jsonfield>=0.9,<0.10
+ -e git+git://github.com/bradjasper/django-jsonfield.git@e67ec8c3652e61d8b47cc8db012a63f5ad39323d#egg=django-jsonfield
django-picklefield
#django-allauth<0.10 with migration fix
-e git+git://github.com/rczajka/django-allauth.git@4ecda71b81f9311dea4febe1d2d0105f23c642c7#egg=django-allauth
+pytz
+pyScss
+
# Some contrib apps still need it
simplejson
# MySQL-python>=1.2,<2.0
# celery tasks
-django-celery>=2.5.1
+django-celery>=3.0.11
django-kombu
# spell checking
egenix-mx-base
sunburnt
+
+django-getpaid>=1.4,<1.5
)
MIDDLEWARE_CLASSES = [
- 'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'piwik.django.middleware.PiwikMiddleware',
'maintenancemode.middleware.MaintenanceModeMiddleware',
'django.middleware.common.CommonMiddleware',
- 'django.middleware.cache.FetchFromCacheMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
]
'waiter',
'search',
'oai',
+ 'funding',
]
+GETPAID_BACKENDS = (
+ 'getpaid.backends.payu',
+)
+
INSTALLED_APPS_CONTRIB = [
# external
'django.contrib.auth',
'djkombu',
'honeypot',
#'django_nose',
+ 'fnpdjango',
+ 'getpaid',
+ 'getpaid.backends.payu',
#allauth stuff
'uni_form',