glic3rinu / django-orchestra Goto Github PK
View Code? Open in Web Editor NEWDjango-based framework for building web hosting control panels
License: Other
Django-based framework for building web hosting control panels
License: Other
Installing using INSTALL.dev instructions I have several bugs in deploy.sh:
Traceback (most recent call last):
File "/home/orchestra/panel/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/base.py", line 390, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/base.py", line 441, in execute
output = self.handle(*args, **options)
File "/home/orchestra/django-orchestra/orchestra/utils/sys.py", line 20, in wrapped
return func(*args, **kwargs)
File "/home/orchestra/django-orchestra/orchestra/management/commands/setupnginx.py", line 142, in handle
raise CommandError("System user for running uwsgi must be provided.")
NameError: name 'CommandError' is not defined
I have modified the line as follows:
mkdir /etc/nginx/ssl
run "$PYTHON_BIN $MANAGE setupnginx --user=$USER"
Do you plan to manage the introduction of KVM QEMU?
For example https://github.com/retspen/webvirtmgr
HI, is this project still active? what's left to be done?
Hello!
how to restore password a user with administrative privileges?
Created a few webapps, but trying to delete webapps as admin and owner-user outputs:
AttributeError at /admin/webapps/webapp/
'WebApp' object has no attribute 'get_name'
Request Method: POST
Request URL: http://192.168.10.133:8888/admin/webapps/webapp/
Django Version: 1.7.1
Exception Type: AttributeError
Exception Value:
'WebApp' object has no attribute 'get_name'
Exception Location: /usr/local/lib/python2.7/dist-packages/orchestra/apps/webapps/backends/init.py in get_context, line 57
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/home/orchestra/panel',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/pymodules/python2.7']
Server time: Sun, 9 Nov 2014 06:37:41 +0000
TRACEBACK:
Environment:
Request Method: POST
Request URL: http://192.168.10.133:8888/admin/webapps/webapp/
Django Version: 1.7.1
Python Version: 2.7.3
Installed Applications:
('orchestra',
'orchestra.apps.accounts',
'orchestra.apps.contacts',
'orchestra.apps.orchestration',
'orchestra.apps.domains',
'orchestra.apps.systemusers',
'orchestra.apps.mailboxes',
'orchestra.apps.lists',
'orchestra.apps.webapps',
'orchestra.apps.websites',
'orchestra.apps.databases',
'orchestra.apps.vps',
'orchestra.apps.saas',
'orchestra.apps.issues',
'orchestra.apps.services',
'orchestra.apps.orders',
'orchestra.apps.miscellaneous',
'orchestra.apps.bills',
'orchestra.apps.payments',
'django_extensions',
'djcelery',
'djcelery_email',
'fluent_dashboard',
'admin_tools',
'admin_tools.theming',
'admin_tools.menu',
'admin_tools.dashboard',
'rest_framework',
'rest_framework.authtoken',
'passlib.ext.django',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin.apps.SimpleAdminConfig',
'orchestra.apps.resources',
'debug_toolbar',
'django_nose')
Installed Middleware:
('django.middleware.gzip.GZipMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'orchestra.core.caches.RequestCacheMiddleware',
'orchestra.apps.orchestration.middlewares.OperationsMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware')
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
return self.admin_site.admin_view(view)(_args, *_kwargs)
response = view_func(request, _args, *_kwargs)
response = view_func(request, _args, *_kwargs)
return view(request, _args, *_kwargs)
extra_context=context)
return bound_func(_args, *_kwargs)
response = view_func(request, _args, *_kwargs)
return func.**get**(self, type(self))(_args2, *_kwargs2)
response = self.response_action(request, queryset=cl.get_queryset(request))
response = func(self, request, queryset)
queryset.delete()
collector.delete()
sender=model, instance=obj, using=self.using
response = receiver(signal=self, sender=sender, **named)
OperationsMiddleware.collect(Operation.DELETE, **kwargs)
operation = Operation.create(backend, instance, action)
backend().get_context(op.instance)
context = super(PHPFcgidBackend, self).get_context(webapp)
'app_name': webapp.get_name(),
Exception Type: AttributeError at /admin/webapps/webapp/
Exception Value: 'WebApp' object has no attribute 'get_name'
Hello!
You use in some places things like
eval('settings.BILLING_%s_ID_PREFIX' % cls.__name__.upper())
But python have convenient function for this task:
getattr(settings, 'BILLING_%S_ID_PREFIX' % cls.__name__.upper())
Hello,
I can't install it, get this error and I can't continue.
Hola, estoy intentando instalar este desarrollo que estás programando que me parece buenísimo, pero no puedo avanzar de este paso: He probado con diferentes vm's.
orchestra@status:/panel$ python manage.py setuppostgres/panel$ python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(_args, *_options.dict)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 284, in execute
self.validate()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 310, in validate
num_errors = get_validation_errors(s, app)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", line 34, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 196, in get_app_errors
self._populate()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 78, in _populate
self.load_app(app_name)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 99, in load_app
models = import_module('%s.models' % app_name)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
import(name)
File "/usr/local/lib/python2.7/dist-packages/orchestra/apps/domains/models.py", line 5, in
from orchestra.apps.accounts.utils import default_account
ImportError: No module named utils
orchestra@status:
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(_args, *_options.dict)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 284, in execute
self.validate()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 310, in validate
num_errors = get_validation_errors(s, app)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", line 34, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 196, in get_app_errors
self._populate()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 78, in _populate
self.load_app(app_name)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 99, in load_app
models = import_module('%s.models' % app_name)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
import(name)
File "/usr/local/lib/python2.7/dist-packages/orchestra/apps/domains/models.py", line 5, in
from orchestra.apps.accounts.utils import default_account
ImportError: No module named utils
Thank you
sudo python3 manage.py setupcelery --username orchestra
Traceback (most recent call last):
File "manage.py", line 13, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 208, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 40, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/usr/local/lib/python3.4/dist-packages/orchestra/management/commands/setupcelery.py", line 12, in <module>
class Command(BaseCommand):
File "/usr/local/lib/python3.4/dist-packages/orchestra/management/commands/setupcelery.py", line 26, in Command
option_list = BaseCommand.option_list
AttributeError: type object 'BaseCommand' has no attribute 'option_list'
Hello!
It is planned further development of this panel?
Script deploy.sh fails to install some dependencies.
If I first install:
and pip lib:
Deploys ok
Could not figure out how to create websites (outputs errors all the time as described at #6) with SNI. Any input appreciated!
Hello,
wkhtmltopdf has moved the downloads provider from SourceForge to gna.org. As mentioned in the linked message, all earlier downloads have been removed from SourceForge and you are strongly advised to migrate to the new URLs. The following files in your repository will need to be updated:
It is recommended to either subscribe to the mailing list or Twitter feed to receive updates on new releases and further changes.
Thanks,
wkhtmltopdf maintainer
ttt
Created a new user (account) and tried to add a website to the with two apps (php5.5 with suphp with enc and webalizer). But, it outputs error that reads:
IntegrityError at /admin/websites/website/add/
duplicate key value violates unique constraint "websites_content_website_id_path_key"
DETAIL: Key (website_id, path)=(1, /) already exists.
Request Method: POST
Request URL: http://192.168.10.133:8888/admin/websites/website/add/?account=2
Django Version: 1.7.1
Exception Type: IntegrityError
Exception Value:
duplicate key value violates unique constraint "websites_content_website_id_path_key"
DETAIL: Key (website_id, path)=(1, /) already exists.
Exception Location: /usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py in execute, line 65
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/home/orchestra/panel',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/pymodules/python2.7']
Server time: Sun, 9 Nov 2014 06:15:17 +0000
TRACEBACK:
Environment:
Request Method: POST
Request URL: http://192.168.10.133:8888/admin/websites/website/add/?account=2
Django Version: 1.7.1
Python Version: 2.7.3
Installed Applications:
('orchestra',
'orchestra.apps.accounts',
'orchestra.apps.contacts',
'orchestra.apps.orchestration',
'orchestra.apps.domains',
'orchestra.apps.systemusers',
'orchestra.apps.mailboxes',
'orchestra.apps.lists',
'orchestra.apps.webapps',
'orchestra.apps.websites',
'orchestra.apps.databases',
'orchestra.apps.vps',
'orchestra.apps.saas',
'orchestra.apps.issues',
'orchestra.apps.services',
'orchestra.apps.orders',
'orchestra.apps.miscellaneous',
'orchestra.apps.bills',
'orchestra.apps.payments',
'django_extensions',
'djcelery',
'djcelery_email',
'fluent_dashboard',
'admin_tools',
'admin_tools.theming',
'admin_tools.menu',
'admin_tools.dashboard',
'rest_framework',
'rest_framework.authtoken',
'passlib.ext.django',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin.apps.SimpleAdminConfig',
'orchestra.apps.resources',
'debug_toolbar',
'django_nose')
Installed Middleware:
('django.middleware.gzip.GZipMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'orchestra.core.caches.RequestCacheMiddleware',
'orchestra.apps.orchestration.middlewares.OperationsMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware')
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
return self.admin_site.admin_view(view)(_args, *_kwargs)
response = view_func(request, _args, *_kwargs)
response = view_func(request, _args, *_kwargs)
return view(request, _args, *_kwargs)
form_url=form_url, extra_context=context)
return self.changeform_view(request, None, form_url, extra_context)
object_id=object_id, form_url=form_url, extra_context=context)
return bound_func(_args, *_kwargs)
response = view_func(request, _args, *_kwargs)
return func.**get**(self, type(self))(_args2, *_kwargs2)
return func(_args, *_kwargs)
self.save_related(request, form, formsets, not add)
self.save_formset(request, form, formset, change=change)
formset.save()
return self.save_existing_objects(commit) + self.save_new_objects(commit)
self.new_objects.append(self.save_new(form, commit=commit))
obj.save()
force_update=force_update, update_fields=update_fields)
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
using=using, raw=raw)
return getattr(self.get_queryset(), name)(_args, *_kwargs)
return query.get_compiler(using=using).execute_sql(return_id)
cursor.execute(sql, params)
return super(CursorDebugWrapper, self).execute(sql, params)
return self.cursor.execute(sql, params)
six.reraise(dj_exc_type, dj_exc_value, traceback)
return self.cursor.execute(sql, params)
Exception Type: IntegrityError at /admin/websites/website/add/
Exception Value: duplicate key value violates unique constraint "websites_content_website_id_path_key"
DETAIL: Key (website_id, path)=(1, /) already exists.
Hello!
How to install pip install uwsgi
To Debian 8?
When I click in domains tabs I get:
Traceback:
File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.4/dist-packages/django/contrib/admin/options.py" in wrapper
616. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/django/utils/decorators.py" in _wrapped_view
110. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/django/contrib/admin/sites.py" in inner
233. return view(request, *args, **kwargs)
File "/home/orchestra/django-orchestra/orchestra/contrib/accounts/admin.py" in changelist_view
287. extra_context=context)
File "/usr/local/lib/python3.4/dist-packages/django/utils/decorators.py" in _wrapper
34. return bound_func(*args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/django/utils/decorators.py" in _wrapped_view
110. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/django/utils/decorators.py" in bound_func
30. return func.__get__(self, type(self))(*args2, **kwargs2)
File "/usr/local/lib/python3.4/dist-packages/django/contrib/admin/options.py" in changelist_view
1655. selection_note=_('0 of %(cnt)s selected') % {'cnt': len(cl.result_list)},
File "/usr/local/lib/python3.4/dist-packages/django/db/models/query.py" in __len__
144. self._fetch_all()
File "/usr/local/lib/python3.4/dist-packages/django/db/models/query.py" in _fetch_all
965. self._result_cache = list(self.iterator())
File "/usr/local/lib/python3.4/dist-packages/django/db/models/query.py" in iterator
238. results = compiler.execute_sql()
File "/usr/local/lib/python3.4/dist-packages/django/db/models/sql/compiler.py" in execute_sql
837. cursor.execute(sql, params)
File "/usr/local/lib/python3.4/dist-packages/django/db/backends/utils.py" in execute
79. return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/local/lib/python3.4/dist-packages/django/db/backends/utils.py" in execute
64. return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.4/dist-packages/django/db/utils.py" in __exit__
97. six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python3.4/dist-packages/django/utils/six.py" in reraise
658. raise value.with_traceback(tb)
File "/usr/local/lib/python3.4/dist-packages/django/db/backends/utils.py" in execute
64. return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.4/dist-packages/django/db/backends/sqlite3/base.py" in execute
318. return Database.Cursor.execute(self, query, params)
Exception Type: OperationalError at /admin/domains/domain/
Exception Value: no such function: CONCAT
I cannot find where the bug is. Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.