Project for the UPV to develop an app like BlaBlaCar but only for UPV people.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

loggers

+39 -21
+1
requirements/base.txt
··· 13 13 Pillow==3.2.0 14 14 django-recurrence==1.4.0 15 15 django-allauth==0.28.0 16 + project_runpy==0.3.1
+24 -2
upvcarshare/config/settings/base.py
··· 286 286 }, 287 287 'development_only': { 288 288 '()': 'django.utils.log.RequireDebugTrue', 289 - } 289 + }, 290 290 }, 291 291 'formatters': { 292 292 'verbose': { ··· 318 318 'class': 'logutils.colorize.ColorizingStreamHandler', 319 319 'formatter': 'simple', 320 320 }, 321 + 'file_log': { 322 + 'level': 'DEBUG', 323 + 'class': 'logging.handlers.RotatingFileHandler', 324 + 'filename': join(DJANGO_ROOT, 'logs/log.log'), 325 + 'maxBytes': 1024 * 1024, 326 + 'backupCount': 3, 327 + 'formatter': 'verbose', 328 + }, 329 + 'file_sql': { 330 + 'level': 'DEBUG', 331 + 'class': 'logging.handlers.RotatingFileHandler', 332 + 'filename': join(DJANGO_ROOT, 'logs/sql.log'), 333 + 'maxBytes': 1024 * 1024, 334 + 'backupCount': 3, 335 + 'formatter': 'verbose', 336 + }, 321 337 'mail_admins': { 322 338 'level': 'ERROR', 323 339 'filters': ['production_only'], ··· 328 344 # Catch-all modules that use logging 329 345 # Writes to console and file on development, only to console on production 330 346 'root': { 331 - 'handlers': ['console_dev', 'console_prod'], 347 + 'handlers': ['console_dev', 'console_prod', 'file_log'], 332 348 'level': 'DEBUG', 333 349 }, 334 350 'loggers': { 351 + # Write all SQL queries to a file 352 + 'django.db.backends': { 353 + 'handlers': ['file_sql'], 354 + 'level': 'DEBUG', 355 + 'propagate': False, 356 + }, 335 357 # Ignore DisallowedHost 336 358 'django.security.DisallowedHost': { 337 359 'handlers': ['null'],
+14
upvcarshare/config/settings/local.py
··· 44 44 UPV_LOGIN_IGNORE = True 45 45 UPV_LOGIN_DATA_USERNAME = env("UPV_LOGIN_DATA_USERNAME") 46 46 UPV_LOGIN_DATA_PASSWORD = env("UPV_LOGIN_DATA_PASSWORD") 47 + 48 + # DJANGO DEBUG TOOLBAR 49 + # ------------------------------------------------------------------------------ 50 + MIDDLEWARE += ('debug_toolbar.middleware.DebugToolbarMiddleware',) 51 + INSTALLED_APPS += ('debug_toolbar', ) 52 + 53 + INTERNAL_IPS = ['127.0.0.1', ] 54 + 55 + DEBUG_TOOLBAR_CONFIG = { 56 + 'DISABLE_PANELS': [ 57 + 'debug_toolbar.panels.redirects.RedirectsPanel', 58 + ], 59 + 'SHOW_TEMPLATE_CONTEXT': True, 60 + }
-19
upvcarshare/config/settings/production.py
··· 24 24 } 25 25 DATABASES['default']['PORT'] = str(DATABASES['default']['PORT']) # Fix a problem with Oracle connector 26 26 DATABASES['default']['ATOMIC_REQUESTS'] = True 27 - 28 - # DEBUG 29 - # ------------------------------------------------------------------------------ 30 - DEBUG = True 31 - TEMPLATES[0]['OPTIONS']['debug'] = DEBUG 32 - 33 - # DJANGO DEBUG TOOLBAR 34 - # ------------------------------------------------------------------------------ 35 - MIDDLEWARE += ('debug_toolbar.middleware.DebugToolbarMiddleware',) 36 - INSTALLED_APPS += ('debug_toolbar', ) 37 - 38 - INTERNAL_IPS = ['127.0.0.1', '10.0.2.2', 'carsdes.cc.upv.es', '158.42.4.121'] 39 - 40 - DEBUG_TOOLBAR_CONFIG = { 41 - 'DISABLE_PANELS': [ 42 - 'debug_toolbar.panels.redirects.RedirectsPanel', 43 - ], 44 - 'SHOW_TEMPLATE_CONTEXT': True, 45 - }