mirror of
https://github.com/fergalmoran/dss.git
synced 2026-02-11 10:33:58 +00:00
Testing off-site static files
This commit is contained in:
@@ -52,7 +52,7 @@ USE_TZ = True
|
||||
|
||||
SITE_ROOT = here('')
|
||||
MEDIA_ROOT = localsettings.MEDIA_ROOT
|
||||
STATIC_ROOT = '/var/www/deepsouthsounds.com/static' # here('static') #localsettings.STATIC_ROOT if hasattr(localsettings, 'STATIC_ROOT') else ''
|
||||
STATIC_ROOT = here('static') #'/var/www/deepsouthsounds.com/static' # here('static') #localsettings.STATIC_ROOT if hasattr(localsettings, 'STATIC_ROOT') else ''
|
||||
CACHE_ROOT = localsettings.CACHE_ROOT
|
||||
|
||||
if DEBUG:
|
||||
@@ -160,6 +160,7 @@ INSTALLED_APPS = (
|
||||
'django_extensions',
|
||||
'django_gravatar',
|
||||
'compressor',
|
||||
'require',
|
||||
'notification',
|
||||
'djcelery',
|
||||
'sorl.thumbnail',
|
||||
@@ -257,6 +258,10 @@ EMAIL_PORT = localsettings.EMAIL_PORT
|
||||
DEFAULT_FROM_EMAIL = 'DSS ChatBot <chatbot@deepsouthsounds.com>'
|
||||
DEFAULT_HTTP_PROTOCOL = 'http'
|
||||
|
||||
REQUIRE_BASE_URL = "js"
|
||||
REQUIRE_JS = "libs/require.js"
|
||||
REQUIRE_DEBUG = False #DEBUG
|
||||
|
||||
if DEBUG:
|
||||
import mimetypes
|
||||
mimetypes.add_type("image/png", ".png", True)
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
requirejs.config({
|
||||
baseUrl: "static/js",
|
||||
urlArgs: "bust="+ (new Date()).getTime(),
|
||||
waitSeconds: 200,
|
||||
paths: {
|
||||
jquery: 'libs/jquery',
|
||||
backbone: 'libs/backbone/backbone',
|
||||
|
||||
23
templates/debug_500.html
Normal file
23
templates/debug_500.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="alert alert-error">
|
||||
<strong>That's a 500..</strong>
|
||||
|
||||
<p>Something's gone wrong under the hood.</p>
|
||||
</div>
|
||||
<p>
|
||||
<img src="https://dl.dropbox.com/u/4003020/500.png" alt="500"/>
|
||||
</p>
|
||||
|
||||
Type: {{ type }} <br />
|
||||
Value: {{ value }} <br />
|
||||
Traceback: {{ traceback }} <br />
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,3 +1,5 @@
|
||||
<!--[if lt IE 7]>
|
||||
<!--[if lt IE 8]>
|
||||
<p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p>
|
||||
<![endif]-->
|
||||
|
||||
<script type="text/javascript"> if (!window.console) console = {log: function() {}}; </script>
|
||||
|
||||
14
templates/views/PlayCountLoginAlert.html
Normal file
14
templates/views/PlayCountLoginAlert.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% load account %}
|
||||
{% load socialaccount %}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h3>Hey There!!</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
We've noticed you've been playing a few mixes now.<br/>
|
||||
This is cool and we're happy you're enjoying the site but we would love it<br/>
|
||||
if you would consider logging in.<br/>
|
||||
This will let you comment on mixes and even download them
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user