diff --git a/conf/urls.py b/conf/urls.py index 9cf9d56..714ec0d 100644 --- a/conf/urls.py +++ b/conf/urls.py @@ -1,5 +1,4 @@ from django.conf import settings -from django.conf.urls import static from django.contrib import admin from django.urls import path @@ -12,6 +11,3 @@ urlpatterns = [ path(f'{settings.PATH_URL}/', admin.site.urls), path(f'{settings.PATH_URL}/debug/', request_media_debug_view), ] - -if settings.SERVE_FILES: - urlpatterns += static.static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) diff --git a/django_ynh/local_test.py b/django_ynh/local_test.py index e691bfc..42b86dc 100755 --- a/django_ynh/local_test.py +++ b/django_ynh/local_test.py @@ -119,7 +119,7 @@ def create_local_test(django_settings_path, destination, runserver=False): os.environ['HTTP_AUTHORIZATION'] = generate_basic_auth(username='test', password='test123') try: - call_manage_py(final_home_path, 'runserver --nostatic') + call_manage_py(final_home_path, 'runserver') except KeyboardInterrupt: print('\nBye ;)')