From 5e0866189562b18c9ce5b001e3b2ee0b7a3b3cbe Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 14 Jun 2014 20:59:34 +0000 Subject: [PATCH] Add static files directory location --- .gitignore | 2 ++ gergelypolonkaiweb/settings.py | 2 +- static/.gitkeep | 0 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 static/.gitkeep diff --git a/.gitignore b/.gitignore index 1d858a2..c227d15 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +!/static/.gitkeep +/static/* secret.key *.pyc *.sw? diff --git a/gergelypolonkaiweb/settings.py b/gergelypolonkaiweb/settings.py index 194f7dd..77c29c0 100644 --- a/gergelypolonkaiweb/settings.py +++ b/gergelypolonkaiweb/settings.py @@ -65,7 +65,7 @@ MEDIA_URL = '' # 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 = '' +STATIC_ROOT = SITE_ROOT + os.path.sep + '..' + os.path.sep + 'static' # URL prefix for static files. # Example: "http://example.com/static/", "http://static.example.com/" diff --git a/static/.gitkeep b/static/.gitkeep new file mode 100644 index 0000000..e69de29