Django syncdb not updating

I wanted to summarize what I've done so far to try and resolve the db initialization problem. * installed Django version 1.9 (was running 1.4) * installed graphite-web version 0.9.15 Now receiving the following when I try to initialize the db: # pwd /opt/graphite # PYTHONPATH=33be3 Successfully built Django Installing collected packages: Django Found existing installation: Django 1.6.12 DEPRECATION: Uninstalling a distutils installed project (Django) has been deprecated and will be removed in a future version. BEGIN; CREATE TABLE "show Crime_oakcrime" ( "idx" integer NOT NULL PRIMARY KEY, "opd_rd" varchar(10) NOT NULL, "oidx" integer NOT NULL, "cdate" date NOT NULL, "ctime" time NOT NULL, "ctype" varchar(50), "desc" varchar(80), "beat" varchar(5), "addr" varchar(80), "lat" double precision, "long" double precision, "ucr" varchar(5), "statute" varchar(50), "crime Cat" varchar(50) ) ; COMMIT; Table "Crime_oakcrime" Column | Type | Modifiers ---------- ------------------------ ----------- idx | integer | not null opd_rd | character varying(10) | not null oidx | integer | not null cdate | date | not null ctime | time without time zone | not null ctype | character varying(50) | not null desc | character varying(80) | not null beat | character varying(5) | not null addr | character varying(80) | lat | double precision | long | double precision | ucr | character varying(5) | statute | character varying(50) | crime Cat | character varying(50) | Indexes: "show Crime_oakcrime_pkey1" PRIMARY KEY, btree (idx) django error Operational Error at FATAL: no pg_entry for host "[local]", user , database , SSL off unknown command: 'syncdb' for python ./bin/syncdb Django, south, postgres initial migration error Access denied for user 'my_username'@'localhost' (using password: YES)") How to syncdb from the XML-RPC API?For SQLite we need to set the engine and then give it a name.

django syncdb not updating-22

By explicitly saying As pprakash mentions above, copying the files AND the ibdata1 file was what worked for me.

(I would have just commented on that comment but this SO requirement for 50 points means I have to provide a solution, even if it's just a rehash of an existing one ...

# pwd /opt/graphite # echo $GRAPHITE_ROOT /opt/graphite # ll total 12 drwxr-xr-x 2 root root 4096 Aug 3 bin drwxr-xr-x 2 root root 4096 Aug 3 conf drwxr-xr-x 3 root root 77 Aug 3 examples drwxr-xr-x 8 root root 4096 Aug 3 lib drwxrwxr-x 6 apache apache 52 Aug 3 storage drwxr-xr-x 4 root root 35 Aug 3 webapp # PYTHONPATH=settings --run-syncdb Unknown command: 'migrate' Type 'help' for usage.

There have been a lot of impacting changes to Django since 1.7 which makes it a real headache to document for our users if we *don't do this*.

You rarely need to import the settings file directly; Django imports it for you, and makes it available as Django models map (roughly) to a database table, and provide a place to encapsulate business logic.

Last modified 11-Nov-2019 12:50