-
Notifications
You must be signed in to change notification settings - Fork 17
Installing with a Database (Windows)
All the commands (starting with >
) should be run in Command Prompt.
>pip3 install -r requirements.txt
There is a separate process to choose a driver after the PostgreSQL installation. Make sure that the installation includes the PostgreSQL Unicode ODBC driver (e.g. ODBC 64-bit).
Follow the installation instructions to create a default user (referred to in this tutorial as default_username
, typically set to postgres
) and a default password (referred to in this tutorial as default_password
).
>psql -U default_username
default_username
is the one created in Step 3 (typically just postgres
). When prompted, enter the corresponding default_password
, also from Step 3.
Pick your own your_database_name
, your_username
, your_password
(the latter two can be the same as the default ones from Step 3). Enter the following three commands:
CREATE DATABASE your_database_name;
CREATE USER your_username WITH PASSWORD 'your_password';
GRANT ALL PRIVILEGES ON DATABASE your_database_name TO your_username;
Pick a good your_secret_key
for data security. Then, create a new file cycling/config.ini
that contains the following:
[DEFAULT]
Database = your_database_name
User = your_username
Password = your_password
Host = localhost
Port = 5432
Backend = postgresql
SecretKey = your_secret_key