mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Initial commit
This commit is contained in:
commit
4d48e79341
87 changed files with 5637 additions and 0 deletions
0
webvirtcloud/__init__.py
Normal file
0
webvirtcloud/__init__.py
Normal file
73
webvirtcloud/settings.py
Normal file
73
webvirtcloud/settings.py
Normal file
|
@ -0,0 +1,73 @@
|
|||
"""
|
||||
Django settings for webvirtcloud project.
|
||||
|
||||
For more information on this file, see
|
||||
https://docs.djangoproject.com/en/1.7/topics/settings/
|
||||
|
||||
For the full list of settings and their values, see
|
||||
https://docs.djangoproject.com/en/1.7/ref/settings/
|
||||
"""
|
||||
|
||||
import os
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||
|
||||
SECRET_KEY = '4y(f4rfqc6f2!i8_vfuu)kav6tdv5#sc=n%o451dm+th0&3uci'
|
||||
|
||||
DEBUG = True
|
||||
|
||||
TEMPLATE_DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
INSTALLED_APPS = (
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'computes',
|
||||
'instances',
|
||||
'accounts',
|
||||
)
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||
)
|
||||
|
||||
ROOT_URLCONF = 'webvirtcloud.urls'
|
||||
|
||||
WSGI_APPLICATION = 'webvirtcloud.wsgi.application'
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': os.path.join(BASE_DIR, 'webvirtcloud.sqlite3'),
|
||||
}
|
||||
}
|
||||
|
||||
LANGUAGE_CODE = 'en-us'
|
||||
|
||||
TIME_ZONE = 'UTC'
|
||||
|
||||
USE_I18N = True
|
||||
|
||||
USE_L10N = True
|
||||
|
||||
USE_TZ = True
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
STATICFILES_DIRS = (
|
||||
os.path.join(BASE_DIR, "static"),
|
||||
)
|
||||
|
||||
TEMPLATE_DIRS = (
|
||||
os.path.join(BASE_DIR, 'templates'),
|
||||
)
|
36
webvirtcloud/urls.py
Normal file
36
webvirtcloud/urls.py
Normal file
|
@ -0,0 +1,36 @@
|
|||
from django.conf.urls import patterns, include, url
|
||||
from django.contrib import admin
|
||||
|
||||
urlpatterns = patterns('',
|
||||
# url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name='login'),
|
||||
url(r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}, name='logout'),
|
||||
|
||||
url(r'^login/$', 'django.contrib.auth.views.login'),
|
||||
url(r'^logout/$', 'django.contrib.auth.views.logout'),
|
||||
|
||||
url(r'^$', 'instances.views.index', name='index'),
|
||||
url(r'^instances$', 'instances.views.instances', name='instances'),
|
||||
url(r'^instance/(\d+)/([\w\-\.]+)/$', 'instances.views.instance', name='instance'),
|
||||
|
||||
url(r'^computes/$', 'computes.views.computes', name='computes'),
|
||||
url(r'^compute/(\d+)/$', 'computes.views.compute', name='compute'),
|
||||
|
||||
# url(r'^storages/$', 'storages.views.storages', name='storages'),
|
||||
# url(r'^storage/(\d+)/([\w\-\.]+)/$', 'storages.views.storage', name='storage'),
|
||||
#
|
||||
# url(r'^networks/$', 'networks.views.networks', name='networks'),
|
||||
# url(r'^network/(\d+)/([\w\-\.]+)/$', 'networks.views.network', name='network'),
|
||||
#
|
||||
# url(r'^interfaces/$', 'interfaces.views.interfaces', name='interfaces'),
|
||||
# url(r'^interface/(\d+)/([\w\.]+)$', 'interfaces.views.interface', name='interface'),
|
||||
#
|
||||
# url(r'^secrets/$', 'secrets.views.secrets', name='secrets'),
|
||||
# url(r'^secret/(\d+)/([\w\.]+)$', 'secrets.views.secret', name='secret'),
|
||||
#
|
||||
# url(r'^accounts/$', 'accounts.views.accounts', name='accounts'),
|
||||
# url(r'^account/(\d+)/$', 'accounts.views.account', name='account'),
|
||||
#
|
||||
# url(r'^console/$', 'console.views.console', name='console'),
|
||||
# url(r'^create/(\d+)/$', 'create.views.create', name='create'),
|
||||
(r'^admin/', include(admin.site.urls)),
|
||||
)
|
14
webvirtcloud/wsgi.py
Normal file
14
webvirtcloud/wsgi.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
"""
|
||||
WSGI config for webvirtcloud project.
|
||||
|
||||
It exposes the WSGI callable as a module-level variable named ``application``.
|
||||
|
||||
For more information on this file, see
|
||||
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
|
||||
"""
|
||||
|
||||
import os
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings")
|
||||
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
application = get_wsgi_application()
|
Loading…
Add table
Add a link
Reference in a new issue