Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting it to work... #1

Open
frispete opened this issue Jul 13, 2016 · 0 comments
Open

Getting it to work... #1

frispete opened this issue Jul 13, 2016 · 0 comments

Comments

@frispete
Copy link

since it is using the uuid-ossp extension:
after database creation, do this:

> psql -d wallet_dev
wallet_dev=# create extension "uuid-ossp";
CREATE EXTENSION

Test:

wallet_dev=# select uuid_generate_v4();
           uuid_generate_v4           
--------------------------------------
 7f054ef6-1885-4e2e-8763-e53334fdd3c6

The config path of websauna changed, and the development-secrets.ini doesn't exist:

diff --git a/development.ini b/development.ini
index a098a27..29a396f 100644
--- a/development.ini
+++ b/development.ini
@@ -2,8 +2,8 @@

 [includes]
 include_ini_files =
-    resource://websauna/development.ini
-    resource://websauna/base.ini
+    resource://websauna/conf/development.ini
+    resource://websauna/conf/base.ini

 [app:main]
 use = egg:websauna.wallet
@@ -11,7 +11,7 @@ websauna.init = websauna.wallet.demo.Initializer
 websauna.site_id = wallet_dev
 websauna.site_email_prefix = [wallet DEV]
 sqlalchemy.url = postgresql://localhost/wallet_dev
-websauna.secrets_file = resource://websauna.wallet/development-secrets.ini
+#websauna.secrets_file = resource://websauna/wallet/development-secrets.ini

You can create an admin user with:

ws-create-user development.ini mail@address

run it with (no -c argument)

pserve development.ini --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant