Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
39ce3d1
Added favicon to assets
shorodilov Nov 24, 2022
69cede0
Updated dependencies
shorodilov Nov 24, 2022
f6f393f
Updated project dependencies list
shorodilov Jan 28, 2023
2907c50
Added problem sets
shorodilov Jan 28, 2023
f9abecb
Updated Sphinx configuration
shorodilov Jan 28, 2023
5081108
Added bibliography
shorodilov Jan 28, 2023
780c735
Introduction to Python (#28)
shorodilov Jan 29, 2023
1236535
Moved images to "assets"
shorodilov Jan 29, 2023
2771c8f
fix Django initial lectures
vladyslavPonomaryovInBev Jan 21, 2023
433ec09
Add details how to push HWs
vladyslavPonomaryovInBev Jan 26, 2023
e748688
Added 'make all' instruction (target)
shorodilov Jan 29, 2023
2c556fb
Added appx.: userful software list
shorodilov Feb 4, 2023
2421ebf
Added docker to software list appx
shorodilov Feb 18, 2023
d95c3a3
Minor change - updated appxs headings
shorodilov Mar 12, 2023
f30d64f
Added operator precedence appendix
shorodilov Mar 12, 2023
98d86d2
Added string formating appendix
shorodilov Mar 13, 2023
120e1aa
Added appendecies files to Sphinx builder config
shorodilov Mar 13, 2023
2b0b981
Completed variables document
shorodilov Mar 12, 2023
5360ef0
Added syntax document
shorodilov Mar 12, 2023
db3d149
Updated data types overview
shorodilov Mar 12, 2023
028224c
Updated strings: indexes, slices, immutable
shorodilov Mar 12, 2023
e160272
Added string operations
shorodilov Mar 12, 2023
2ea10d6
Rebased 'feature/basics' onto 'devel' branch
shorodilov Mar 13, 2023
fb1c218
Added general sequence types description and operations
shorodilov Mar 12, 2023
7d945ac
Updated numeric types with values comparison section
shorodilov Mar 12, 2023
fcb9b41
Updated sequences types with value comparison section
shorodilov Mar 12, 2023
3cc83ba
Updated sets types with values comparison section
shorodilov Mar 12, 2023
4e38fd5
Minor changes in subsection headings
shorodilov Mar 12, 2023
3ab42da
Updated mapping type with value comparison section
shorodilov Mar 12, 2023
57f4267
Update string type with value comparison section
shorodilov Mar 12, 2023
79ed5e8
Added list operations
shorodilov Mar 12, 2023
7e4591a
Added list constructor
shorodilov Mar 12, 2023
0578406
Added tuple constructor
shorodilov Mar 12, 2023
19c3515
Added string methods placeholder
shorodilov Mar 12, 2023
e2d8239
Added brief mapping type description
shorodilov Mar 13, 2023
9894683
Removed deprecated datatypes file
shorodilov Mar 17, 2023
f856c5a
Fixed "stdtypes" footnotes
shorodilov Mar 21, 2023
f1ceb5f
DB - Aggregate functions
shorodilov Mar 23, 2023
3d47126
DB - Group by and having
shorodilov Mar 23, 2023
1fc36bf
DB - Normalization
shorodilov Mar 23, 2023
fe41592
DB - Relationships
shorodilov Mar 23, 2023
eb9213c
DB - Joins
shorodilov Mar 23, 2023
b668174
Merge branch 'gh-pages' into feature/basics
shorodilov Mar 23, 2023
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "problem-sets"]
path = problem-sets
url = https://github.com/edu-python-course/problem-sets
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ SPHINX_BUILD = sphinx-build -q -D language=$(LANGUAGE)

# Makefile targets
all : clean
@make LANGUAGE=en html pdf
@make LANGUAGE=ua html pdf

clean :
@echo "Cleaning existing builds at $(_SPHINX_OUT_BASE)"
Expand Down
105 changes: 105 additions & 0 deletions PR_explanation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Как сдавать домашки

При помощи пулл-реквеста на GitHub.

## Что должно быть в репозитории??

- Код проекта
- Файл requirements.txt

### Что за файл requirements.txt? Зачем он нужен?

![](https://pbs.twimg.com/media/CvIhqpqWYAA92B9.jpg)

Файл `requirements.txt` необходим для контроля зависимостей.

Вы создавали виртуальное окружение именно для того, что бы несколько ваших проектов, не могли "мешать" друг другу.

Каждое отдельное окружение полностью не зависит от других. Но как другой разработчик должен присоединятся к вашему
проекту? Для этого и используется файл зависимостей.

Предварительно мы должны убедиться, что виртуальное окружение активировано, и что мы находимся на том же самом уровне
вложенности папок, где находится файл `manage.py`.

Что бы создать такой файл используется команда в командной строке:

```
pip freeze > requirements.txt
```

Примерное содержимое такого файла:

```
asgiref==3.6.0
Django==4.1.5
psycopg2==2.9.5
sqlparse==0.4.3
tzdata==2022.7
```

Это список всего, что установленно в вашем виртуальном окружении.

#### Как это может использовать другой разработчик?

После клона вашего проекта и создания своего виртуального окружения достаточно выполнить всего одну команду

```
pip install -r requirements.txt
```

И получить полную копию виртуального окружения, с вашими зависимостями.

## Чего не должно быть в репозитории??

Если коротко, то ничего лишнего.

- Папок `__pycache__` и любого его содержимого.
- Файлов настроек `IDE` например папки `.idea` или аналогов для других `IDE`
- Для маков, файлов `.DS_Store`
- Файла со стандартной базой данных, `db.sqlite3`

Все эти файлы и папки должны быть занесены в `.gitignore`

## Как создать проект и репозиторий корректно (Делается один раз когда нам необходимо создать новый проект)

Действия по пунктам:

1. Создать виртуальное окружение
2. Установить необходимые зависимости
3. Создать проект и приложение при помощи команд консоли
4. Создать файл requirements.txt
5. Создать репозиторий
6. Подключить репозиторий к проекту (git remote ...)
7. Создать и заполнить `.gitignore`
8. Убедиться, что мы работаем в ветке `master`
9. Закоммитить всё что у вас есть в свежем проекте.
10. Запушить пустой проект и пустое приложение в мастер.
11. Добавить меня в колабораторы проекта. Ник на гитхабе (PonomaryovVladyslav)

## Как делать домашку

1. Создать **из мастера** ветку, в названии которой будет информация о том, что это домашка и её номер. Например `hw_3`
2. Выполнить домашнюю работу :) Рекомендуется коммитить изменения после любого осмысленного блока. Добавили кнопку,
коммит. Создали рабочий урл, коммит, итд.
3. Выполнить **пуш** этой ветки на удалённый репозиторий.
4. Создать **пулл-реквест** из ветки с вашей **домашней работы** на **мастер**
5. Добавить меня в раздел `Reviewers`
6. Дождаться моего апрува или коментариев, что нужно изменить

6.1. Если получили коментарии о необходимости изменений, изменения добавляем на ветку **домашней работы** после чего
выполняем **пуш**, пулл реквест сам обновится, и я получу уведомление об этом автоматически.
7. После того как получили апрув, мержим изменения в мастер.

## Что делать если я уже внёс файлы __pycache__ или .idea на гит?

В этом случае вам надо удалить файлы из гита, но сохранить их на локальной версии.

Для этого необходимо выполнить команду:

```
git rm <file Relative path> --cached
```

Для каждого файла или папки.

После чего выполнить коммит и пуш снова.
Binary file added assets/favicon.ico
Binary file not shown.
78 changes: 78 additions & 0 deletions assets/img/aggregate-function.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions assets/img/celebrate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/cmd-python.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions assets/img/dropbox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading