blob: affeaa735a2af1e6b9443d5832b56b6ad17d911d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{% extends "two_column_body.html" %}
{% block title %}{% trans %}Import StackExchange data{% endtrans %}{% endblock %}
{% block content %}
<h1>{% trans %}Import StackExchange data{% endtrans %}</h1>
{% if need_configuration %}
<p><em>Note:</em> to import stackexchange data, first add
<code>'askbot.importers.stackexchange',</code>
to the <code>INSTALLED_APPS</code> setting in your <code>settings.py</code>
file, then run <code>python manage.py syncdb</code>, and restart the application.
After that, pleale return to here and try again.
</p>
{% else %}
<p class="message">{% trans %}<em>Warning:</em> if your database is not empty, please back it up
before attempting this operation.{% endtrans %}
</p>
<p>{% trans %}Upload your stackexchange dump .zip file, then wait until
the data import completes. This process may take several minutes.
Please note that feedback will be printed in plain text.
{% endtrans %}
</p>
<form id="load-dump-form" method="post" enctype="multipart/form-data">{% csrf_token %}
<table>
{{dump_upload_form.as_table()}}
</table>
<input type="submit" value="{% trans %}Import data{% endtrans %}" />
</form>
<p>{% trans %}In the case you experience any difficulties in using this import tool,
please try importing your data via command line: <code>python manage.py load_stackexchange path/to/your-data.zip</code>{% endtrans %}
</p>
{% endif %}
{% endblock %}
|