diff --git a/init.sh b/init.sh index 7618d974..ab8612be 100755 --- a/init.sh +++ b/init.sh @@ -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 diff --git a/medical_prescription/medical_prescription/urls.py b/medical_prescription/medical_prescription/urls.py index 39f18d87..eee880cf 100644 --- a/medical_prescription/medical_prescription/urls.py +++ b/medical_prescription/medical_prescription/urls.py @@ -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.*)$', 'django.views.static.serve',