klipstein/dojango — Issue #89: 91 - AttributeError: 'module' object has no attribute 'DEFAULT_DATE_INPUT_FORMATS' 
Author: klipstein
Created: 2011-11-06 13:37:26+00:00
State: open

(django1.localnet)dotz@linux-dev:~/django1.localnet$ manage shell
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)

>>> import dojango
>>> dojango.get_version()
'0.5.2'

>>> import django
>>> django.VERSION
(1, 3, 1, 'final', 0)

>>> from dojango.forms.fields import *
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/dotz/django1.localnet/lib/python2.7/site-packages/dojango/forms/__init__.py", line 3, in <module>
from fields import *
AttributeError: 'module' object has no attribute 'DEFAULT_DATE_INPUT_FORMATS'

---

Reason:

I am using localised setup of Django (USE_I18N = True
, LANGUAGE_CODE='pl') in settings.py

in Django 1.3.1, DEFAULT_DATE_INPUT_FORMATS can be found in module django/contrib/localflavor/generic/forms.py

Original link: http://code.google.com/p/dojango/issues/detail?id=91