diff --git a/CodeReview/settings.py b/CodeReview/settings.py index a2b7a1f..cbb1e98 100644 --- a/CodeReview/settings.py +++ b/CodeReview/settings.py @@ -166,9 +166,9 @@ USE_I18N = False USE_L10N = False USE_TZ = False -# These options define urls for static and media urls +# These options define urls for static urls STATIC_URL = '/static/' -MEDIA_URL = '/media/' +STATIC_ROOT = os.getenv("STATIC_DIR", "collected-static") # This option defines which field to use automatically for PrimaryKeys DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/README.md b/README.md index 407addc..8aa2753 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ review, the instructor will get a final email with the notes the senior has give - DEV_STAGE: The current stage of development options are: Dev, Prod, and GitHub - PRODUCTION_HOST: The host to use in the production environment - SECRET_KEY: Key to use in production as the Django secret key +- STATIC_DIR: A path to the directory to collect static files to - EMAIL_HOST: The email server host we're connecting to - EMAIL_USER: The username of the email we'll use to send notifications - EMAIL_PASS: The password to use for the email @@ -40,17 +41,6 @@ review, the instructor will get a final email with the notes the senior has give - LDAP_DOMAIN: The domain to use when logging users in - LDAP_BASE_CONTEXT: The base context to use when searching for users -### Services Used - -- [Python](https://www.python.org/) -- [Django](https://www.djangoproject.com/) -- [ActiveDirectory](https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/get-started/virtual-dc/active-directory-domain-services-overview) -- [lapd3](https://pypi.org/project/ldap3/) -- [Jquery](https://jquery.com/) -- [FontAwesome](https://fontawesome.com/) -- [JsonSchema](https://pypi.org/project/jsonschema/) -- [DjangoMailer](https://pypi.org/project/django-mailer/) - ## Running For both development and production, you'll need to clone the repository: