python - Failing to open localhost page -


i try install django in mac pro , finished installing when want run command :

python manage.py runserver 

stack feedback:

traceback (most recent call last):   file "manage.py", line 10, in <module>     execute_from_command_line(sys.argv)   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/core/management/__init__.py", line 338, in execute_from_command_line     utility.execute()   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/core/management/__init__.py", line 330, in execute     self.fetch_command(subcommand).run_from_argv(self.argv)   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/core/management/base.py", line 393, in run_from_argv     self.execute(*args, **cmd_options)   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/core/management/base.py", line 444, in execute     output = self.handle(*args, **options)   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/core/management/commands/syncdb.py", line 25, in handle     call_command("migrate", **options)   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/core/management/__init__.py", line 120, in call_command     return command.execute(*args, **defaults)   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/core/management/base.py", line 444, in execute     output = self.handle(*args, **options)   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/core/management/commands/migrate.py", line 93, in handle     executor = migrationexecutor(connection, self.migration_progress_callback)   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/db/migrations/executor.py", line 19, in __init__     self.loader = migrationloader(self.connection)   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/db/migrations/loader.py", line 47, in __init__     self.build_graph()   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/db/migrations/loader.py", line 182, in build_graph     self.applied_migrations = recorder.applied_migrations()   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/db/migrations/recorder.py", line 59, in applied_migrations     self.ensure_schema()   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/db/migrations/recorder.py", line 49, in ensure_schema     if self.migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor()):   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/db/backends/base/base.py", line 162, in cursor     cursor = self.make_debug_cursor(self._cursor())   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/db/backends/base/base.py", line 135, in _cursor     self.ensure_connection()   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/db/backends/base/base.py", line 130, in ensure_connection     self.connect()   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/db/utils.py", line 97, in __exit__     six.reraise(dj_exc_type, dj_exc_value, traceback)   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/db/backends/base/base.py", line 130, in ensure_connection     self.connect()   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/db/backends/base/base.py", line 119, in connect     self.connection = self.get_new_connection(conn_params)   file "/usr/local/lib/python2.7/site-packages/django-1.8.4-py2.7.egg/django/db/backends/sqlite3/base.py", line 204, in get_new_connection     conn = database.connect(**conn_params) django.db.utils.operationalerror: unable open database file 

i tried sqlite3 in python, works. wanna how can it?


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -