Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. from settings import *
  2.  
  3. DEBUG = True
  4.  
  5. # Template debug
  6. TEMPLATES[0]['OPTIONS']['debug'] = True
  7.  
  8. PROJECT_URL = "http://localhost:8000"
  9. # Run localhost with custom IP
  10. # PROJECT_URL = "http://192.168.1.157:7000"
  11.  
  12. PREPEND_WWW = False
  13.  
  14. DATABASES['default']['USER'] = 'root'
  15. DATABASES['default']['PASSWORD'] = 'Ramborambo999'
  16. DATABASES['default']['HOST'] = '127.0.0.1'
  17.  
  18. INSTALLED_APPS = (
  19. 'django_extensions',
  20. # 'template_debug',
  21. ) + INSTALLED_APPS
  22. # + ('debug_toolbar',)
  23.  
  24. EMAIL_HOST = 'mailtrap.io'
  25. EMAIL_HOST_USER = '24978d0a449f63cdb'
  26. EMAIL_HOST_PASSWORD = 'ff6b98d28924e6'
  27. EMAIL_PORT = '2525'
  28.  
  29. if not EMAIL:
  30. EMAIL = {}
  31.  
  32. # Template directories
  33. MYPAGES_TEMPLATE_DIR = os.path.join(APPLICATION_ROOT, 'mypages_templates')
  34. DEFAULT_MYPAGE_TEMPLATE = os.path.join(APPLICATION_ROOT, 'templates/default_template.html')
  35. DEFAULT_BLOGPAGE_TEMPLATE = os.path.join(APPLICATION_ROOT, 'templates/blogpages/default_template.html')
  36.  
  37. TEMPLATES[0]['DIRS'] = [
  38. MYPAGES_TEMPLATE_DIR,
  39. os.path.join(APPLICATION_ROOT, 'templates'),
  40. ]
  41.  
  42. # MEDIA
  43. MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads')
  44.  
  45. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  46. # trailing slash.
  47. # Examples: "http://example.com/media/", "http://media.example.com/"
  48. MEDIA_URL = '%s/static/' % PROJECT_URL
  49.  
  50. # Absolute path to the directory static files should be collected to.
  51. # Don't put anything in this directory yourself; store your static files
  52. # in apps' "static/" subdirectories and in STATICFILES_DIRS.
  53. # Example: "/var/www/example.com/static/"
  54. STATIC_ROOT = os.path.join(BASE_DIR, 'static')
  55.  
  56. STATIC_URL = '/static/'
  57.  
  58. # Additional locations of static files
  59. STATICFILES_DIRS = (
  60. # Put strings here, like "/home/html/static" or "C:/www/django/static".
  61. # Always use forward slashes, even on Windows.
  62. # Don't forget to use absolute paths, not relative paths.
  63. os.path.join(APPLICATION_ROOT, 'assets'),
  64. os.path.join(BASE_DIR, 'uploads'),
  65. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement