last-version

This commit is contained in:
Dhaverd 2023-01-30 12:09:32 +08:00
parent 93c92562a7
commit 9447c27c13
39 changed files with 32 additions and 16 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -25,7 +25,7 @@ SECRET_KEY = 'django-insecure-e5_t(3qi0zd$42t*akukbr5^*@#znl-x-xxej94!*!!9g%0nwj
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = [] ALLOWED_HOSTS = ['dhaverd.ru', '176.114.129.4', '127.0.0.1', 'localhost', '192.168.0.105', '0.0.0.0']
AUTH_USER_MODEL = 'main.User' AUTH_USER_MODEL = 'main.User'
LOGIN_REDIRECT_URL = '/' LOGIN_REDIRECT_URL = '/'
@ -81,19 +81,11 @@ WSGI_APPLICATION = 'djangosite.wsgi.application'
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'workout',
'USER': 'root',
'PASSWORD': 'root',
'HOST': 'localhost',
'PORT': 3307,
},
'workout': {
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'NAME': 'workout', 'NAME': 'workout',
'USER': 'dhaverd', 'USER': 'dhaverd',
'PASSWORD': 'Dha.Verd506763', 'PASSWORD': 'Dha.Verd506763',
'HOST': '192.168.0.105', 'HOST': 'localhost',
'PORT': 3306, 'PORT': 3306,
} }
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,3 +1,4 @@
/*
$("#form").on("submit", function(){ $("#form").on("submit", function(){
$.ajax({ $.ajax({
url: '/src/login.php', url: '/src/login.php',
@ -8,7 +9,7 @@ $("#form").on("submit", function(){
$('#message').html(data); $('#message').html(data);
} }
}); });
}); });*/
$('body').on('click', '#password-checkbox', function(){ $('body').on('click', '#password-checkbox', function(){
if ($(this).is(':checked')){ if ($(this).is(':checked')){

View File

@ -7,6 +7,7 @@ $(document).ready(function() {
getData(); getData();
} }
}); });
TodayIsTheDay();
}); });
// TODO Доделать! // TODO Доделать!

View File

@ -503,4 +503,9 @@ h2 {
.forgot-pass-link a { .forgot-pass-link a {
font-family: segoe print; font-family: segoe print;
font-size: 16px; font-size: 16px;
}
.ollie {
font-size: 20px;
margin-left: 3em;
} }

View File

@ -484,4 +484,9 @@ h2 {
.forgot-pass-link a { .forgot-pass-link a {
font-family: segoe print; font-family: segoe print;
font-size: 14px; font-size: 14px;
}
.ollie {
font-size: 12px;
margin-left: 3em;
} }

View File

@ -2,8 +2,19 @@
{% block maincontent %} {% block maincontent %}
<section class="main-content index-main-content" id="main-content"> <section class="main-content index-main-content" id="main-content">
<h1 class="page-title">Приветствую!</h1> <h1 class="page-title">Приветствуем!</h1>
<p class="content-text">Данный сайт разработан для личного использования. Здесь можно найти репозиторий Git. Также тут можно найти мои сервера Minecraft, Project Zomboid и иногда других игр. Еще у нас есть свой мессенджер MyChat</p> <!--<p class="content-text">Данный сайт разработан для личного использования. Здесь можно найти репозиторий Git. Также тут можно найти мои сервера Minecraft, Project Zomboid и иногда других игр. Еще у нас есть свой мессенджер MyChat</p>-->
<p class="content-text">Данный сайт разработан для : </p>
<p class="content-text">1. Доступа к репозиторию Git</p>
<p class="content-text">2. Для просмотра и редактирования программ тренировок</p>
<p class="content-text">3 .Также тут можно найти наши сервера для игр, таких как:
<ul class='ollie'>
<li>Minecraft</li>
<li>Project Zomboid</li>
<li>Иногда других игр</li>
</ul>
</p>
<p class="content-text">4. Ещё у нас есть свой мессенджер MyChat</p>
</section> </section>
{% endblock %} {% endblock %}
{% block titletext %}Dhaverd{% endblock %} {% block titletext %}Dhaverd{% endblock %}

View File

@ -6,7 +6,7 @@
<h1 class="page-title">У нас имеются следующие сервера:</h1> <h1 class="page-title">У нас имеются следующие сервера:</h1>
<section class="server-temp"> <section class="server-temp">
<h2 class="server-name">Minecraft 1.16.1 Vanilla</h2> <h2 class="server-name">Minecraft 1.16.1 Vanilla</h2>
<h3 class="server-ips">IP: 176.114.129.4:25565</h3> <h3 class="server-ips">IP: 176.114.129.4:25566</h3>
<img class="minecraft-vanilla" src="{% static 'main/src/img/minecraft_vanilla.jpg' %}"> <img class="minecraft-vanilla" src="{% static 'main/src/img/minecraft_vanilla.jpg' %}">
<!--<section class="image-content"> <!--<section class="image-content">
</section>--> </section>-->

View File

@ -13,7 +13,7 @@
{% for row in tw1 %} {% for row in tw1 %}
{% if forloop.first %} {% if forloop.first %}
<tr> <tr>
<td class="table-head-top" colspan="5"> <td class="table-head-top" colspan="4">
<b>{{ row.week }}</b> <b>{{ row.week }}</b>
</td> </td>
</tr> </tr>
@ -35,7 +35,7 @@
{% if prevdate == row.date %} {% if prevdate == row.date %}
{% else %} {% else %}
<tr> <tr>
<td class="table-head" colspan="5"> <td class="table-head" colspan="4">
<b class="day-name">[{{row.date}}] {{row.day_name}}</b> <b class="day-name">[{{row.date}}] {{row.day_name}}</b>
</td> </td>
</tr> </tr>

Binary file not shown.

Binary file not shown.

1
run.cmd Normal file
View File

@ -0,0 +1 @@
python manage.py runserver 0.0.0.0:80