Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MO-P
Odevzdávací Systém MO
Commits
1ebd6eb3
Commit
1ebd6eb3
authored
Jan 5, 2021
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Účastnické části webu budou bydlet v mo.user (včetně titulní stránky)
parent
aa2dd0d7
No related branches found
No related tags found
1 merge request
!9
WIP: Zárodek uživatelské části webu a submitování
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
mo/web/__init__.py
+1
-0
1 addition, 0 deletions
mo/web/__init__.py
mo/web/misc.py
+2
-16
2 additions, 16 deletions
mo/web/misc.py
mo/web/user.py
+18
-0
18 additions, 0 deletions
mo/web/user.py
with
21 additions
and
16 deletions
mo/web/__init__.py
+
1
−
0
View file @
1ebd6eb3
...
@@ -91,3 +91,4 @@ import mo.web.org
...
@@ -91,3 +91,4 @@ import mo.web.org
import
mo.web.org_contest
import
mo.web.org_contest
import
mo.web.org_place
import
mo.web.org_place
import
mo.web.org_users
import
mo.web.org_users
import
mo.web.user
This diff is collapsed.
Click to expand it.
mo/web/misc.py
+
2
−
16
View file @
1ebd6eb3
from
flask
import
render_template
,
request
,
g
,
redirect
,
url_for
from
flask
import
render_template
from
flask_wtf
import
FlaskForm
import
werkzeug.exceptions
import
wtforms
import
wtforms.validators
as
validators
from
sqlalchemy.orm
import
joinedload
from
typing
import
Optional
import
mo.util
from
mo.web
import
app
import
mo.db
as
db
import
mo.rights
import
mo.users
@app.route
(
'
/
'
)
def
index
():
return
render_template
(
'
main.html
'
)
@app.route
(
'
/doc/garant
'
)
@app.route
(
'
/doc/garant
'
)
...
...
...
...
This diff is collapsed.
Click to expand it.
mo/web/user.py
0 → 100644
+
18
−
0
View file @
1ebd6eb3
from
flask
import
render_template
,
request
,
g
,
redirect
,
url_for
from
flask_wtf
import
FlaskForm
import
werkzeug.exceptions
import
wtforms
import
wtforms.validators
as
validators
from
sqlalchemy.orm
import
joinedload
from
typing
import
Optional
import
mo.util
import
mo.db
as
db
import
mo.rights
import
mo.users
from
mo.web
import
app
,
NeedLoginError
@app.route
(
'
/
'
)
def
index
():
return
render_template
(
'
main.html
'
)
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
sign in
to comment