mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-23 05:30:53 +02:00
Refactor project folders.
Move helpdesk to src folder. Move tests to project base folder.
This commit is contained in:
@@ -1,27 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "demodesk.config.settings")
|
|
||||||
try:
|
|
||||||
from django.core.management import execute_from_command_line
|
|
||||||
except ImportError:
|
|
||||||
# The above import may fail for some other reason. Ensure that the
|
|
||||||
# issue is really that Django is missing to avoid masking other
|
|
||||||
# exceptions on Python 2.
|
|
||||||
try:
|
|
||||||
import django # noqa
|
|
||||||
except ImportError:
|
|
||||||
raise ImportError(
|
|
||||||
"Couldn't import Django. Are you sure it's installed and "
|
|
||||||
"available on your PYTHONPATH environment variable? Did you "
|
|
||||||
"forget to activate a virtual environment?"
|
|
||||||
)
|
|
||||||
raise
|
|
||||||
execute_from_command_line(sys.argv)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
@@ -1,50 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""Python packaging."""
|
|
||||||
|
|
||||||
import os
|
|
||||||
from setuptools import setup
|
|
||||||
|
|
||||||
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
|
||||||
project_root = os.path.dirname(here)
|
|
||||||
|
|
||||||
|
|
||||||
NAME = "django-helpdesk-demodesk"
|
|
||||||
DESCRIPTION = "A demo Django project using django-helpdesk"
|
|
||||||
README = open(os.path.join(here, "README.rst")).read()
|
|
||||||
VERSION = "0.5.0"
|
|
||||||
# VERSION = open(os.path.join(project_root, 'VERSION')).read().strip()
|
|
||||||
AUTHOR = "django-helpdesk team"
|
|
||||||
URL = "https://github.com/django-helpdesk/django-helpdesk"
|
|
||||||
CLASSIFIERS = [
|
|
||||||
"Development Status :: 4 - Beta",
|
|
||||||
"License :: OSI Approved :: BSD License",
|
|
||||||
"Programming Language :: Python :: 3.8",
|
|
||||||
"Programming Language :: Python :: 3.9",
|
|
||||||
"Programming Language :: Python :: 3.10",
|
|
||||||
"Framework :: Django :: 3.2",
|
|
||||||
"Framework :: Django :: 4.0",
|
|
||||||
]
|
|
||||||
KEYWORDS = []
|
|
||||||
PACKAGES = ["demodesk"]
|
|
||||||
REQUIREMENTS = ["django-helpdesk"]
|
|
||||||
ENTRY_POINTS = {"console_scripts": ["demodesk = demodesk.manage:main"]}
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__": # Don't run setup() when we import this module.
|
|
||||||
setup(
|
|
||||||
name=NAME,
|
|
||||||
version=VERSION,
|
|
||||||
description=DESCRIPTION,
|
|
||||||
long_description=README,
|
|
||||||
classifiers=CLASSIFIERS,
|
|
||||||
keywords=" ".join(KEYWORDS),
|
|
||||||
author=AUTHOR,
|
|
||||||
url=URL,
|
|
||||||
license="BSD",
|
|
||||||
packages=PACKAGES,
|
|
||||||
include_package_data=True,
|
|
||||||
zip_safe=False,
|
|
||||||
install_requires=REQUIREMENTS,
|
|
||||||
entry_points=ENTRY_POINTS,
|
|
||||||
)
|
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
@@ -122,6 +122,10 @@ These changes are visible throughout django-helpdesk
|
|||||||
|
|
||||||
**Default:** ``HELPDESK_NOTIFY_SUBMITTER_FOR_ALL_TICKET_CHANGES = False``
|
**Default:** ``HELPDESK_NOTIFY_SUBMITTER_FOR_ALL_TICKET_CHANGES = False``
|
||||||
|
|
||||||
|
- **HELPDESK_PRIVATE_FOLLOWUP_MEANS_NO_EMAILS** If ``True``, private follow-ups (marked with ``public=False``) will not trigger any email notifications to any recipients (submitters, assigned users, CC'd users, or queue notifications). This provides complete privacy for internal staff communications. Public follow-ups (``public=True``) continue to work normally. This setting overrides other notification settings like ``HELPDESK_NOTIFY_SUBMITTER_FOR_ALL_TICKET_CHANGES`` when the follow-up is private.
|
||||||
|
|
||||||
|
**Default:** ``HELPDESK_PRIVATE_FOLLOWUP_MEANS_NO_EMAILS = False``
|
||||||
|
|
||||||
- **HELPDESK_EMAIL_FALLBACK_LOCALE** Fallback locale for templated emails when queue locale not found
|
- **HELPDESK_EMAIL_FALLBACK_LOCALE** Fallback locale for templated emails when queue locale not found
|
||||||
|
|
||||||
**Default:** ``HELPDESK_EMAIL_FALLBACK_LOCALE = "en"``
|
**Default:** ``HELPDESK_EMAIL_FALLBACK_LOCALE = "en"``
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
[flake8]
|
|
||||||
max-line-length = 120
|
|
||||||
import-order-style = pep8
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user