django - Admin shows entries of a model even though database is empty -
how following possible?
i cloned django project dir, ran syncdb
, check_permissions, migrate
, createsuperuser
, ran development server. went admin
, there saw 2 entries of model though there no fixtures cause these entries. when looked @ sqlite database file, there no entries model, though shows these 2 entries in admin(i did python manage.py dumpdata > my_db
, case insensitively searched within file, no result). it's not browser related because problem occurs on new installed browser.
these 2 entries entries made in development server of project on location. server not running , i'm using different port.
i grepped (grep -r -n entry_name
) root folder looking names of entries, without result.
when select these entries in admin , click delete, nothing happens. these 2 entries remain there.
edit 1
@hedde:
i did
ps ffaux|grep python
. there 1 django process running:/home/my_username/.virtualenvs/project_name/bin/python manage.py runserver 8044
i gave each of settings files print line identify when each running. development settings run, expected , has been case.
i using sqlite3 database, there 1
my_database.db
file in project dir. (find . -iname *db*
returns 1 database file)
edit 2
- when clone project pc , whole procedure listed above(
syncdb
,check_permissions
,migrate
,createsuperuser
, run development server) works expected, entries gone.
the problem related redis
. flushing redis-db solved problem.
$ redis-cli $redis> flushall $redis> exit
Comments
Post a Comment