Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'app_settings' #259

Open
mbambadev opened this issue Sep 6, 2019 · 6 comments
Open

ImportError: cannot import name 'app_settings' #259

mbambadev opened this issue Sep 6, 2019 · 6 comments

Comments

@mbambadev
Copy link

mbambadev commented Sep 6, 2019

Good evening all
I get Django 2.2 and i install lasted version of Django-leafted
But i get ImportError: cannot import name 'app_settings' in my consol
I get Python 3.5

That's all error message i get:
Traceback (most recent call last): File "c:\python35-32\Lib\threading.py", line 914, in _bootstrap_inner self.run() File "c:\python35-32\Lib\threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "C:\Users\root\Envs\personal\lib\site-packages\django\utils\autoreload.py", line 54, in wrapper fn(*args, **kwargs) File "C:\Users\root\Envs\personal\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run autoreload.raise_last_exception() File "C:\Users\root\Envs\personal\lib\site-packages\django\utils\autoreload.py", line 77, in raise_last_exception raise _exception[0](_exception[1]).with_traceback(_exception[2]) File "C:\Users\root\Envs\personal\lib\site-packages\django\utils\autoreload.py", line 54, in wrapper fn(*args, **kwargs) File "C:\Users\root\Envs\personal\lib\site-packages\django\__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "C:\Users\root\Envs\personal\lib\site-packages\django\apps\registry.py", line 122, in populate app_config.ready() File "C:\Users\root\Envs\personal\lib\site-packages\django\contrib\admin\apps.py", line 24, in ready self.module.autodiscover() File "C:\Users\root\Envs\personal\lib\site-packages\django\contrib\admin\__init__.py", line 26, in autodiscover autodiscover_modules('admin', register_to=site) File "C:\Users\root\Envs\personal\lib\site-packages\django\utils\module_loading.py", line 47, in autodiscover_modules import_module('%s.%s' % (app_config.name, module_to_search)) File "C:\Users\root\Envs\personal\lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 985, in _gcd_import File "<frozen importlib._bootstrap>", line 968, in _find_and_load File "<frozen importlib._bootstrap>", line 957, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 673, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 697, in exec_module File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "C:\Users\root\Envs\personal\lib\site-packages\leaflet\admin.py", line 17, in <module> from .forms.widgets import LeafletWidget File "C:\Users\root\Envs\personal\lib\site-packages\leaflet\forms\widgets.py", line 15, in <module> from leaflet import app_settings, PLUGINS, PLUGIN_FORMS ImportError: cannot import name 'app_settings'
Thanks

@jacokampman
Copy link

+1

@Gagaro
Copy link
Member

Gagaro commented Dec 18, 2019

The build passes with Django 2.2 and Python 3.5: https://travis-ci.org/makinacorpus/django-leaflet/jobs/622608647

What version of django-leaflet are you using?

@mbambadev
Copy link
Author

mbambadev commented Dec 18, 2019

Last September, when I posted my error here, I downloaded the latest version (in September I specify), today I can't know the version number. Since I hadn't had any feedback, I just deleted...

@Ribbitninja
Copy link

Ribbitninja commented Jan 22, 2021

This is the same problem I'm encountering. Any assistance is appreciated. Changing my Django to 2.2 and Python to 3.5 has not done the trick.

@claudep
Copy link
Contributor

claudep commented Jan 22, 2021

I guess we would need a real or sample project to be able to debug this issue.

@MoureenMacharia
Copy link

Hi, just uninstall the installed django-leaflet and then install it again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants