-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'LocalTimezone' object has no attribute 'localize' #1019
Comments
Do you have |
Bingo! Working fine now I've installed pytz. Thanks :) |
@gwaldo Do you have a few mins to tackle this doc bug? |
@obfuscurity Which would you say is the doc bug?
|
Number 1. |
@obfuscurity I'll add to the docs. Can / Should I add it to the code so that it's done automagically (w/ Twisted, et al.)? |
It's already in requirements.txt so it shouldn't be an issue unless you try to install manually. |
@gwaldo Do you have time to finish this up anytime soon? |
Yes, I can do that tonight. Apologies for my inattention. End-of-year madness at both home & work. |
That looks fabulous, @deniszh ✨ Are you doing the same for Master, or shall I? |
Simple cherry-pick - #1062 |
Thanks! |
pytz is required for handling timezones. See graphite-project/graphite-web#1019
It's now a requirement - https://github.com/graphite-project/graphite-web/blob/master/docs/install.rst#dependencies Related issue - graphite-project/graphite-web#1019
It's now a requirement - https://github.com/graphite-project/graphite-web/blob/master/docs/install.rst#dependencies Related issue - graphite-project/graphite-web#1019
It's now a requirement - https://github.com/graphite-project/graphite-web/blob/master/docs/install.rst#dependencies Related issue - graphite-project/graphite-web#1019
The bug is fixed in the graphite project, maybe it will be better to just update it. Source: graphite-project/graphite-web#1019
I have the same problem when use uwsgi with graphite.wsgi.example. |
@billowqiu - yes, that will also work, but please note that development server is for development only, and not for production load. |
@deniszh @billowqiu but anybody know how to fix this on Centos7 if i try to get the render i wanna update this process i ve fix this problem so i think its about the permission problem,i think the wsgi file cannot access out depandency lib,so i try apactl -v 2.4.* so it can rend the data out. so it s because the mod wsgi file cannot access our depandency,problem solved |
@stttt2003pk install pytz? |
I am getting this error when trying to render a date range defined by absolute date/times. If I use relative (from=-24h and until=now or similar) then the graph renders fine.
Graphite version 0.9.x installed from git today.
Django version 1.7.1.
Timezone in local_settings.py is set to
TIME_ZONE = 'Europe/London'
The only thing I am doing slightly different than normal is using Waitress rather than Apache. I am using the /opt/graphite/conf/graphite.wsgi.example with the following lines added at the bottom:
The text was updated successfully, but these errors were encountered: