Skip to content

Commit

Permalink
Change folder and location of static files
Browse files Browse the repository at this point in the history
  • Loading branch information
francbartoli committed Jul 31, 2018
1 parent 0b642c6 commit c79aef3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ gee_bridge/staticfiles/
\.vscode/

\.pytest_cache/

assets/
7 changes: 4 additions & 3 deletions gee_bridge/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))

# STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static')
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'staticfiles')
# STATIC_ROOT = os.path.join(PROJECT_ROOT, 'staticfiles')
STATIC_ROOT = os.path.join(BASE_DIR, 'assets')

STATIC_URL = '/geemgr/static/'
STATIC_URL = '/geemgr/assets/'
# STATIC_URL = 'https://storage.googleapis.com/gee_bridge/static/'

# STATICFILES_DIRS = (
Expand Down Expand Up @@ -284,7 +285,7 @@

# STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
os.path.join(BASE_DIR, "assets"),
]

# Shapefile directory for Gaul
Expand Down

0 comments on commit c79aef3

Please sign in to comment.