Re: Problems receiving data from DB (sqlite3)

2013-04-07 Thread Alexis Roda
Al 07/04/13 22:50, En/na Johannes ha escrit: yea, my knowledge from python is like larry and you told, the pyc-files get rebuild if the timestamp of the py and pyc files differs. But, because in my case it seems to be handled different, I wondered if django handles this in another way. I'm not

Re: Problems receiving data from DB (sqlite3)

2013-04-07 Thread Johannes
yea, my knowledge from python is like larry and you told, the pyc-files get rebuild if the timestamp of the py and pyc files differs. But, because in my case it seems to be handled different, I wondered if django handles this in another way. I'll delete them on every rebuild and hope that this solv

Re: Problems receiving data from DB (sqlite3)

2013-04-07 Thread Alexis Roda
Al 07/04/13 21:35, En/na Johannes ha escrit: I get again to different results. the shell accesses the settings.py while from the testserver the settings.pyc is accessed. After I deleted the pyc-file. the testserver uses the settings.py too. When and in which cases the pyc-file gets (re)-build?

Re: Problems receiving data from DB (sqlite3)

2013-04-07 Thread Larry Martell
On Sun, Apr 7, 2013 at 1:35 PM, Johannes wrote: > I get again to different results. > the shell accesses the settings.py while from the testserver the > settings.pyc is accessed. After I deleted the pyc-file. the testserver > uses the settings.py too. > When and in which cases the pyc-file gets

Re: Problems receiving data from DB (sqlite3)

2013-04-07 Thread Johannes
I get again to different results. the shell accesses the settings.py while from the testserver the settings.pyc is accessed. After I deleted the pyc-file. the testserver uses the settings.py too. When and in which cases the pyc-file gets (re)-build? bg, Johannes On 07.04.2013 21:24, Alexis Rod

Re: Problems receiving data from DB (sqlite3)

2013-04-07 Thread Alexis Roda
Al 07/04/13 20:35, En/na Johannes ha escrit: In order to diagnose what the problem really is I'd suggest to add a print to some of your views: databases {'default': {'ENGINE': 'django.db.backends.sqlite3', 'TEST_MIRROR': None, 'NAME': ':memory:', 'TEST_CHARSET': None, 'TIME_ZONE': 'UTC', 'TEST_

Re: Problems receiving data from DB (sqlite3)

2013-04-07 Thread Johannes
On 04.04.2013 19:52, Alexis Roda wrote: > Sounds like you're using two DBs ... does not make much sense since I'd > expect you're using the same settings.py in both cases, so the same > database. In the testserver it looks like an in memory database which is > destroyed upon restart. > yes, of c

Re: Problems receiving data from DB (sqlite3)

2013-04-04 Thread Alexis Roda
Al 03/04/13 19:38, En/na Johannes ha escrit: Hi list, I have a confusing behaviour when I try to access some data in the DB. I created a model and build the database with syncdb. I can create and save data via python manage.py shell and it's still available after I a restart of the shell. But thi

Problems receiving data from DB (sqlite3)

2013-04-03 Thread Johannes
Hi list, I have a confusing behaviour when I try to access some data in the DB. I created a model and build the database with syncdb. I can create and save data via python manage.py shell and it's still available after I a restart of the shell. But this data is not visible from the testserver. Even