Commit 7b6c653f authored by Ysabella Panghulan's avatar Ysabella Panghulan

added and fixed pythonanywhere configuration

parent 37f7c949
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %} {% endblock %}</title> <title>{% block title %} {% endblock %}</title>
{% load static %} {% load static %}
<link rel="stylesheet" href="{% static 'stylesheets/base.css' %}" type="text/css"> <link rel="stylesheet" href="{{ STATIC_URL }}/static/base.css" type="text/css">
{% block stylesheets %}{% endblock %} {% block stylesheets %}{% endblock %}
</head> </head>
......
...@@ -24,12 +24,12 @@ BASE_DIR = Path(__file__).resolve().parent.parent ...@@ -24,12 +24,12 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret! # SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.getenv('SECRET_KEY') SECRET_KEY = 'django-insecure-yf^au+^2_=a0lpy&05)znoh@2kh)!lnhida^b^8r@#14yu%5nl'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = ['http://panghu.pythonanywhere.com/'] ALLOWED_HOSTS = ['panghu.pythonanywhere.com']
# Application definition # Application definition
...@@ -127,8 +127,8 @@ USE_TZ = True ...@@ -127,8 +127,8 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.2/howto/static-files/ # https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATICFILES_DIRS = [ STATICFILES_DIRS = [
BASE_DIR / "static",
'dashboard/static/dashboard', 'dashboard/static/dashboard',
'forum/static/forum', 'forum/static/forum',
'assignments/static/assignments', 'assignments/static/assignments',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment