docbow/app_settings: introduce a BASE_URL setting, use it in sendmail
This commit is contained in:
parent
e35f26d4b4
commit
1bc81386d6
|
@ -13,4 +13,4 @@ DOCBOW_MENU = getattr(settings, 'DOCBOW_MENU', [
|
|||
('help', ugettext_noop('help_menu')),
|
||||
('contact', ugettext_noop('contact_menu')),
|
||||
])
|
||||
|
||||
BASE_URL = getattr(settings, 'DOCBOW_BASE_URL', 'http://localhost:8000')
|
||||
|
|
|
@ -13,6 +13,8 @@ from django.core.files.base import ContentFile
|
|||
from django.db import transaction
|
||||
from django.core.exceptions import MultipleObjectsReturned
|
||||
|
||||
from docbow_project.docbow.app_setting import BASE_URL
|
||||
|
||||
from ... import models, views, timestamp
|
||||
from ...email_utils import u2u_decode
|
||||
|
||||
|
@ -33,7 +35,7 @@ In case of failure the following return value is returned:
|
|||
|
||||
option_list = BaseCommand.option_list + (
|
||||
make_option("--sender"),
|
||||
make_option("--base-url", default="http://localhost:8000"),
|
||||
make_option("--base-url", default=BASE_URL),
|
||||
make_option("--ip", default=''),
|
||||
make_option("--file"))
|
||||
|
||||
|
|
Loading…
Reference in New Issue