LoginSignup
1
1

More than 5 years have passed since last update.

Django 導入時に苦戦

Last updated at Posted at 2015-02-19

1 - sudo pip install python-dotenv
2 - copy .env.example -> .env
3 - sudo pip install -r requirements.txt ([Error] EnvironmentError: mysql_config not found)
4 - sudo brew install mysql
5 - export PATH=$PATH:/usr/local/mysql/bin
6 - sudo pip install MySQL-Python
7 - sudo pip install -r requirements.txt
8 - python manage.py migrate
9 - python manage.py runserver ([Error] return Database.Cursor.execute(self, query, params) django.db.utils.OperationalError: no such table: hosts_listing. [Error] You have unapplied migrations; your app may not work properly until they are applied. Run 'python manage.py migrate' to apply them.)
10 - comment out settings/base.py LINE 89
11 - python manage.py migrate
12 - python manage.py runserver
13 - access to http://127.0.0.1:8000/
14 - got it

  • source /usr/local/bin/virtualenvwrapper.sh
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1