-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
major fixes, flake8 formatiing for entire app, boards comaptibility a…
…dded onto pages
- Loading branch information
Showing
40 changed files
with
696 additions
and
159 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Init file for module.""" |
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.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
"""Basic django file.""" | ||
from django.apps import AppConfig | ||
|
||
|
||
class DotAppConfig(AppConfig): | ||
default_auto_field = "django.db.models.BigAutoField" | ||
name = "dot_app" | ||
"""Configuration class for dot application. | ||
Args: | ||
AppConfig (_type_): django base inheritance | ||
""" | ||
|
||
default_auto_field = 'django.db.models.BigAutoField' | ||
name = 'dot_app' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,35 @@ | ||
from django.forms import Form, ChoiceField, CharField, DecimalField | ||
"""File for different forms in admin panel.""" | ||
from django.contrib.auth.forms import UserCreationForm | ||
from django.contrib.auth.models import User | ||
from django.forms import CharField, ChoiceField, DecimalField, Form | ||
|
||
choices = ( | ||
('brd', 'board'), | ||
('per', 'peripheral'), | ||
) | ||
|
||
|
||
class TestForm(Form): | ||
"""Form for tests creation. | ||
Args: | ||
Form (_type_): django base inheritance | ||
""" | ||
|
||
choice = ChoiceField(choices=choices) | ||
text = CharField(max_length=100) | ||
number = DecimalField(decimal_places=2, max_digits=10) | ||
|
||
|
||
class Registration(UserCreationForm): | ||
"""Form for registration for user. | ||
Args: | ||
UserCreationForm (_type_): django base inheritance. | ||
""" | ||
|
||
class Meta: | ||
"""Settings subclass.""" | ||
|
||
model = User | ||
fields = ['username', 'first_name', 'last_name', 'email', 'password1', 'password2'] | ||
fields = ['username', 'first_name', 'last_name', 'email', 'password1', 'password2'] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-06-16 00:23+0300\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" | ||
"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" | ||
"%100>=11 && n%100<=14)? 2 : 3);\n" | ||
|
||
#: .\admin.py:20 | ||
msgid "recency" | ||
msgstr "Давность" | ||
|
||
#: .\admin.py:37 | ||
msgid "Released in last 5 years" | ||
msgstr "Выпущено в последние 5 лет" | ||
|
||
#: .\admin.py:38 | ||
msgid "Created in the last 10 years" | ||
msgstr "Выпущено в последние 10 лет" | ||
|
||
#: .\admin.py:39 | ||
msgid "Created in the last 15 years" | ||
msgstr "Выпущено в последние 15 лет" | ||
|
||
#: .\models.py:131 | ||
msgid "USB with UART support" | ||
msgstr "USB с протоколом UART" | ||
|
||
#: .\models.py:132 | ||
msgid "USB with COM support" | ||
msgstr "USB с протоколом COM" | ||
|
||
#: .\models.py:133 | ||
msgid "plain USB" | ||
msgstr "обычный USB" | ||
|
||
#: .\models.py:134 | ||
msgid "USB-C to USB-A connection" | ||
msgstr "USB-C на USB-A" | ||
|
||
#: .\models.py:135 | ||
msgid "Micro USB to USB-A connection" | ||
msgstr "Микро USB на USB-A" | ||
|
||
#: .\models.py:274 | ||
msgid "relationship board client" | ||
msgstr "Связь плата клиент" | ||
|
||
#: .\models.py:275 | ||
msgid "relationships boards client" | ||
msgstr "Связи платы клиенты" | ||
|
||
#: .\..\templates\board.html: 44 | ||
msgid "Compatible to this board: " | ||
msgstr "Совместимы с этой платой: " | ||
|
||
#: .\..\templates\board.html: 21 | ||
msgid "Board: " | ||
msgstr "Плата: " | ||
|
||
#: .\..\templates\board.html: 28 | ||
msgid "Description: " | ||
msgstr "Описание: " | ||
|
||
#: .\..\templates\board.html: 29 | ||
msgid "Release year: " | ||
msgstr "Год выпуска: " | ||
|
||
#: .\..\templates\board.html: 32 | ||
msgid "You already bookmarked this one!" | ||
msgstr "Уже в закладках!" | ||
|
||
#: .\..\templates\board.html: 34 | ||
msgid "You have not liked this one yet!" | ||
msgstr "Еще не в закладках!" | ||
|
||
#: .\..\templates\board.html: 35 | ||
msgid "You can add it to" | ||
msgstr "Можно добавть в" | ||
|
||
#: .\..\templates\board.html: 35 | ||
msgid "bookmarks" | ||
msgstr "закладки" | ||
|
||
#: .\..\templates\board.html: 49 | ||
msgid "Connects via: " | ||
msgstr "Подключение через: " | ||
|
||
#: .\..\templates\board.html: 55 | ||
msgid "Board not found..." | ||
msgstr "Плата не найдена..." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 4.2.13 on 2024-06-14 18:16 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("dot_app", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="manufacturer", | ||
name="description", | ||
field=models.TextField(default="Nothing to look for here", null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 4.2.13 on 2024-06-15 09:09 | ||
|
||
from django.db import migrations, models | ||
import django_minio_backend.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("dot_app", "0002_manufacturer_description"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="board", | ||
name="image", | ||
field=models.ImageField( | ||
blank=True, | ||
null=True, | ||
storage=django_minio_backend.models.MinioBackend(bucket_name="static"), | ||
upload_to=django_minio_backend.models.iso_date_prefix, | ||
), | ||
), | ||
] |
Binary file added
BIN
+853 Bytes
dot_app/migrations/__pycache__/0002_manufacturer_description.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+1.06 KB
dot_app/migrations/__pycache__/0003_alter_board_image.cpython-311.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.