Commit e54d450e authored by Seb's avatar Seb
Browse files

add manage.py and update settings for django3.2

parent b6857634
#!/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)
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'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment