diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] +settings.py # C extensions *.so diff --git a/sandbox_project/settings.py b/sandbox_project/settings-develoment.py rename from sandbox_project/settings.py rename to sandbox_project/settings-develoment.py --- a/sandbox_project/settings.py +++ b/sandbox_project/settings-develoment.py @@ -28,6 +28,7 @@ ALLOWED_HOSTS = [ 'tools.wmflabs.org', + 'localhost', ] @@ -134,7 +135,7 @@ STATIC_URL = '/static/' -STATIC_ROOT = os.path.join(BASE_DIR, 'static') +#STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static") ] diff --git a/sandbox_project/settings.py b/sandbox_project/settings-production.py rename from sandbox_project/settings.py rename to sandbox_project/settings-production.py --- a/sandbox_project/settings.py +++ b/sandbox_project/settings-production.py @@ -24,7 +24,7 @@ SECRET_KEY = '43)%4yx)aa@a=+_c(fn&kf3g29xax+=+a&key9i=!98zyim=8j' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = [ 'tools.wmflabs.org', @@ -133,11 +133,11 @@ # https://docs.djangoproject.com/en/2.2/howto/static-files/ -STATIC_URL = '/static/' +STATIC_URL = '/aneun-sandbox/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') -STATICFILES_DIRS = [ - os.path.join(BASE_DIR, "static") -] +#STATICFILES_DIRS = [ +# os.path.join(BASE_DIR, "static") +#] CRISPY_TEMPLATE_PACK = 'bootstrap4'