Django newbie here. I just checked out and installed the latest dev version as instructed and created a project, but when trying to "python manage.py runserver", it gives the following error message.
-- Anyone has any clue? Huge thanks!
$ python manage.py runserver
Traceback (most recent call last):
File "/Users/noahark/Dev/django-trunk/django/apps/base.py", line 66, in create
module = import_module(entry)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
File "<frozen importlib._bootstrap>", line 1022, in load_module
File "<frozen importlib._bootstrap>", line 1003, in load_module
File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
File "<frozen importlib._bootstrap>", line 868, in _load_module
File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
File "/Users/noahark/Dev/django-trunk/django/contrib/admin/__init__.py", line 5, in <module>
from django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL
File "/Users/noahark/Dev/django-trunk/django/contrib/admin/options.py", line 31, in <module>
from django.shortcuts import get_object_or_404
ImportError: bad magic number in 'django.shortcuts': b'\x03\xf3\r\n'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/noahark/Dev/django-trunk/django/apps/base.py", line 80, in create
cls = getattr(mod, cls_name)
AttributeError: 'module' object has no attribute 'admin'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Users/noahark/Dev/django-trunk/django/core/management/__init__.py", line 426, in execute_from_command_line
utility.execute()
File "/Users/noahark/Dev/django-trunk/django/core/management/__init__.py", line 389, in execute
django.setup()
File "/Users/noahark/Dev/django-trunk/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/noahark/Dev/django-trunk/django/apps/registry.py", line 81, in populate
app_config = AppConfig.create(entry)
File "/Users/noahark/Dev/django-trunk/django/apps/base.py", line 86, in create
"cannot import name '%s' from '%s'" % (cls_name, mod_path))
ImportError: cannot import name 'admin' from 'django.contrib'
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7392c868-0f67-4523-a99e-8854cccfd73e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment