Skip to main content

Simple website for Cross triangulaire registration.

Project description

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.

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

crossix-2019.1.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

crossix-2019.1.0-py2.py3-none-any.whl (1.7 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file crossix-2019.1.0.tar.gz.

File metadata

  • Download URL: crossix-2019.1.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

File hashes

Hashes for crossix-2019.1.0.tar.gz
Algorithm Hash digest
SHA256 5c598960e3b39d3be9c127ab7deb5d35ada4b8751054673120d5cbbb190a8a60
MD5 e65def19a4b6e8459473822c8297164d
BLAKE2b-256 4e1224abff240372b73d1995a7460121b182e5ec9e5c0f207f29d3d1c1cf1a56

See more details on using hashes here.

File details

Details for the file crossix-2019.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: crossix-2019.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

File hashes

Hashes for crossix-2019.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a5f1ce53dd3d8c02610e4dcb87b1d1dfc8c75191f62a40be98e85c07b112460d
MD5 e41c686da3795507daa4175122f41a19
BLAKE2b-256 ddcd057dfa0a01712a508d6d2357c9abdc3ac819bdb19a0505fa92c33d7d04a8

See more details on using hashes here.

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