Attention ! Gitlab fournissant maintenant nativement des certificats Let’s Encrypt aux domaines personnalisés des Gitlab Pages, nous avons coupé notre service qui le faisait automatiquement pour vous.

Il est impératif, pour que votre domaine personnalisé continue à avoir un certificat Let’s Encrypt à jour, d’activer la fonctionnalité native dans les paramètres de votre projet. Cette activation remplacera votre certificat actuel par un nouveau certificat Let’s Encrypt géré par Gitlab.

Voir les détails sur

Commit 8b8c2360 authored by Mathieu Bridon's avatar Mathieu Bridon

Fool around with the settings

This allows reusing the whole Ideascube settings system, so we don't
need to redo it all.

This requires changes in Ideascube though:

parent 42a436d0
from ideascube.conf.base import * # pragma: no flakes
# Now override settings just like you would for Ideascube.
from import * # pragma: no flakes
......@@ -12,109 +12,23 @@
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
IRFI_BASE_DIR = os.path.dirname(os.path.dirname(__file__))
os.environ['STORAGE_ROOT'] = os.environ.get(
'STORAGE_ROOT', os.path.join(IRFI_BASE_DIR, 'storage'))
os.environ['IDEASCUBE_SETTINGS_PACKAGE'] = 'irfi'
# Quick-start development settings - unsuitable for production
# See
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'p=w6#%oek^z(+e@f@am2t6upm)ac73g2qav45+l-(v03_y0hlj'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# Application definition
# Reuse most of the Ideascube settings
from ideascube.settings import * # pragma: no flakes
# And add our stuff
INSTALLED_APPS = list(INSTALLED_APPS) + ['irfi'] # pragma: no flakes
ROOT_URLCONF = 'irfi.urls'
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'context_processors': [
WSGI_APPLICATION = 'irfi.wsgi.application'
# Database
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
# Password validation
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
# Internationalization
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# Add our translations
os.path.join(IRFI_BASE_DIR, 'irfi', 'locale'),
STATIC_URL = '/static/'
# Using anything else than English here will break Ideascube migrations
"""irfi URL Configuration
from django.conf.urls import i18n
The `urlpatterns` list routes URLs to views. For more information please see:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
from django.conf.urls import url
from django.contrib import admin
from ideascube.urls import urlpatterns
urlpatterns = [
urlpatterns += i18n.i18n_patterns(
# URL patterns for RFI will be added here
......@@ -5,6 +5,7 @@ import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "irfi.settings")
os.environ.setdefault("IDEASCUBE_ID", "dev")
from import execute_from_command_line
# TODO: Eventually this needs to point to a release tag
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment