user1611830
user1611830

Reputation: 4857

Installing a django project, database issue

I am installing the sunlight fondation's brisket and I am really new to python, and even more to django. So I downloaded on github the project : https://github.com/sunlightlabs/brisket.

So, when I run the ./manage.py run server command, I get an error message. But I know nothing from python and django.

So now here's the error message, am I supposed to install a package ?
Could some one help ?

    Unhandled exception in thread started by <bound method Command.inner_run of <django.core.management.commands.runserver.Command object at 0x976b84c>>
    Traceback (most recent call last):
      File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 219, in execute
    self.validate()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 249, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", line 36, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 146, in get_app_errors
    self._populate()
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 61, in _populate
    self.load_app(app_name, True)
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 76, in load_app
    app_module = import_module(app_name)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
ImportError: No module named brisket.influence

Upvotes: 1

Views: 181

Answers (1)

Uwe L. Korn
Uwe L. Korn

Reputation: 8796

You do not have mysql for python installed. There are various ways to do this but the most common are:

pip install MySQL-python

or

easy_install MySQL-python

Upvotes: 1

Related Questions