#Enable invitations
INVITATIONS_ENABLED = getattr(settings, 'ASTAKOS_INVITATIONS_ENABLED', True)
-# The URL where requests are redirected for login, especially when using the login_required() decorator.
-LOGIN_URL = getattr(settings, 'ASTAKOS_LOGIN_URL', '/im')
-
COOKIE_NAME = getattr(settings, 'ASTAKOS_COOKIE_NAME', '_pithos2_a')
COOKIE_DOMAIN = getattr(settings, 'ASTAKOS_COOKIE_DOMAIN', None)
The view uses commit_manually decorator in order to ensure the number of the
user invitations is going to be updated only if the email has been successfully sent.
- If the user isn't logged in, redirects to settings.ASTAKOS_LOGIN_URL.
+ If the user isn't logged in, redirects to settings.LOGIN_URL.
**Arguments**
The view expectes the following settings are defined:
* LOGIN_URL: login uri
- * DEFAULT_CONTACT_EMAIL: service support email
- * DEFAULT_FROM_EMAIL: from email
+ * ASTAKOS_DEFAULT_CONTACT_EMAIL: service support email
+ * ASTAKOS_DEFAULT_FROM_EMAIL: from email
"""
status = None
message = None
In case of POST updates the user informantion and redirects to ``next``
url parameter if exists.
- If the user isn't logged in, redirects to settings.ASTAKOS_LOGIN_URL.
+ If the user isn't logged in, redirects to settings.LOGIN_URL.
**Arguments**
In case of GET request renders a form for providing the feedback information.
In case of POST sends an email to support team.
- If the user isn't logged in, redirects to settings.ASTAKOS_LOGIN_URL.
+ If the user isn't logged in, redirects to settings.LOGIN_URL.
**Arguments**
**Settings:**
* LOGIN_URL: login uri
- * DEFAULT_CONTACT_EMAIL: List of feedback recipients
+ * ASTAKOS_DEFAULT_CONTACT_EMAIL: List of feedback recipients
"""
if request.method == 'GET':
form = FeedbackForm()
USE_X_FORWARDED_HOST = False
# Set umask (needed for gunicorn setup).
-#umask(0077)
\ No newline at end of file
+#umask(0077)
+
+# The URL where requests are redirected for login, especially when using the login_required() decorator.
+LOGIN_URL = '/im'
\ No newline at end of file