add getting started page

master
Gesche 5年前
コミット 84fc9f9570

@ -39,6 +39,7 @@
<li><a href="{% url 'accounts:index' %}">Home</a></li>
{% if user.is_authenticated %}
<li><a href="{% url 'accounts:characters' %}">My characters</a></li>
<li><a href="{% url 'accounts:getting_started' %}">Getting started</a></li>
{% endif %}
</ul>
{% endblock %}

@ -0,0 +1,31 @@
{% extends "base_generic.html" %}
{% block content %}
<h2 class="tibia-headline">Getting Started</h2>
{% if user.is_authenticated %}
<p>
Beside this account you need a client to connect to the server.
Get the client source from here:
<a href="https://git.someserver.de/gesche/tibia-client">https://git.someserver.de/gesche/tibia-client</a>
</p>
<p>Follow the instructions there to compile, in general for linux systems with apt you need to install the requirements:</p>
sudo apt-get install -y build-essential cmake git-core <br>
sudo apt-get install -y libboost-all-dev libphysfs-dev libssl1.0-dev liblua5.1-0-dev <br>
sudo apt-get install -y libglew-dev libvorbis-dev libopenal-dev zlib1g-dev <br>
<br>
<p>And build with:</p>
git clone https://git.someserver.de/gesche/tibia-client.git <br>
cd otclient && mkdir build && cd build && cmake -DUSE_STATIC_LIBS=OFF .. && make <br>
./otclient <br>
<br>
<p>Finally, the client needs some files that contain the graphics and other static stuff for the server.
Ask Gesche how to obtain them.</p>
{% else %}
Please log in to view this information.
{% endif %}
{% endblock %}

@ -2,6 +2,7 @@ from django.urls import path
from . import views
from django.views.generic import TemplateView
app_name = 'accounts'
@ -10,4 +11,5 @@ urlpatterns = [
path('register/', views.RegisterAccountView.as_view(), name='register'),
path('characters/', views.PlayerView.as_view(), name='characters'),
path('create_character/', views.CreateCharView.as_view(), name='create_char'),
path('getting_started/', TemplateView.as_view(template_name='getting_started.html'), name='getting_started'),
]
読み込み中…
キャンセル
保存