Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1506757352-practice
Commits
6165ce89
Commit
6165ce89
authored
Oct 10, 2019
by
Syahrul Ardiansyah
Browse files
set STATIC_ROOT in settings and disable admin
parent
945630e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
latihan1/settings.py
View file @
6165ce89
...
...
@@ -36,7 +36,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS
=
[
'django.contrib.admin'
,
#
'django.contrib.admin',
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
'django.contrib.sessions'
,
...
...
@@ -123,6 +123,6 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.11/howto/static-files/
PROJECT_DIR
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
STATIC_ROOT
=
os
.
path
.
join
(
PROJECT
_DIR
,
'static'
)
STATIC_ROOT
=
os
.
path
.
abspath
(
os
.
path
.
join
(
BASE
_DIR
,
'
../
static'
)
)
STATIC_URL
=
'/static/'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment