· 9 years ago · Jan 19, 2017, 11:20 AM
1Alias /static/ /root/mass_update/static/
2
3
4<Directory /root/mass_update/static>
5Require all granted
6</Directory>
7
8
9
10WSGIScriptAlias /mass_update /root/mass_update/dashboard/wsgi.py
11
12
13<Directory /root/mass_update/dashboard>
14<Files wsgi.py>
15Require all granted
16</Directory>
17
18#WSGIPythonPath /var/www/mass_update/:/root/.virtualenvs/dashboard/lib/python2.7/site-packages
19
20WSGIDaemonProcess mass_update python-path=/root/mass_update:/root/.virtualenvs/dashboard/lib/python2.7/site-packages
21WSGIProcessGroup mass_update
22
23<VirtualHost 172.31.128.20:80>
24# ServerAlias test
25
26 DocumentRoot /var/www/idash
27 ServerName idash.test.gr
28 <Directory /var/www/idash>
29 AllowOverride All
30 </Directory>
31</VirtualHost>
32
33"""
34Django settings for dashboard project.
35
36For more information on this file, see
37https://docs.djangoproject.com/en/1.7/topics/settings/
38
39For the full list of settings and their values, see
40https://docs.djangoproject.com/en/1.7/ref/settings/
41"""
42
43# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
44import os
45BASE_DIR = os.path.dirname(os.path.dirname(__file__))
46
47
48# Quick-start development settings - unsuitable for production
49# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
50
51# SECURITY WARNING: keep the secret key used in production secret!
52SECRET_KEY = 'e5(dxmk&1%9fhz^rl3h19!p&ornl)n&a7ff2ju0d73q_+q9aof'
53
54# SECURITY WARNING: don't run with debug turned on in production!
55DEBUG = False
56
57TEMPLATE_DEBUG = False
58
59ALLOWED_HOSTS = ['*']
60
61
62# Application definition
63
64INSTALLED_APPS = (
65 'django.contrib.admin',
66 'django.contrib.auth',
67 'django.contrib.contenttypes',
68 'django.contrib.sessions',
69 'django.contrib.messages',
70 'django.contrib.staticfiles',
71 'mass_update',
72 'smart_selects',
73 'widget_tweaks',
74)
75
76MIDDLEWARE_CLASSES = (
77 'django.contrib.sessions.middleware.SessionMiddleware',
78 'django.middleware.common.CommonMiddleware',
79 'django.middleware.csrf.CsrfViewMiddleware',
80 'django.contrib.auth.middleware.AuthenticationMiddleware',
81 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
82 'django.contrib.messages.middleware.MessageMiddleware',
83 'django.middleware.clickjacking.XFrameOptionsMiddleware',
84)
85
86ROOT_URLCONF = 'dashboard.urls'
87
88WSGI_APPLICATION = 'dashboard.wsgi.application'
89
90
91# Database
92# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
93
94DATABASES = {
95 'default': {
96 'ENGINE': 'django.db.backends.oracle',
97 'NAME': 'test',
98 'USER': 'test',
99 'PASSWORD': 'tes',
100 'HOST': 'host_ip',
101 'PORT':'host_port',
102 }
103}
104
105# Internationalization
106# https://docs.djangoproject.com/en/1.7/topics/i18n/
107
108LANGUAGE_CODE = 'en-us'
109
110TIME_ZONE = 'UTC'
111
112USE_I18N = True
113
114USE_L10N = True
115
116USE_TZ = True
117
118
119# Static files (CSS, JavaScript, Images)
120# https://docs.djangoproject.com/en/1.7/howto/static-files/
121
122STATIC_ROOT = 'static/
123
124STATIC_URL = '/static/'