Blog Archive for August 14, 2012

Django cannot import name urandom

August 14, 2012

I recently tried to spin up a local django server and was confronted with the following error:

$ ./manage.py runserver
Traceback (most recent call last):
  File "./manage.py", line 16, in <module>
    execute_manager(settings)
  File "/home/tjs/web/bbr/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/home/tjs/web/bbr/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/tjs/web/bbr/django/core/management/__init__.py", line 261, …