Hi all,
I used to overwrite DEFAULT_DATETIME_INPUT_FORMATS in my settings.py,
to allow for french date formats.
It used to work perfectly, but since rev 6368, it raises a exception.
Anyone knows what's going on ?
Regards,
Olivier
settings.py:
========
import django.newforms.fields
django.newforms.fields.DEFAULT_DATE_INPUT_FORMATS = ('%d/%m/%Y', '%Y/
%m/%d')
traceback:
=======
Traceback (most recent call last):
File "D:\Code\manage.py", line 4, in <module>
import settings # Assumed to be in the same directory.
File "D:\Code\settings.py", line 23, in <module>
import django.newforms.fields
File "D:\Lib\django\newforms\__init__.py", line 15, in <module>
from fields import *
File "D:\Lib\django\newforms\fields.py", line 347, in <module>
URL_VALIDATOR_USER_AGENT = settings.URL_VALIDATOR_USER_AGENT
File "D:\Lib\django\conf\__init__.py", line 28, in __getattr__
self._import_settings()
File "D:\Lib\django\conf\__init__.py", line 57, in _import_settings
self._target = Settings(settings_module)
File "D:\Lib\django\conf\__init__.py", line 83, in __init__
mod = __import__(self.SETTINGS_MODULE, {}, {}, [''])
File "D:\Code\settings.py", line 24, in <module>
django.newforms.fields.DEFAULT_DATE_INPUT_FORMATS = (DATE_FORMAT,
TABLE_DATE_FORMAT)
AttributeError: 'module' object has no attribute 'newforms'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---