From 84fc9f957019f41581f5735414c97d2654302316 Mon Sep 17 00:00:00 2001 From: Gesche Gierse Date: Sun, 10 Feb 2019 14:17:02 +0100 Subject: [PATCH] add getting started page --- accounts/templates/base_generic.html | 1 + accounts/templates/getting_started.html | 31 +++++++++++++++++++++++++ accounts/urls.py | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 accounts/templates/getting_started.html diff --git a/accounts/templates/base_generic.html b/accounts/templates/base_generic.html index 3a99ede..4ab12ec 100644 --- a/accounts/templates/base_generic.html +++ b/accounts/templates/base_generic.html @@ -39,6 +39,7 @@
  • Home
  • {% if user.is_authenticated %}
  • My characters
  • +
  • Getting started
  • {% endif %} {% endblock %} diff --git a/accounts/templates/getting_started.html b/accounts/templates/getting_started.html new file mode 100644 index 0000000..8a7e4ba --- /dev/null +++ b/accounts/templates/getting_started.html @@ -0,0 +1,31 @@ +{% extends "base_generic.html" %} + +{% block content %} +

    Getting Started

    + +{% if user.is_authenticated %} +

    + Beside this account you need a client to connect to the server. + Get the client source from here: + https://git.someserver.de/gesche/tibia-client +

    +

    Follow the instructions there to compile, in general for linux systems with apt you need to install the requirements:

    + + sudo apt-get install -y build-essential cmake git-core
    + sudo apt-get install -y libboost-all-dev libphysfs-dev libssl1.0-dev liblua5.1-0-dev
    + sudo apt-get install -y libglew-dev libvorbis-dev libopenal-dev zlib1g-dev
    +
    +

    And build with:

    + + git clone https://git.someserver.de/gesche/tibia-client.git
    + cd otclient && mkdir build && cd build && cmake -DUSE_STATIC_LIBS=OFF .. && make
    + ./otclient
    + +
    +

    Finally, the client needs some files that contain the graphics and other static stuff for the server. + Ask Gesche how to obtain them.

    +{% else %} + Please log in to view this information. +{% endif %} + +{% endblock %} \ No newline at end of file diff --git a/accounts/urls.py b/accounts/urls.py index 12fd84c..3bc8ec3 100644 --- a/accounts/urls.py +++ b/accounts/urls.py @@ -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'), ] \ No newline at end of file