|
|
|
|
|
by kgodey
1204 days ago
|
|
Yes! We have set up a Postgres template database[1] with our demo data sets. When a user logs in, we create a new database based on the template database and associate the database with the session key set up for that login. So every session is associated with a different database and we have some Django middleware that routes you to the URL associated with your session's database. If you log out and log back in (thus ending your session), you'll be routed to a brand new database. However, all databases are accessible to the demo user, so if you send a link to someone else, they will see your database (since the URL includes the database identifier). You can see our code for it here: https://github.com/centerofci/mathesar/tree/develop/demo [1] https://www.postgresql.org/docs/current/manage-ag-templatedb... |
|