You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to import my models, I get the following error:
>>>importapp.modelsTraceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"/django/app/models.py", line18, in<module>fromaddress.modelsimportAddressFieldFile"/usr/local/lib/python3.8/site-packages/address/models.py", line168, in<module>classCountry(models.Model):
File"/usr/local/lib/python3.8/site-packages/django/db/models/base.py", line113, in__new__raiseRuntimeError(
RuntimeError: Modelclassaddress.models.Countrydoesn't declare an explicit app_label and isn'tinanapplicationinINSTALLED_APPS.
Another curious observation: My IDE (PyCharm) shows the following warning when importing address: "Package containing module 'address' is not listed in project requirements", even if it is listed in the requirements.txt.
Can anyone help?
The text was updated successfully, but these errors were encountered:
I am using django-address 0.2.5 in my django 3.1 app. I am trying to run some parts of the app from the command line using:
When I try to import my models, I get the following error:
Another curious observation: My IDE (PyCharm) shows the following warning when importing
address
: "Package containing module 'address' is not listed in project requirements", even if it is listed in the requirements.txt.Can anyone help?
The text was updated successfully, but these errors were encountered: