конфиг такой
[uwsgi]
plugins = python27
chdir = /opt/stats/
pythonpath = ..
env = DJANGO_SETTINGS_MODULE=stats.settings
module = django.core.handlers.wsgi:WSGIHandler()
touch-reload = /opt/stats/touchme
[uwsgi]
plugins = python27
chdir = /opt/stats/
pythonpath = ..
env = DJANGO_SETTINGS_MODULE=stats.settings
module = django.core.handlers.wsgi:WSGIHandler()
touch-reload = /opt/stats/touchme
... today = datetime.date.today() ... if report_term == "today": start_day = today end_day = today + timedelta(days=1) ... q_table = list(UserDownloads.objects.filter(date__gte = start_day, date__lt = end_day ... results_table = DownloadsTable(q_table) results_table.paginate(page=request.GET.get('page', 1), per_page=25) return render_to_response('index.html', {'table': results_table},context_instance=RequestContext(request))