This commit provides some basic docs on how the repo works. These shoudl be moved to contibutor docs later once we have a devstack plugin and a working install procedure. For now they are stored in the README of discoverablity. This change also provide a minimal settings.py to be used in conjunction with a new ``tox -e runserver`` command. this will run a local development instance of horizon using in memory caching an signed cookies for session management. in the future we may evolve this to run without all of horizon or modify it based on how the plugin develops once we have a working devstack jobs. An example local.conf is also provided which deploys nova, neutron, placement, keystone, glance an horizon. addtionally promethus, ceilometer and sg-core are deployed to provide metrics. Change-Id: If9f38d88efccd29a63dd2aba4edd56f5f9fa1933
27 lines
711 B
Python
Executable File
27 lines
711 B
Python
Executable File
#!/usr/bin/env python3
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
"""Django's command-line utility for administrative tasks."""
|
|
|
|
import os
|
|
import sys
|
|
|
|
|
|
def main():
|
|
"""Run administrative tasks."""
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "grian_ui.dev_settings")
|
|
try:
|
|
from django.core.management import execute_from_command_line
|
|
except ImportError as exc:
|
|
raise ImportError(
|
|
"Couldn't import Django. Are you sure it's installed and "
|
|
"available on your PYTHONPATH environment variable? Did you "
|
|
"forget to activate a virtual environment?"
|
|
) from exc
|
|
execute_from_command_line(sys.argv)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|