Skip to content

Commit

Permalink
Finalizado correcao de staticos com whitenoise
Browse files Browse the repository at this point in the history
  • Loading branch information
feliperian committed Dec 23, 2019
1 parent f4b08cd commit 080843a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,6 @@ dmypy.json
.pyre/

# VSCode Configuratios
.vscode/
.vscode/

static/
4 changes: 1 addition & 3 deletions loja/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@

application = get_wsgi_application()
application = WhiteNoise(
application,
root=settings.STATIC_ROOT,
prefix=settings.STATIC_ROOT.strip('/')
application, root=settings.STATIC_ROOT, prefix=settings.STATIC_URL
)

0 comments on commit 080843a

Please sign in to comment.