mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
fix issue with static files in local development by making STATIC_URL = '/static/' and STATIC_ROOT = '/static/static_root/' if DEBUG == True in settings.py
This commit is contained in:
parent
da3ee740fe
commit
be9f31e519
2 changed files with 14 additions and 2 deletions
5
apps/reader/Things to talk about with Sam
Normal file
5
apps/reader/Things to talk about with Sam
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Things to talk about with Sam
|
||||||
|
|
||||||
|
apps.reader.forms.save errors out because authenticate() rejects inactive users now unless you use a different Auth backend
|
||||||
|
why is psycopg2 commented out of requirements?
|
||||||
|
newsblur.com css issues on home page
|
|
@ -71,8 +71,15 @@ USE_I18N = False
|
||||||
LOGIN_REDIRECT_URL = '/'
|
LOGIN_REDIRECT_URL = '/'
|
||||||
LOGIN_URL = '/account/login'
|
LOGIN_URL = '/account/login'
|
||||||
MEDIA_URL = '/media/'
|
MEDIA_URL = '/media/'
|
||||||
STATIC_URL = '/media/'
|
|
||||||
STATIC_ROOT = '/media/'
|
if DEBUG:
|
||||||
|
STATIC_URL = '/static/'
|
||||||
|
STATIC_ROOT = '/static/static_root/'
|
||||||
|
else:
|
||||||
|
STATIC_URL = '/media/'
|
||||||
|
STATIC_ROOT = '/media/'
|
||||||
|
|
||||||
|
|
||||||
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
|
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
|
||||||
# trailing slash.
|
# trailing slash.
|
||||||
# Examples: "http://foo.com/media/", "/media/".
|
# Examples: "http://foo.com/media/", "/media/".
|
||||||
|
|
Loading…
Add table
Reference in a new issue