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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file crossix-2020.1.0.tar.gz
.
File metadata
- Download URL: crossix-2020.1.0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c903b3859710e7fe771715fbd0a6a98f6959c623cceb4df1bbe41a850ed0eba |
|
MD5 | ad2b12415ad84d83ef3f646d8c91722c |
|
BLAKE2b-256 | 7255077dde2c9c3d5c304ced77e4734b6eeee0dc64d56ac855cd2efa3b553e6f |
File details
Details for the file crossix-2020.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: crossix-2020.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 1.3 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/47.3.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 520108711cff894197e9d5c3660e124b20238648f94d6100ddf11da260287291 |
|
MD5 | 399562f748a72fcdacb753bb989e8a9f |
|
BLAKE2b-256 | a8c115af7d6bb2faefd0e4eaf85595c42d3c993314dd878d9b9260879841bbcb |