omaha-consulting / omaha-server

Google Omaha ("Chromium Update") server
https://omaha-consulting.com
Other
209 stars 82 forks source link

Unable to serve static files uploaded in omaha version #231

Closed Bivek closed 8 years ago

Bivek commented 8 years ago

I have run the omaha server by bringing up server with python manage.py runserver 192.168.0.170:9090 and uploaded an installer from admin interface. However, when I click the link provided in omaha version change page (http://192.168.0.170:9090/static/media/build/Everest/stable/win/0.0.1.0/install.exe) it throws page not found error(404).

Bivek commented 8 years ago

Able to fix it by adding

STATIC_ROOT = None
MEDIA_ROOT = os.path.join(PROJECT_DIR, 'static', 'media')
STATICFILES_DIRS += (os.path.join(PROJECT_DIR, 'static'),)

in settings.py