django - Run manage.py migrate but no accout related tables created in graphite.db -
i'm installing graphite 0.9.15 on ubuntu server 16.04 lts. during configuration step
cd /opt/graphite/webapp/graphite sudo cp local_settings.py.example local_settings.py
then using command in official installation instruction:
sudo pythonpath=/opt/graphite/webapp/ python manage.py migrate --settings=local_settings
gave information
operations perform:
apply migrations: (none)
running migrations:
no migrations apply.
then went check graphite.db
sqlite3 graphite.db
select name sqlite_master type='table';
only 2 tables created, django_migrations , sqlite_sequence, no account relevant tables. , inside apache error log, /opt/graphite/storage/log/webapp/error.log, operationalerror: no such talbe: auth_user. it's because of missing account tables.
some info: ubuntu 16.04 lts
python2.7.11
django 1.9.6
django-tagging 0.4.3
whisper, carbon, graphite 0.9.15
please know reason , how solve this? lot!
actually issue when run "sudo python manage.py migrate" each time partial tables created , several tables name starts account_, dashboard_, events, miss.
found reason, don't use command used , mentioned in official doc. not work on django 1.9 , above. , graphite official document have not been updated long time ....
what need
sudo pythonpath=/opt/graphite/webapp django-admin.py migrate --settings=graphite.settings --run-syncdb
Comments
Post a Comment