Skip to content

Commit

Permalink
Changed static settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dhasegan committed Jan 29, 2014
1 parent b24a6f5 commit a5d2dfb
Show file tree
Hide file tree
Showing 18 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.pyc
local_settings.py
venv/
staticfiles/
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: gunicorn jCourse.wsgi
web: python manage.py collectstatic --noinput; gunicorn jCourse.wsgi
1 change: 0 additions & 1 deletion app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def home(request):
'studies': studies
})
context['categories'] = categories
print categories

return render(request, "pages/home.html", context)

Expand Down
4 changes: 2 additions & 2 deletions jCourse/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/var/www/example.com/static/"
STATIC_ROOT = path.join(PROJECT_ROOT, 'static/')
STATIC_ROOT = path.join(PROJECT_ROOT, 'staticfiles/')

# URL prefix for static files.
# Example: "http://example.com/static/", "http://static.example.com/"
STATIC_URL = '/static/'

# Additional locations of static files
STATICFILES_DIRS = (
path.join(PROJECT_ROOT, '/static'),
path.join(PROJECT_ROOT, 'static'),
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a5d2dfb

Please sign in to comment.