phunt / zookeeper_dashboard

Django based dashboard for an Apache ZooKeeper cluster.
http://hadoop.apache.org/zookeeper/
Apache License 2.0
166 stars 47 forks source link

ImportError: No module named django.core.management #10

Closed mikehomee closed 8 years ago

mikehomee commented 8 years ago

I'm sorry for being noob. But I need help. Please....

Traceback (most recent call last): File "./manage.py", line 2, in from django.core.management import execute_manager ImportError: No module named django.core.management

mikehomee commented 8 years ago

I installed django on my ubuntu 14.04 desktop. now my error is

Traceback (most recent call last): File "./manage.py", line 2, in from django.core.management import execute_manager ImportError: cannot import name execute_manager

phunt commented 8 years ago

Hi @mikehomee - I'm afraid I haven't been working on this of late - very likely that the latest django has moved on and my code doesn't work with it. Please take a look at this pull request. I haven't been able to merge it yet but it might help solve the issues you're seeing - the submitter has been working to get the project "refreshed". Good luck.

https://github.com/phunt/zookeeper_dashboard/pull/9

mikehomee commented 8 years ago

Thanks @phunt!

phunt commented 8 years ago

No problem.

rohit-tm commented 8 years ago

HI @mikehomee ....first of all you have to install "sudo apt-get install libzookeeper-dev". then create zookeeper_dashboard inside zookeeper_dashboard_master. fire below commands: unzip zookeeper_dashboard.zip cd zookeeper_dashboard-master mkdir zookeeper_dashboard mv * zookeeper_dashboard mv zookeeper_dashboard/manage.py ./

change inside .manage.py with import os,sys if name == "main": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zookeeper_dashboard.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)

Setting.py

TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader',

'django.template.loaders.eggs.load_template_source',

)

Installed apps: 'django.contrib.staticfiles',

STATICFILES_DIRS = ( os.path.join(BASE_DIR, "media/css"), ) STATIC_URL = '/css/'

urls.py

if settings.DEBUG: urlpatterns += patterns('', (r'^css/(?P.*)$', 'django.views.static.serve', {'document_root': './css'}), )

go with that procedure you have to run django and your monitoring will be start