Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Wagtail Videos
Commits
e54d450e
Commit
e54d450e
authored
Jul 09, 2021
by
Seb
Browse files
add manage.py and update settings for django3.2
parent
b6857634
Changes
2
Hide whitespace changes
Inline
Side-by-side
manage.py
0 → 100755
View file @
e54d450e
#!/usr/bin/env python
import
os
import
sys
if
__name__
==
"__main__"
:
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"settings"
)
from
django.core.management
import
execute_from_command_line
args
=
sys
.
argv
[:]
if
len
(
args
)
==
2
and
sys
.
argv
[
1
]
==
'runserver'
:
# Default to serving externally if not told otherwise
args
=
sys
.
argv
+
[
'0.0.0.0:8080'
]
execute_from_command_line
(
args
)
settings.py
View file @
e54d450e
from
tests.app.settings
import
*
# noqa: F401,F403
from
tests.app.settings
import
*
# noqa: F401,F403
ALLOWED_HOSTS
=
[
'*'
]
DATABASES
=
{
DATABASES
=
{
'default'
:
{
'default'
:
{
'ENGINE'
:
'django.db.backends.sqlite3'
,
'ENGINE'
:
'django.db.backends.sqlite3'
,
...
@@ -13,3 +16,5 @@ INSTALLED_APPS += [
...
@@ -13,3 +16,5 @@ INSTALLED_APPS += [
WAGTAILVIDEOS_VIDEO_MODEL
=
'app.CustomVideoModel'
WAGTAILVIDEOS_VIDEO_MODEL
=
'app.CustomVideoModel'
WAGTAIL_USAGE_COUNT_ENABLED
=
True
WAGTAIL_USAGE_COUNT_ENABLED
=
True
DEFAULT_AUTO_FIELD
=
'django.db.models.AutoField'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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