# working dir: /home/bbt/coding/maykin/leesrijk/src # virtualenv dir: /home/bbt/coding/.virtualenvs/leesrijk/ # started with ./manage.py runserver # absolute path runs fine # at the end of manage.py os.getcwd() is correct # at the point of the exception, os.getcwd() points to /home/bbt/coding/.virtualenvs/leesrijk Traceback (most recent call last): File "./manage.py", line 10, in execute_from_command_line(sys.argv) File "/home/bbt/coding/.virtualenvs/leesrijk/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line utility.execute() File "/home/bbt/coding/.virtualenvs/leesrijk/lib/python2.7/site-packages/django/core/management/__init__.py", line 377, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/bbt/coding/.virtualenvs/leesrijk/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv self.execute(*args, **options.__dict__) File "/home/bbt/coding/.virtualenvs/leesrijk/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute output = self.handle(*args, **options) File "/home/bbt/coding/.virtualenvs/leesrijk/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 83, in handle self.run(*args, **options) File "/home/bbt/coding/.virtualenvs/leesrijk/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 92, in run autoreload.main(self.inner_run, args, options) File "/home/bbt/coding/.virtualenvs/leesrijk/lib/python2.7/site-packages/django/utils/autoreload.py", line 322, in main reloader(wrapped_main_func, args, kwargs) File "/home/bbt/coding/.virtualenvs/leesrijk/lib/python2.7/site-packages/django/utils/autoreload.py", line 288, in python_reloader reloader_thread() File "/home/bbt/coding/.virtualenvs/leesrijk/lib/python2.7/site-packages/django/utils/autoreload.py", line 264, in reloader_thread change = fn() File "/home/bbt/coding/.virtualenvs/leesrijk/lib/python2.7/site-packages/django/utils/autoreload.py", line 202, in code_changed stat = os.stat(filename) OSError: [Errno 2] No such file or directory: './manage.py'