fangsterr
fangsterr

Reputation: 3830

How do I include 'pytz' package in my Django app for Heroku deployment?

I'm trying to include the pytz timezone package from (http://pytz.sourceforge.net/) into my Django app (version 1.3), so I can have improved time-zone functionality. I'm worried however that this python package won't be deployed onto my app in Heroku. How would I ensure that this package gets deployed on Heroku?

Or, if someone can tell me point me to ways to deal with TZ issues in Django 1.3, I'd highly appreciate it.

Upvotes: 1

Views: 3279

Answers (2)

Peter Tseng
Peter Tseng

Reputation: 1304

The package must be added to the requirement.txt file.

One way to determine the version number is to install things locally:

$ pip install pytz
$ python
>> import pytz
>> pytz.__version__
'2013b'

Then in requirements.txt append the following line:

pytz==2013b

Upvotes: 6

Burhan Khalid
Burhan Khalid

Reputation: 174708

If you want the package to be deployed, add it to your requirements.txt file.

Upvotes: 3

Related Questions