Skip to main content

Casual Framework

Project description

Casual

Installation

  1. Create a virtual environment and activate it.

    ❯ python3 -m venv venv
    ❯ . ./venv/bin/activate
    
  2. Create the initial env files to run Casual.

    ❯ flask core init -d
    
  3. Check and modify the three new files dev_casual.conf, .env, and .flaskenv.

    The most important one is dev_casual.conf where you should check the following keys:

  • SECRET_KEY
  • ALCHEMICAL_DATABASE_URL
  • CASUAL_ADMINS before you go to the next step!.
  • MAIL_* you will need this to safely create the user accounts and communicate with the users.
  • CASUAL_* in general.
  1. Create the DB Migrations infrastructure, the first migration, and apply it.

    ❯ flask db init
    ❯ flask db migrate
    ❯ flask db upgrade
    
  2. Create the Admin Accounts according to the CASUAL_ADMIN key in the conf file (see step 3).

    ❯ flask auth create-admins
    
  3. Now you can run the development server and conform that you can log in + change the password from the default value of Casual to a more secure one.

    Each admin account will be forced to change the password on the first successful login.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

casual-2024.1.3.tar.gz (76.0 kB view hashes)

Uploaded Source

Built Distribution

casual-2024.1.3-py3-none-any.whl (108.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page