Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
9ac93177
Commit
9ac93177
authored
4 years ago
by
jan.bednarik
Browse files
Options
Downloads
Patches
Plain Diff
majak: Readme update
parent
d9cc0e92
No related branches found
No related tags found
2 merge requests
!178
Release
,
!177
Upgrade
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+21
-1
21 additions, 1 deletion
README.md
with
21 additions
and
1 deletion
README.md
+
21
−
1
View file @
9ac93177
...
@@ -46,6 +46,27 @@ Rozšíření která používáme:
...
@@ -46,6 +46,27 @@ Rozšíření která používáme:
├── tuning = app na tuning administračního rozhraní Majáku
├── tuning = app na tuning administračního rozhraní Majáku
└── users = app s custom user modelem a SSO, apod.
└── users = app s custom user modelem a SSO, apod.
Poznámky k uspořádání:
*
nesdílíme a nemícháme modely zděděné z
`Page`
mezi jednotlivými appkami a weby,
abychom předešli rozbití cizího webu
*
části definice tříd stránek sdílíme jako mixin pattern (
`shared.models.ArticleMixin`
,
`share.models.SubpageMixin`
, apod.)
*
sdílet se mohou obyčejné Django modely z
`models.Model`
, ale umístěné v nějaké
appce/knihovně určené pro sdílení (
`shared`
,
`calendar_utils`
, apod.), nikoliv
mezi weby (mezi appkami na weby by nikdy neměly vzniknout závislosti)
### Konfigurace webu
Konfigurace konkrétního webu (odkazy do patičky, Matomo ID, apod.) se definuje v
kořenové
`xxxHomePage`
webu. Je to pro uživatele snažší na správu než
[
Site Settings
](
https://docs.wagtail.io/en/stable/reference/contrib/settings.html
)
Wagtailu pro konfigurace webů. A pro vývojáře je to skoro jedno.
Z různých podstránek webu se k té konfiguraci dostaneme přes property
`root_page`
kterou přidává
`shared.models.SubpageMixin`
. V
`xxxHomePage`
webu je třeba
definovat
`root_page`
tak, aby vedla na
`self`
.
### Styleguide
### Styleguide
Některé weby využívají
[
Pirátskou UI styleguide
](
https://gitlab.pirati.cz/to/weby/ui-styleguide
)
Některé weby využívají
[
Pirátskou UI styleguide
](
https://gitlab.pirati.cz/to/weby/ui-styleguide
)
...
@@ -129,7 +150,6 @@ Doména či subdoména se musí nakonfigurovat v:
...
@@ -129,7 +150,6 @@ Doména či subdoména se musí nakonfigurovat v:
*
environment proměnné
`DJANGO_ALLOWED_HOSTS`
*
environment proměnné
`DJANGO_ALLOWED_HOSTS`
*
proxy před Majákem
*
proxy před Majákem
*
SSO Client redirect URIs
## Vývoj
## Vývoj
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment