Browse Source

set STATIC_ROOT in settings and disabled admin

david 5 years ago
parent
commit
fba4c63928
2 changed files with 3 additions and 1 deletions
  1. 1 0
      .gitignore
  2. 2 1
      superlists/settings.py

+ 1 - 0
.gitignore

@@ -3,3 +3,4 @@ geckodriver.log
 virtenv
 __pycache__
 *.pyc
+static

+ 2 - 1
superlists/settings.py

@@ -32,7 +32,7 @@ ALLOWED_HOSTS = ['localhost']
 
 INSTALLED_APPS = [
     'lists',
-    'django.contrib.admin',
+    #'django.contrib.admin',
     'django.contrib.auth',
     'django.contrib.contenttypes',
     'django.contrib.sessions',
@@ -119,3 +119,4 @@ USE_TZ = True
 # https://docs.djangoproject.com/en/1.11/howto/static-files/
 
 STATIC_URL = '/static/'
+STATIC_ROOT = os.path.join(BASE_DIR, 'static')