Added tasks app
This commit is contained in:
parent
df72a2f66d
commit
096ec56b7c
2
TODO.md
2
TODO.md
|
@ -378,3 +378,5 @@ Collecting lxml==3.3.5 (from -r re (line 22))
|
|||
counter.apply_async(10, '/tmp/kakas')
|
||||
|
||||
# standard django deployment pracices (run checks)
|
||||
# setup main systemuser on post_migrate SystemUser
|
||||
# Provide some fixtures with mocked data
|
||||
|
|
|
@ -126,15 +126,14 @@ DATABASES = {
|
|||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
||||
'USER': 'orchestra', # Not used with sqlite3.
|
||||
'PASSWORD': 'orchestra', # Not used with sqlite3.
|
||||
'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3.
|
||||
'USER': '', # Not used with sqlite3.
|
||||
'PASSWORD': '', # Not used with sqlite3.
|
||||
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
|
||||
'PORT': '', # Set to empty string for default. Not used with sqlite3.
|
||||
'CONN_MAX_AGE': 60*10 # Enable persistent connections
|
||||
}
|
||||
}
|
||||
|
||||
# Enable persistent connections
|
||||
CONN_MAX_AGE = 60*10
|
||||
|
||||
# Internationalization
|
||||
# https://docs.djangoproject.com/en/{{ docs_version }}/topics/i18n/
|
||||
|
|
|
@ -57,6 +57,7 @@ def apply_async(fn, name=None, method='thread'):
|
|||
# Celery API compat
|
||||
thread.request = AttrDict(id=task_id)
|
||||
return thread
|
||||
|
||||
if name is None:
|
||||
name = get_name(fn)
|
||||
if method == 'thread':
|
||||
|
@ -64,7 +65,7 @@ def apply_async(fn, name=None, method='thread'):
|
|||
elif method == 'process':
|
||||
method = Process
|
||||
else:
|
||||
raise NotImplementedError("Support for %s concurrency method is not supported." % method)
|
||||
raise NotImplementedError("%s concurrency method is not supported." % method)
|
||||
fn.apply_async = partial(inner, close_connection(keep_state(fn)), name, method)
|
||||
fn.delay = fn.apply_async
|
||||
return fn
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
{% endif %}
|
||||
<ul id="navigation-menu">
|
||||
<div style="max-width: 1170px; margin:auto;">
|
||||
<div id="branding"><a href="/admin/"></a><h1 id="site-name"><a href="/admin/">{{ ORCHESTRA_SITE_VERBOSE_NAME }}<span class="version">0.0.1a1</span></a></h1></div>
|
||||
<div id="branding"><a href="/admin/"></a><h1 id="site-name"><a href="/admin/">{{ SITE_VERBOSE_NAME }}<span class="version">0.0.1a1</span></a></h1></div>
|
||||
{% for item in menu.children %}{% admin_tools_render_menu_item item forloop.counter %}{% endfor %}
|
||||
<span style="float:right;color:grey;padding:10px;font-size:11px;">{% trans 'Welcome' %},
|
||||
{% url 'admin:accounts_account_change' user.pk as user_change_url %}
|
||||
|
|
Loading…
Reference in New Issue