Commits

Kenneth Love committed 5f3d801

oh, look, twitter bootstrap'

Comments (0)

Files changed (3)

lightning/settings/base.py

 
 # Absolute filesystem path to the directory that will hold user-uploaded files.
 # Example: "/home/media/media.lawrence.com/media/"
-MEDIA_ROOT = Path(PROJECT_ROOT.ancestor(1), 'media')
+MEDIA_ROOT = Path(PROJECT_ROOT.ancestor(1), 'media/')
 
 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
 # trailing slash.
 # Don't put anything in this directory yourself; store your static files
 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
 # Example: "/home/media/media.lawrence.com/static/"
-STATIC_ROOT = Path(PROJECT_ROOT.ancestor(1), 'staticfiles')
+STATIC_ROOT = Path(PROJECT_ROOT.ancestor(1), 'staticfiles/')
 
 # URL prefix for static files.
 # Example: "http://media.lawrence.com/static/"
 
 # Additional locations of static files
 STATICFILES_DIRS = (
-    Path(PROJECT_ROOT, 'static'),
+    Path(PROJECT_ROOT, 'static/'),
 )
 
 # List of finder classes that know how to find static files in

lightning/static/js/app.js

+$(function() {
+    $('body').bind('click', function(e) {
+        $('.dropdown-toggle, .menu').parent('li').removeClass('open');
+    });
+    $('.dropdown-toggle, .menu').live('click', function(e) {
+        var $li = $(this).parent('li').toggleClass('open');
+        return false;
+    });
+});
+

lightning/urls.py

 from django.conf.urls.defaults import patterns, include, url
+from django.contrib.staticfiles.urls import staticfiles_urlpatterns
 
 from django.contrib import admin
 admin.autodiscover()
 
     url(r'^admin/', include(admin.site.urls)),
     url(r'', include('social_auth.urls')),
+    url(r'^$', 'django.views.generic.simple.direct_to_template', {
+        'template': 'index.html'}, name='home'),
 )
+
+urlpatterns += staticfiles_urlpatterns()