I have a Django site in production with Apache and WSGI. Today, the site hit several errors exactly like the one below. When I tried the same URLs that caused the errors, they worked fine. I've hit memory errors with this site before, but never anything like this. Has anyone else seen this sort of behavior on a production site (i.e., non-consistent errors)?
Here's the traceback: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 89, in get_response response = middleware_method(request) File "/usr/local/lib/python2.7/site-packages/django/middleware/common.py", line 67, in process_request if (not _is_valid_path(request.path_info, urlconf) and File "/usr/local/lib/python2.7/site-packages/django/middleware/common.py", line 154, in _is_valid_path urlresolvers.resolve(path, urlconf) File "/usr/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 342, in resolve return get_resolver(urlconf).resolve(path) File "/usr/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 250, in resolve for pattern in self.url_patterns: File "/usr/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 279, in _get_url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/usr/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 274, in _get_urlconf_module self._urlconf_module = import_module(self.urlconf_name) File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/var/www/vhosts/consbio.org/django/consbio/urls.py", line 5, in <module> from products.sitemaps import * File "/var/www/vhosts/consbio.org/django/consbio/products/sitemaps.py", line 1, in <module> from django.contrib.sitemaps import Sitemap File "/usr/local/lib/python2.7/site-packages/django/contrib/sitemaps/__init__.py", line 1, in <module> from django.contrib.sites.models import Site, get_current_site File "/usr/local/lib/python2.7/site-packages/django/contrib/sites/models.py", line 1, in <module> from django.db import models File "/usr/local/lib/python2.7/site-packages/django/db/models/__init__.py", line 5, in <module> from django.db.models.query import Q File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 9, in <module> from django.db.models.fields import DateField File "/usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 48, in <module> class Field(object): File "/usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 418, in Field def formfield(self, form_class=forms.CharField, **kwargs): AttributeError: 'module' object has no attribute 'CharField' -- 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.

