Coder Social home page Coder Social logo

Comments (6)

yprez avatar yprez commented on June 17, 2024

@geotre thanks for reporting, I'll check this.

from django-logentry-admin.

yprez avatar yprez commented on June 17, 2024

Apparently, this is not related to this library.

Django requires pytz when working with sqlite3 (and maybe other databases) when timezone support is enabled, see here:
https://docs.djangoproject.com/en/1.9/topics/i18n/timezones/#overview
and
http://stackoverflow.com/questions/21084332/django-tutorial-improperlyconfigured-exception-pytz-isnt-installed

2 quick fixes:

  1. Install pytz with pip install pytz.
  2. Set USE_TZ = False in the settings.

The first option is better in my opinion.

from django-logentry-admin.

geotre avatar geotre commented on June 17, 2024

Good point. It's strange I didn't come across this earlier. I'm using several packages but this was the first where it showed up.

Thanks! 😄

from django-logentry-admin.

yprez avatar yprez commented on June 17, 2024

I think it's the filtering by date in the admin that triggers this, not 100% sure though.

from django-logentry-admin.

geotre avatar geotre commented on June 17, 2024

Ok cool thanks for the heads up

On Tue, 9 Feb 2016 14:34 Yuri Prezument [email protected] wrote:

I think it's the filtering by date in the admin that triggers this, not
100% sure though.


Reply to this email directly or view it on GitHub
#18 (comment)
.

from django-logentry-admin.

paulnicholsen27 avatar paulnicholsen27 commented on June 17, 2024

Same issue--I got it when I added the line date_hierarchy = 'publish_date' to my model admin. Pip installed pytz, removed wsgi.pyc, touch wsgi.py, and restarted my local runserver, same issue.

from django-logentry-admin.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.