Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
wikicolor
Commits
50eafb5a
Commit
50eafb5a
authored
May 13, 2020
by
Sylvain Coulange
🌼
Browse files
redir app/
parent
e525d9b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
colorapp/views.py
View file @
50eafb5a
...
...
@@ -11,7 +11,7 @@ nlp = spacy.load('fr')
logFile
=
"../logs/dico_frwiktionary-20200301_v2.log"
def
redirApp
(
request
):
return
HttpResponseRedirect
(
'/
app/
'
)
return
HttpResponseRedirect
(
'/'
)
def
main
(
request
):
if
request
.
POST
.
get
(
'inText'
):
...
...
coloriseur/urls.py
View file @
50eafb5a
...
...
@@ -19,8 +19,8 @@ from colorapp.views import main, dicoView, editEntry, redirApp, main0, dicoReq,
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
''
,
redirApp
),
path
(
'
app/
'
,
main
),
path
(
'
app/
'
,
redirApp
),
path
(
''
,
main
),
path
(
'app/0'
,
main0
),
path
(
'app/dico/'
,
dicoView
),
path
(
'dicoSearch/'
,
dicoReq
),
...
...
templates/coloriseur.html
View file @
50eafb5a
...
...
@@ -21,7 +21,7 @@
</h2>
<div
class=
"inputDiv"
>
<form
action=
"/
app/
"
method=
"post"
>
{% csrf_token %}
<form
action=
"/"
method=
"post"
>
{% csrf_token %}
<div
class=
"param"
>
<input
id=
"swcolor"
type=
"radio"
name=
"colorType"
value=
"sw"
{%
if
data.colorType =
=
"
sw
"
%}
checked
{%
endif
%}
>
<label
for=
"swcolor"
>
Silent Way
</label><br/>
<input
id=
"bicolor"
type=
"radio"
name=
"colorType"
value=
"bi"
{%
if
data.colorType =
=
"
bi
"
%}
checked
{%
endif
%}
>
<label
for=
"bicolor"
>
Bicolore
</label>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment