Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django-cleavejs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
django-cleavejs
Commits
ea3c7766
Verified
Commit
ea3c7766
authored
4 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Correctly add cleave.js via yarnpkg
parent
e1f97c63
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
example/.gitignore
+1
-0
1 addition, 0 deletions
example/.gitignore
example/dj_cleavejs_example/forms.py
+8
-0
8 additions, 0 deletions
example/dj_cleavejs_example/forms.py
example/dj_cleavejs_example/settings.py
+5
-1
5 additions, 1 deletion
example/dj_cleavejs_example/settings.py
with
14 additions
and
1 deletion
example/.gitignore
0 → 100644
+
1
−
0
View file @
ea3c7766
static/
This diff is collapsed.
Click to expand it.
example/dj_cleavejs_example/forms.py
0 → 100644
+
8
−
0
View file @
ea3c7766
from
django.forms
import
Form
from
dj_cleavejs
import
CleaveWidget
class
TestForm
(
Form
):
windows_xp_serial
=
CleaveWidget
(
blocks
=
[
5
,
5
,
5
,
5
,
5
],
delimiter
=
"
-
"
)
windows_3_serial
=
CleaveWidget
(
blocks
=
[
3
,
7
],
delimiter
=
"
-
"
)
This diff is collapsed.
Click to expand it.
example/dj_cleavejs_example/settings.py
+
5
−
1
View file @
ea3c7766
...
...
@@ -42,7 +42,11 @@ TEMPLATES = [
WSGI_APPLICATION
=
"
dj_cleavejs_server.wsgi.application
"
STATIC_URL
=
"
/static/
"
STATIC_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
"
static
"
)
STATICFILES_FINDERS
=
[
"
django_yarnpkg.finders.NodeModulesFinder
"
,
]
NODE_MODULES_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
"
node_modules
"
)
CLEAVE_JS
=
os
.
path
.
join
(
NODE_MODULES_ROOT
,
"
@iconify
"
,
"
json
"
)
CLEAVE_JS
=
"
cleave.js/dist/cleave.min.js
"
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