zhebrak / django-statsy

Statistics for your Django project
MIT License
63 stars 9 forks source link

Postgres option (dashboard time aggregation) #20

Open zhebrak opened 9 years ago

jacopsd commented 6 years ago

for postgres: In file stats.py#53:

time_extract_postgres = "to_char(created_at, 'yyyy:mm:dd:hh24:mi')"
if settings.DATABASES['default']['ENGINE'] == 'django.db.backends.postgresql_psycopg2':
    time_extract = time_extract_postgres