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

added and fixed pythonanywhere configuration

parent 37f7c949
......@@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %} {% endblock %}</title>
{% 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 %}
</head>
......
......@@ -24,12 +24,12 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# 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!
DEBUG = True
ALLOWED_HOSTS = ['http://panghu.pythonanywhere.com/']
ALLOWED_HOSTS = ['panghu.pythonanywhere.com']
# Application definition
......@@ -127,8 +127,8 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATICFILES_DIRS = [
BASE_DIR / "static",
'dashboard/static/dashboard',
'forum/static/forum',
'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