Advertisement
Guest User

form error

a guest
Jun 7th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. /home/delhivery/Documents/workspace/LocalityManagement/docs/modules/views.rst:3: WARNING: autodoc: failed to import module 'locality.views'; the following exception was raised:
  2. Traceback (most recent call last):
  3. 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
  4. return self._name_map[name]
  5. AttributeError: 'Options' object has no attribute '_name_map'
  6.  
  7. During handling of the above exception, another exception occurred:
  8.  
  9. Traceback (most recent call last):
  10. 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
  11. cache = self._related_many_to_many_cache
  12. AttributeError: 'Options' object has no attribute '_related_many_to_many_cache'
  13.  
  14. During handling of the above exception, another exception occurred:
  15.  
  16. Traceback (most recent call last):
  17. File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/sphinx/ext/autodoc.py", line 385, in import_object
  18. __import__(self.modname)
  19. File "/home/delhivery/Documents/workspace/LocalityManagement/locality/views.py", line 12, in <module>
  20. from .forms import UploadAddressForm, UploadLocalityForm, LocalityPincodeForm, LocalityForm, LocalityMappingForm, \
  21. File "/home/delhivery/Documents/workspace/LocalityManagement/locality/forms.py", line 37, in <module>
  22. class FrequencyForm(forms.Form):
  23. File "/home/delhivery/Documents/workspace/LocalityManagement/locality/forms.py", line 47, in FrequencyForm
  24. bigram,trigram,unigram = frequency_analysis()
  25. File "/home/delhivery/Documents/workspace/LocalityManagement/locality/utils.py", line 145, in frequency_analysis
  26. ngrams = Frequency.objects.values('term','frequency').all()
  27. File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/manager.py", line 92, in manager_method
  28. return getattr(self.get_queryset(), name)(*args, **kwargs)
  29. File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/query.py", line 626, in values
  30. return self._clone(klass=ValuesQuerySet, setup=True, _fields=fields)
  31. File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/query.py", line 961, in _clone
  32. c._setup_query()
  33. File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/query.py", line 1129, in _setup_query
  34. self.query.add_fields(self.field_names, True)
  35. File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/sql/query.py", line 1655, in add_fields
  36. allow_many=allow_m2m)
  37. File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/sql/query.py", line 1463, in setup_joins
  38. names, opts, allow_many, fail_on_missing=True)
  39. 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
  40. field, model, direct, m2m = opts.get_field_by_name(name)
  41. 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
  42. cache = self.init_name_map()
  43. File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/db/models/options.py", line 445, in init_name_map
  44. for f, model in self.get_all_related_m2m_objects_with_model():
  45. 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
  46. cache = self._fill_related_many_to_many_cache()
  47. 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
  48. for klass in self.apps.get_models():
  49. File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/functools.py", line 428, in wrapper
  50. result = user_function(*args, **kwds)
  51. File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/apps/registry.py", line 168, in get_models
  52. self.check_models_ready()
  53. File "/home/delhivery/Documents/workspace/LocalityManagement/localityVE_new/lib/python3.4/site-packages/django/apps/registry.py", line 131, in check_models_ready
  54. raise AppRegistryNotReady("Models aren't loaded yet.")
  55. django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement