Removed media path settings, there are no file uploads

This commit is contained in:
Martin Mahner 2015-01-09 08:49:26 +00:00
parent 7a2c414f95
commit 74e474b390
3 changed files with 3 additions and 9 deletions

View file

@ -74,12 +74,9 @@ STATIC_ROOT = os.path.join(VAR_ROOT, 'static')
# Project URLS and media settings # Project URLS and media settings
#============================================================================== #==============================================================================
MEDIA_URL = '/uploads/'
STATIC_URL = '/static/' STATIC_URL = '/static/'
ADMIN_MEDIA_PREFIX = '/static/admin/' ADMIN_MEDIA_PREFIX = '/static/admin/'
MEDIA_ROOT = os.path.join(VAR_ROOT, 'uploads')
ROOT_URLCONF = 'dpaste.urls' ROOT_URLCONF = 'dpaste.urls'
LOGIN_URL = '/accounts/login/' LOGIN_URL = '/accounts/login/'

View file

@ -1,7 +1,8 @@
/srv/dpaste.de/var/*.log { /srv/dpaste.de/var/*.log {
monthly monthly
rotate 52 rotate 52
dateext dateext
create
missingok missingok
compress compress
} }

View file

@ -78,10 +78,6 @@ server {
auth_basic_user_file /srv/dpaste.de/var/.htpasswd; auth_basic_user_file /srv/dpaste.de/var/.htpasswd;
} }
location /media/ {
alias /srv/dpaste.de/var/media/;
}
location /static/ { location /static/ {
alias /srv/dpaste.de/var/static/; alias /srv/dpaste.de/var/static/;
} }