Skip to main content

crossix

crossix is a private Django project to handle registration to www.crosstriangulaire.com.

Installation

You may install this software from your distribution packages, or through pip:

$ pip install crossix

Once installed, you must configure it. The minimal set of settings is the [db] section of the /etc/crossix/config.ini file (see below for details).

Once this is configured, you must prepare the database:

$ crossixctl migrate

This will create the database; the last step is to point your WSGI server to crossix.wsgi.

Configuration

Crossix will read all configuration files matching /etc/crossix/*.ini. Those are ini-style files, defining the following parameters:

Application ([app])

General behavior of the application.

Options:

mode

str, the application mode. Use dev for local development and prod otherwise.

debug

bool, whether to enable debug. Valid values: on, off

secret_key

str, REQUIRED in prod mode. A secret key for Django security hooks

Site ([site])

Hosting and URLs.

Options:

name

str, the name of your site (crossix, mypaster, …).

base_url

str, where your site is hosted. A trailing slash is required.

assets_url

str, the URL where assets (CSS, JS, …) are served. May be a relative URL.

admin_mail

str, the email where the admin should be notified.

allowed_hosts

str list, comma-separated list of valid Host: HTTP headers. See Django docs for details.

Database ([db])

Required; these define where snippets will be stored. Valid options are:

engine

str, the engine to choose. Must be one of sqlite, mysql, postgresql; default is sqlite.

name

str, the name of the database, or its path for sqlite. Defaults to /var/lib/crossix/db.sqlite.

host

str, the host of the database server.

port

int, the port of the database server.

user

str, the login to use to connect to the database server.

password

str, the password for the database

Examples:

; A Postgresql configuration; uses default psql port.
[db]
engine = postgresql
name = crossix
host = psql42.local
; A sample sqlite configuration.
[db]
engine = sqlite
name = /data/replicated/crossix/db.sqlite

Uploads ([uploads])

Options related to private file uploads.

dir

path, storage folder for uploads. Must be writable by the WSGI process.

Example: /var/www/crossix/uploads

serve

str, the file serving mode. crossix relies on django-sendfile to enhance performance and protection.

Valid options: simple, nginx, xsendfile, mod_wsgi.

internal_url

str, the internal URL used by django-sendfile to serve the files.

Metadata

Release files for crossix 2021.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crossix 2021.0.0
File Size Uploaded
crossix-2021.0.0.tar.gz 20.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crossix 2021.0.0
File Interpreter ABI Platform
crossix-2021.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 1.4 MB

Release files / crossix-2021.0.0.tar.gz

Download URL crossix-2021.0.0.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
59307c0bd6806537bcdabadca86e83b110d6033a36585f923f71fe86db93e130
BLAKE2b-256 checksum
How to use checksums
c057a67f6f192374adf6e58068e1f832d65493290ce869a47d31f4b7b55c8949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.8rc1

Release files / crossix-2021.0.0-py2.py3-none-any.whl

Download URL crossix-2021.0.0-py2.py3-none-any.whl
Size 1.4 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4c0c5b9a47a52f28d8bd463a5fd0240317d45081794e6917cbd2d0fce8e1c616
BLAKE2b-256 checksum
How to use checksums
d03af5abbccd65a7936d254d4a86ac59f7ca2276c8ef93b8893d6a9efcb3dc5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.8rc1
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page