paint it with a newer black

(...)
This commit is contained in:
Frédéric Péters 2020-12-16 15:48:05 +01:00
parent dd0567b653
commit 11fe0141d6
4 changed files with 28 additions and 9 deletions

View File

@ -27,7 +27,12 @@ SESSION_COOKIE_SECURE = True
SESSION_EXPIRE_AT_BROWSER_CLOSER = True
SESSION_COOKIE_AGE = 36000 # 10h
DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': PROJECT_NAME,}}
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': PROJECT_NAME,
}
}
#
# local settings

View File

@ -11,7 +11,10 @@ class Migration(migrations.Migration):
]
operations = [
migrations.AlterModelOptions(name='platform', options={'ordering': ['order']},),
migrations.AlterModelOptions(
name='platform',
options={'ordering': ['order']},
),
migrations.AddField(
model_name='platform',
name='order',

View File

@ -50,7 +50,10 @@ WSGI_APPLICATION = 'scrutiny.wsgi.application'
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
DATABASES = {
'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'scrutiny.sqlite3'),}
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'scrutiny.sqlite3'),
}
}
# Internationalization
@ -83,7 +86,9 @@ MEDIA_URL = '/media/'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'scrutiny', 'templates'),],
'DIRS': [
os.path.join(BASE_DIR, 'scrutiny', 'templates'),
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [

View File

@ -20,9 +20,9 @@ class eo_sdist(sdist):
def get_version():
'''Use the VERSION, if absent generates a version with git describe, if not
tag exists, take 0.0- and add the length of the commit log.
'''
"""Use the VERSION, if absent generates a version with git describe, if not
tag exists, take 0.0- and add the length of the commit log.
"""
if os.path.exists('VERSION'):
with open('VERSION', 'r') as v:
return v.read()
@ -56,6 +56,12 @@ setup(
packages=find_packages(os.path.dirname(__file__) or '.'),
scripts=['manage.py'],
include_package_data=True,
install_requires=['django >= 1.11, < 1.12', 'requests', 'gadjo',],
cmdclass={'sdist': eo_sdist,},
install_requires=[
'django >= 1.11, < 1.12',
'requests',
'gadjo',
],
cmdclass={
'sdist': eo_sdist,
},
)