The second issue was of similar scale - a choice between using replications of the MySQL database and using a dedicated MySQL server. The dedicated optione was chosen. So n...
- dodaj komentarz
-
oceń wpis
- linkuj
- dodaj do historyjki
The more focus on profit, the less good ideas - Social Hallucinations via ahajduk
jednym tchem
youtube.com/...u6XAPnuFjJc&feature=playe...
- dodaj komentarz
-
oceń wpis
- linkuj
- dodaj do historyjki
- mongoengine vs. django-mongokit http://tumblr.com/xknafs13h #mongodb #django

- dodaj komentarz
-
oceń wpis
- linkuj
- dodaj do historyjki
- Easiest way to run Django management commands from crontab http://tumblr.com/xknafl3h6

- dodaj komentarz
-
oceń wpis
- linkuj
- dodaj do historyjki
For example - Haystack search index update. Lets do it in one hour interval.
user@server:~$ crontab -l
PYTHONPATH=":/home/www/project/django/lib/python2.5/site-packages"
DJANGO_SETTINGS_MODULE=project.settings
# m h dom mon dow command
0 * * * * /home/www/project/manage.py update_index
So, all you need is to set PYTHONPATH and DJANGO_SETTINGS_MODULE according to your settings. And the trick is that it can be done in crontab.
Note that this was tested on Debian Linux.
- dodaj komentarz
-
oceń wpis
- linkuj
- dodaj do historyjki
Just open Activity Monitor (typically ⌘ + ␣), find Dock process and kill process using Quit Process option. Dock should be restared after a second and everything should back to normal.
- dodaj komentarz
-
oceń wpis
- linkuj
- dodaj do historyjki
{% if field.field.required %} <em>*</em>{% endif %}
E.g. form display template:
<form action="." method="post">
{% csrf_token %}
{% for hidden in form.hidden_fields %}
{{ hidden }}
{% endfor %}
<dl>
{% for field in form.visible_fields %}
{% if field.errors %}
<dt> </dt>
<dd>{{ field.errors }}</dd>
{% endif %}
<dt>
{{ field.label_tag }}
{% if field.field.required %} <em>*</em>{% endif %}:
</dt>
<dd>{{ field|safe }}</dd>
{% endfor %}
<dt> </dt>
<dd><input type="submit" value="Submit" /></dd>
</dl>
</form>
- dodaj komentarz
-
oceń wpis
- linkuj
- dodaj do historyjki
Ładuję...



