|
@@ -1,34 +1,12 @@
|
|
|
-"""
|
|
|
-Django settings for odoo_control project.
|
|
|
-
|
|
|
-Generated by 'django-admin startproject' using Django 1.11.
|
|
|
-
|
|
|
-For more information on this file, see
|
|
|
-https://docs.djangoproject.com/en/1.11/topics/settings/
|
|
|
-
|
|
|
-For the full list of settings and their values, see
|
|
|
-https://docs.djangoproject.com/en/1.11/ref/settings/
|
|
|
-"""
|
|
|
-
|
|
|
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__)))
|
|
|
|
|
|
-
|
|
|
-# Quick-start development settings - unsuitable for production
|
|
|
-# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
|
|
|
-
|
|
|
-# SECURITY WARNING: keep the secret key used in production secret!
|
|
|
SECRET_KEY = '^*&s%i#9p7tq(#%f)--#ki2*qx8=iv5173eg35$qupv8%+fyv7'
|
|
|
|
|
|
-# SECURITY WARNING: don't run with debug turned on in production!
|
|
|
DEBUG = True
|
|
|
|
|
|
-ALLOWED_HOSTS = []
|
|
|
-
|
|
|
-
|
|
|
-# Application definition
|
|
|
+ALLOWED_HOSTS = ['*']
|
|
|
|
|
|
INSTALLED_APPS = [
|
|
|
'django.contrib.admin',
|
|
@@ -37,6 +15,7 @@ INSTALLED_APPS = [
|
|
|
'django.contrib.sessions',
|
|
|
'django.contrib.messages',
|
|
|
'django.contrib.staticfiles',
|
|
|
+ 'django_extensions',
|
|
|
'tastypie',
|
|
|
'core.apps.CoreConfig',
|
|
|
'api.apps.ApiConfig',
|
|
@@ -73,10 +52,6 @@ TEMPLATES = [
|
|
|
|
|
|
WSGI_APPLICATION = 'odoo_control.wsgi.application'
|
|
|
|
|
|
-
|
|
|
-# Database
|
|
|
-# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
|
|
|
-
|
|
|
DATABASES = {
|
|
|
'default': {
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
@@ -84,10 +59,6 @@ DATABASES = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-# Password validation
|
|
|
-# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
|
|
|
-
|
|
|
AUTH_PASSWORD_VALIDATORS = [
|
|
|
{
|
|
|
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
|
@@ -103,11 +74,9 @@ AUTH_PASSWORD_VALIDATORS = [
|
|
|
},
|
|
|
]
|
|
|
|
|
|
+AUTH_USER_MODEL = 'core.models.user.User'
|
|
|
|
|
|
-# Internationalization
|
|
|
-# https://docs.djangoproject.com/en/1.11/topics/i18n/
|
|
|
-
|
|
|
-LANGUAGE_CODE = 'en-us'
|
|
|
+LANGUAGE_CODE = 'es-PY'
|
|
|
|
|
|
TIME_ZONE = 'UTC'
|
|
|
|
|
@@ -117,10 +86,6 @@ USE_L10N = True
|
|
|
|
|
|
USE_TZ = True
|
|
|
|
|
|
-
|
|
|
-# Static files (CSS, JavaScript, Images)
|
|
|
-# https://docs.djangoproject.com/en/1.11/howto/static-files/
|
|
|
-
|
|
|
STATIC_URL = '/static/'
|
|
|
|
|
|
TASTYPIE_DEFAULT_FORMATS = ['json', 'xml']
|