Started port to Django 2.1, Python 3, Docker
This commit is a rough port to Django 2.1, Python 3 and a Docker based local development setup. Tests fail/error but migrations and the web frontend are already runnable. Task queue functionality is untested and translations seem to have trouble.
This commit is contained in:
parent
adc57657dd
commit
6cebd80c89
48 changed files with 1081 additions and 576 deletions
|
@ -5,7 +5,7 @@ This module defines form classes for website editing.
|
|||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from django import forms
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.urls import reverse
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
from crispy_forms.bootstrap import AppendedText
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('osusers', '0004_auto_20150104_1751'),
|
||||
('domains', '0002_auto_20150124_1909'),
|
||||
|
@ -15,11 +14,19 @@ class Migration(migrations.Migration):
|
|||
migrations.CreateModel(
|
||||
name='Website',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('subdomain', models.CharField(max_length=64, verbose_name='sub domain')),
|
||||
('wildcard', models.BooleanField(default=False, verbose_name='wildcard')),
|
||||
('domain', models.ForeignKey(verbose_name='domain', to='domains.HostingDomain')),
|
||||
('osuser', models.ForeignKey(verbose_name='operating system user', to='osusers.User')),
|
||||
('id', models.AutoField(
|
||||
verbose_name='ID', serialize=False, auto_created=True,
|
||||
primary_key=True)),
|
||||
('subdomain', models.CharField(
|
||||
max_length=64, verbose_name='sub domain')),
|
||||
('wildcard', models.BooleanField(
|
||||
default=False, verbose_name='wildcard')),
|
||||
('domain', models.ForeignKey(
|
||||
verbose_name='domain', to='domains.HostingDomain',
|
||||
on_delete=models.CASCADE)),
|
||||
('osuser', models.ForeignKey(
|
||||
verbose_name='operating system user', to='osusers.User',
|
||||
on_delete=models.CASCADE)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'website',
|
||||
|
@ -29,6 +36,6 @@ class Migration(migrations.Migration):
|
|||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='website',
|
||||
unique_together=set([('domain', 'subdomain')]),
|
||||
unique_together={('domain', 'subdomain')},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -34,9 +34,10 @@ class Website(models.Model):
|
|||
subdomain = models.CharField(
|
||||
_('sub domain'), max_length=64)
|
||||
osuser = models.ForeignKey(
|
||||
OsUser, verbose_name=_('operating system user'))
|
||||
OsUser, verbose_name=_('operating system user'),
|
||||
on_delete=models.CASCADE)
|
||||
domain = models.ForeignKey(
|
||||
HostingDomain, verbose_name=_('domain'))
|
||||
HostingDomain, models.CASCADE, verbose_name=_('domain'))
|
||||
wildcard = models.BooleanField(_('wildcard'), default=False)
|
||||
|
||||
class Meta:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue