Browse Source

Add static files directory location

master
Gergely Polonkai 7 years ago
parent
commit
5e08661895
  1. 2
      .gitignore
  2. 2
      gergelypolonkaiweb/settings.py
  3. 0
      static/.gitkeep

2
.gitignore

@ -1,3 +1,5 @@
!/static/.gitkeep
/static/*
secret.key
*.pyc
*.sw?

2
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/"

0
static/.gitkeep

Loading…
Cancel
Save