parent
dd0567b653
commit
11fe0141d6
|
@ -27,7 +27,12 @@ SESSION_COOKIE_SECURE = True
|
||||||
SESSION_EXPIRE_AT_BROWSER_CLOSER = True
|
SESSION_EXPIRE_AT_BROWSER_CLOSER = True
|
||||||
SESSION_COOKIE_AGE = 36000 # 10h
|
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
|
# local settings
|
||||||
|
|
|
@ -11,7 +11,10 @@ class Migration(migrations.Migration):
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.AlterModelOptions(name='platform', options={'ordering': ['order']},),
|
migrations.AlterModelOptions(
|
||||||
|
name='platform',
|
||||||
|
options={'ordering': ['order']},
|
||||||
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='platform',
|
model_name='platform',
|
||||||
name='order',
|
name='order',
|
||||||
|
|
|
@ -50,7 +50,10 @@ WSGI_APPLICATION = 'scrutiny.wsgi.application'
|
||||||
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
||||||
|
|
||||||
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
|
# Internationalization
|
||||||
|
@ -83,7 +86,9 @@ MEDIA_URL = '/media/'
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
'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,
|
'APP_DIRS': True,
|
||||||
'OPTIONS': {
|
'OPTIONS': {
|
||||||
'context_processors': [
|
'context_processors': [
|
||||||
|
|
16
setup.py
16
setup.py
|
@ -20,9 +20,9 @@ class eo_sdist(sdist):
|
||||||
|
|
||||||
|
|
||||||
def get_version():
|
def get_version():
|
||||||
'''Use the VERSION, if absent generates a version with git describe, if not
|
"""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.
|
tag exists, take 0.0- and add the length of the commit log.
|
||||||
'''
|
"""
|
||||||
if os.path.exists('VERSION'):
|
if os.path.exists('VERSION'):
|
||||||
with open('VERSION', 'r') as v:
|
with open('VERSION', 'r') as v:
|
||||||
return v.read()
|
return v.read()
|
||||||
|
@ -56,6 +56,12 @@ setup(
|
||||||
packages=find_packages(os.path.dirname(__file__) or '.'),
|
packages=find_packages(os.path.dirname(__file__) or '.'),
|
||||||
scripts=['manage.py'],
|
scripts=['manage.py'],
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=['django >= 1.11, < 1.12', 'requests', 'gadjo',],
|
install_requires=[
|
||||||
cmdclass={'sdist': eo_sdist,},
|
'django >= 1.11, < 1.12',
|
||||||
|
'requests',
|
||||||
|
'gadjo',
|
||||||
|
],
|
||||||
|
cmdclass={
|
||||||
|
'sdist': eo_sdist,
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue