Resolved. Followed a guide from here 
<http://matthewphiong.com/managing-django-static-files-on-heroku>

On Tuesday, 11 October 2016 22:46:16 UTC+8, Aaron Kim wrote:
>
> I managed to run my oscar site on heroku while DEBUG=True. This shows all 
> the html and css. 
>
> Then, I differentiated local setting and production setting. Part of the 
> differentiation was making DEBUG=False for production setting. 
>
> I can still see static files still copied to where I set as STATIC_ROOT in 
> heroku's build log. However, I cannot see any image or styling. 
>
> Can anyone please comment? Following was the setting and build log. 
>
> PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
>>
>> STATIC_ROOT = os.path.join(PROJECT_ROOT, 'staticfiles')
>> STATIC_URL = '/static/'
>>
>> # Extra places for collectstatic to find static files.
>> STATICFILES_DIRS = (
>>     os.path.join(PROJECT_ROOT, 'static'),
>> )
>>
>>
>  
>
>>  -----> Python app detected
>
> $ pip install -r requirements.txt
>
> $ python manage.py collectstatic --noinput
>> Error importing settings_local. Don't panic, this just means that this is 
>> a production environment.
>> 294 static files copied to '/app/sample/staticfiles', 1 unmodified.
>> -----> Discovering process types
>> Procfile declares types -> web
>> -----> Compressing...
>> Done: 76.1M
>> -----> Launching...
>> Released v14
>> https://sampleapp.herokuapp.com/ deployed to Heroku
>
>

-- 
https://github.com/tangentlabs/django-oscar
http://django-oscar.readthedocs.org/en/latest/
https://twitter.com/django_oscar
--- 
You received this message because you are subscribed to the Google Groups 
"django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-oscar+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-oscar.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/django-oscar/01753394-e510-4484-9489-53e788eb3662%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to