Skip to content

Commit

Permalink
Changing STATIC_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
fao89 committed Mar 13, 2020
1 parent c652e5e commit 7c63123
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGES/6128.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Changing STATIC_URL
12 changes: 6 additions & 6 deletions pulpcore/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
ALLOWED_HOSTS = ['*']

MEDIA_ROOT = '/var/lib/pulp/'
STATIC_ROOT = os.path.join(MEDIA_ROOT, 'assets/')

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.11/howto/static-files/

STATIC_URL = '/assets/'
STATIC_ROOT = os.path.join(MEDIA_ROOT, STATIC_URL.lstrip("/"))

DEFAULT_FILE_STORAGE = 'pulpcore.app.models.storage.FileSystem'

Expand Down Expand Up @@ -162,11 +167,6 @@
USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.11/howto/static-files/

STATIC_URL = '/static/'

# A set of default settings to use if the configuration file in
# /etc/pulp/ is missing or if it does not have values for every setting

Expand Down

0 comments on commit 7c63123

Please sign in to comment.