| | |
| | | # SECURITY WARNING: don't run with debug turned on in production! |
| | | DEBUG = True |
| | | |
| | | ALLOWED_HOSTS = [] |
| | | ALLOWED_HOSTS = ['localhost', 'moja.domena.si'] |
| | | |
| | | |
| | | # Application definition |
| | |
| | | 'django.contrib.sessions', |
| | | 'django.contrib.messages', |
| | | 'django.contrib.staticfiles', |
| | | 'sensorui.apps' |
| | | 'sensorui', |
| | | 'calculator', |
| | | 'rest_framework' |
| | | ] |
| | | |
| | | MIDDLEWARE = [ |
| | |
| | | |
| | | DATABASES = { |
| | | 'default': { |
| | | 'ENGINE': 'django.db.backends.sqlite3', |
| | | 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), |
| | | # 'ENGINE': 'django.db.backends.sqlite3', |
| | | # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), |
| | | 'ENGINE': 'django.db.backends.mysql', |
| | | 'NAME': 'samo', |
| | | 'USER': 'samo', |
| | | 'PASSWORD': 'samo', |
| | | 'HOST': 'localhost', # Or an IP Address that your DB is hosted on |
| | | 'PORT': '3306', |
| | | } |
| | | } |
| | | |
| | |
| | | # https://docs.djangoproject.com/en/2.1/howto/static-files/ |
| | | |
| | | STATIC_URL = '/static/' |
| | | STATIC_ROOT = os.path.join(BASE_DIR, 'static/') |