All pastes #367622 Raw Edit

Someone

public text v1 · immutable
#367622 ·published 2007-02-22 13:56 UTC
rendered paste body
root@ubuntu:/home/code/name# python manage.py runserver
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
root@ubuntu:/home/code/name# export PYTHONPATH=/home/code/
root@ubuntu:/home/code/name# python manage.py runserver   
Validating models...
Unhandled exception in thread started by <function inner_run at 0x2b2b32672410>
Traceback (most recent call last):
  File "/home/code/django/core/management.py", line 806, in inner_run
    validate()
  File "/home/code/django/core/management.py", line 790, in validate
    num_errors = get_validation_errors(outfile)
  File "/home/code/django/core/management.py", line 681, in get_validation_errors
    import django.models
  File "/home/code/django/models/__init__.py", line 13, in ?
    modules = meta.get_installed_model_modules(__all__)
  File "/home/code/django/core/meta/__init__.py", line 111, in get_installed_model_modules
    mod = __import__('django.models.%s' % submodule, '', '', [''])
  File "/home/code/ellington/news/models/news.py", line 8, in ?
    from django.models import news
ImportError: cannot import name news