mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 15:27:47 -02:30
Work in progress on inventory script using API.
This commit is contained in:
@@ -133,7 +133,6 @@ INSTALLED_APPS = (
|
||||
INTERNAL_IPS = ('127.0.0.1',)
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'FILTER_BACKEND': 'ansibleworks.main.custom_filters.CustomFilterBackend',
|
||||
'DEFAULT_PAGINATION_SERIALIZER_CLASS': 'ansibleworks.main.pagination.PaginationSerializer',
|
||||
'PAGINATE_BY': 25,
|
||||
'PAGINATE_BY_PARAM': 'page_size',
|
||||
@@ -142,6 +141,9 @@ REST_FRAMEWORK = {
|
||||
'rest_framework.authentication.TokenAuthentication',
|
||||
'rest_framework.authentication.SessionAuthentication',
|
||||
),
|
||||
'DEFAULT_FILTER_BACKENDS': (
|
||||
'ansibleworks.main.custom_filters.CustomFilterBackend',
|
||||
),
|
||||
'DEFAULT_PARSER_CLASSES': (
|
||||
'rest_framework.parsers.JSONParser',
|
||||
'rest_framework.parsers.FormParser',
|
||||
@@ -218,6 +220,9 @@ DEVSERVER_MODULES = (
|
||||
#'devserver.modules.profile.LineProfilerModule',
|
||||
)
|
||||
|
||||
# Set default ports for live server tests.
|
||||
os.environ.setdefault('DJANGO_LIVE_TEST_SERVER_ADDRESS', 'localhost:9013-9199')
|
||||
|
||||
# Skip migrations when running tests.
|
||||
SOUTH_TESTS_MIGRATE = False
|
||||
|
||||
@@ -234,6 +239,11 @@ CELERYD_TASK_SOFT_TIME_LIMIT = 3540
|
||||
CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'
|
||||
CELERYBEAT_MAX_LOOP_INTERVAL = 60
|
||||
|
||||
if 'devserver' in INSTALLED_APPS:
|
||||
INTERNAL_API_URL = 'http://127.0.0.1:%s' % DEVSERVER_DEFAULT_PORT
|
||||
else:
|
||||
INTERNAL_API_URL = 'http://127.0.0.1:8000'
|
||||
|
||||
LOGGING = {
|
||||
'version': 1,
|
||||
'disable_existing_loggers': False,
|
||||
|
||||
@@ -21,6 +21,8 @@ ALLOWED_HOSTS = []
|
||||
# Production should only use minified JS for UI.
|
||||
USE_MINIFIED_JS = True
|
||||
|
||||
INTERNAL_API_URL = 'http://127.0.0.1:80'
|
||||
|
||||
# If a local_settings.py file is present here, use it and ignore the global
|
||||
# settings. Normally, local settings would only be present during development.
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user