Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b440b36

Browse files
author
Ray Schamp
committed
Add and enable static files.
1 parent 57b57b6 commit b440b36

78 files changed

Lines changed: 19732 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ build
77
ENV
88
.coverage
99
htmlcov
10+
11+
static-root
12+
.sass-cache
13+
/static/stylesheets/mq.css
14+
/static/stylesheets/no-mq.css
15+
/static/stylesheets/style.css

pydotorg/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
STATIC_ROOT = os.path.join(BASE, 'static-root')
3535
STATIC_URL = '/static/'
3636

37+
STATICFILES_DIRS = (os.path.join(BASE, 'static'),)
38+
3739
### Templates
3840

3941
TEMPLATE_DIRS = [

pydotorg/urls.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@
99
url(r'^admin/', include(admin.site.urls)),
1010
url(r'', include('pages.urls')),
1111
)
12+
13+
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
14+
urlpatterns += staticfiles_urlpatterns()
9.9 KB
Loading
19.3 KB
Loading
6.09 KB
Loading
4.55 KB
Loading

static/config.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
require 'susy'
2+
# Require any additional compass plugins here.
3+
4+
5+
# Set this to the root of your project when deployed:
6+
http_path = "../"
7+
sass_dir = "sass"
8+
images_dir = "img"
9+
javascripts_dir = "js"
10+
fonts_dir = "fonts"
11+
css_dir = "stylesheets"
12+
13+
# You can select your preferred output style here (can be overridden via the command line):
14+
# Compass needs to RESTART before a new style will take effect
15+
# output_style = :expanded or :nested or :compact or :compressed
16+
# expanded = kept as written, all comments intact
17+
# nested = kept as written, comments intact, indents added to show nesting
18+
# compact = all one line, retains comments
19+
# compressed = all comments and spacing removed
20+
output_style = :compressed
21+
22+
# To enable relative paths to assets via compass helper functions. Uncomment:
23+
# relative_assets = true
24+
25+
# To disable debugging comments that display the original location of your selectors. Uncomment:
26+
# line_comments = false
27+
28+
29+
# If you prefer the indented syntax, you might want to regenerate this
30+
# project again passing --syntax sass, or you can uncomment this:
31+
# preferred_syntax = :sass
32+
# and then run:
33+
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass

static/favicon.ico

1.12 KB
Binary file not shown.

static/fonts/FluxBold.eot

57.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)