db.define_table(...., migrate=True, fake_migrate=True)
db = DAL(..., fake_migrate_all=True)
No. The directory doesn't exist at all. Since I include that directory
in my git ignore file, when I clone my application there is no databases
folder.
Yeah. I already tried that. It doesn't do anything.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.
It has now created databases. Or at least there are database files showing in the databases directory. However, when I attempt to create a user, this is the traceback message from the Database administration view:
Traceback (most recent call last):
File "/home/www-data/web2py/applications/[myappsname]/controllers/appadmin.py", line 249, in select
nrows = db(query, ignore_common_filters=True).count()
File "/home/www-data/web2py/gluon/packages/dal/pydal/objects.py", line 2010, in count
return db._adapter.count(self.query, distinct)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 1321, in count
self.execute(self._count(query, distinct))
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 1388, in execute
return self.log_execute(*a, **b)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 1382, in log_execute
ret = self.get_cursor().execute(command, *a[1:], **b)
OperationalError: no such table: auth_user
But this feels like progress. :-)
These are my current settings migration settings:
db = DAL(..., migrate=True, fake_migrate_all=True)
db.define_table(..., migrate=True, fake_migrate=True
auth.define_tables(username=True, signature=False, migrate=True)
Thanks again for any help.
Ok. Actually that was something. I realized that I gave the directories the wrong permissions when I created these. So I went ahead and reassigned to www-data and now I am getting the following:Validation error, field:username <gluon.validators.IS_NOT_IN_DB object at 0x7f1d49dcd2d0>
It has now created databases. Or at least there are database files showing in the databases directory. However, when I attempt to create a user, this is the traceback message from the Database administration view:
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 1382, in log_execute ret = self.get_cursor().execute(command, *a[1:], **b) OperationalError: no such table: auth_user
But this feels like progress. :-)
These are my current settings migration settings:
db = DAL(..., migrate=True, fake_migrate_all=True)
db.define_table(..., migrate=True, fake_migrate=True
auth.define_tables(username=True, signature=False, migrate=True)
Thanks again for any help.