don't serve static files

pull/1/head
Tao Bror Bojlén 2019-02-20 17:14:28 +00:00
rodzic cbab8c33a8
commit d90f0f3218
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: C6EC7AAB905F9E6F
5 zmienionych plików z 3 dodań i 6 usunięć

Wyświetl plik

@ -120,8 +120,5 @@ USE_TZ = False
# https://docs.djangoproject.com/en/2.1/howto/static-files/
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, '../../frontend/build/static')
]
STATICFILES_DIRS = []
STATIC_ROOT = os.path.join(BASE_DIR, 'static')

Wyświetl plik

@ -34,5 +34,4 @@ router.register(r'graph/edges', views.EdgeView, base_name='edge')
urlpatterns = [
path('api/v1/', include(router.urls)),
path('silk/', include('silk.urls', namespace='silk')),
path('', TemplateView.as_view(template_name='index.html')),
]

Wyświetl plik

@ -19,6 +19,7 @@ services:
- POSTGRES_PASSWORD
- POSTGRES_DB
- DJANGO_SETTINGS_MODULE
- ENVIRONMENT=development
build: ./backend/api
command: bash scripts/docker-entrypoint.sh
volumes:

Wyświetl plik

@ -2,4 +2,4 @@ SECRET_KEY=a-long-secret-key
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=fediverse
DJANGO_SETTINGS_MODULE=backend.settings.dev
DJANGO_SETTINGS_MODULE=backend.settings.development