Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/delhivery/Documents/workspace/LocalityManagement/docs/modules/views.rst:3: WARNING: autodoc: failed to import module 'locality.views'; the following exception was raised:
- Traceback (most recent call last):
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/options.py", line 414, in get_field_by_name
- return self._name_map[name]
- AttributeError: 'Options' object has no attribute '_name_map'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/options.py", line 561, in get_all_related_m2m_objects_with_model
- cache = self._related_many_to_many_cache
- AttributeError: 'Options' object has no attribute '_related_many_to_many_cache'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/sphinx/ext/autodoc.py", line 385, in import_object
- __import__(self.modname)
- File "/home/delhivery/Documents/workspace/LocalityManagement/locality/views.py", line 12, in <module>
- from .forms import UploadAddressForm, UploadLocalityForm, LocalityPincodeForm, LocalityForm, LocalityMappingForm, \
- File "/home/delhivery/Documents/workspace/LocalityManagement/locality/forms.py", line 37, in <module>
- class FrequencyForm(forms.Form):
- File "/home/delhivery/Documents/workspace/LocalityManagement/locality/forms.py", line 47, in FrequencyForm
- bigram,trigram,unigram = frequency_analysis()
- File "/home/delhivery/Documents/workspace/LocalityManagement/locality/utils.py", line 145, in frequency_analysis
- ngrams = Frequency.objects.values('term','frequency').all()
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/manager.py", line 92, in manager_method
- return getattr(self.get_queryset(), name)(*args, **kwargs)
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/query.py", line 626, in values
- return self._clone(klass=ValuesQuerySet, setup=True, _fields=fields)
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/query.py", line 961, in _clone
- c._setup_query()
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/query.py", line 1129, in _setup_query
- self.query.add_fields(self.field_names, True)
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/sql/query.py", line 1655, in add_fields
- allow_many=allow_m2m)
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/sql/query.py", line 1463, in setup_joins
- names, opts, allow_many, fail_on_missing=True)
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/sql/query.py", line 1383, in names_to_path
- field, model, direct, m2m = opts.get_field_by_name(name)
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/options.py", line 416, in get_field_by_name
- cache = self.init_name_map()
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/options.py", line 445, in init_name_map
- for f, model in self.get_all_related_m2m_objects_with_model():
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/options.py", line 563, in get_all_related_m2m_objects_with_model
- cache = self._fill_related_many_to_many_cache()
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/options.py", line 577, in _fill_related_many_to_many_cache
- for klass in self.apps.get_models():
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/functools.py", line 428, in wrapper
- result = user_function(*args, **kwds)
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/apps/registry.py", line 168, in get_models
- self.check_models_ready()
- File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/apps/registry.py", line 131, in check_models_ready
- raise AppRegistryNotReady("Models aren't loaded yet.")
- django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement