Browse Source

config inicial

pull/2585/head
Leandro Roberto 7 years ago
parent
commit
60012a766d
  1. 1
      requirements/requirements.txt
  2. 14
      sapl/asgi.py
  3. 5
      sapl/routing.py
  4. 4
      sapl/settings.py
  5. 8
      setup.py

1
requirements/requirements.txt

@ -15,6 +15,7 @@ django-extensions==2.1.4
django-image-cropping==1.2
django-webpack-loader==0.6.0
drf-yasg==1.13.0
channels==2.1.7
easy-thumbnails==2.5
python-decouple==3.1
psycopg2-binary==2.7.6.1

14
sapl/asgi.py

@ -0,0 +1,14 @@
"""
ASGI entrypoint. Configures Django and then runs the application
defined in the ASGI_APPLICATION setting.
"""
import os
from channels.routing import get_default_application
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sapl.settings")
django.setup()
application = get_default_application()

5
sapl/routing.py

@ -0,0 +1,5 @@
from channels.routing import ProtocolTypeRouter
application = ProtocolTypeRouter({
# Empty for now (http->django views is added by default)
})

4
sapl/settings.py

@ -100,6 +100,8 @@ INSTALLED_APPS = (
'webpack_loader',
'channels',
) + SAPL_APPS
# FTS = Full Text Search
@ -204,7 +206,7 @@ TEMPLATES = [
WSGI_APPLICATION = 'sapl.wsgi.application'
ASGI_APPLICATION = "sapl.routing.application"
# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases

8
setup.py

@ -41,8 +41,16 @@ install_requires = [
'pysolr==3.6.0',
'whoosh==2.7.4',
'channels==2.1.7',
# 'git+git://github.com/interlegis/trml2pdf.git',
<<<<<<< HEAD
# 'git+git://github.com/interlegis/django-admin-bootstrapped',
=======
# 'git+git://github.com/jasperlittle/django-rest-framework-docs',
# 'git+git://github.com/interlegis/django-admin-bootstrapped',
>>>>>>> config inicial
]
setup(
name='interlegis-sapl',

Loading…
Cancel
Save