Skip to content

Commit

Permalink
#221 - Adding colect staticfiles command in init.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopaulonsoares committed Dec 3, 2017
1 parent 09452ad commit c8829f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ done
echo "Delete migrations"
find . -path "*/migrations/*.pyc" -delete
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
echo "Delete old staticfiles dir"
find . -path "*/staticfiles/*" -delete
echo "Create makemigrations and migrate"
python3 medical_prescription/manage.py makemigrations
python3 medical_prescription/manage.py migrate
Expand Down
2 changes: 2 additions & 0 deletions medical_prescription/medical_prescription/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def protected_serve(request, path, document_root=None, show_indexes=False):
url(r'^$', home, name='landing_page'),
)

# TODO(Joao) Discomment this lines when DEBUG=FALSE.

# if settings.DEBUG:
# urlpatterns += [
# (r'^media/(?P<path>.*)$', 'django.views.static.serve',
Expand Down

0 comments on commit c8829f2

Please sign in to comment.