scram.contrib.sites.migrations package

Submodules

scram.contrib.sites.migrations.0001_initial module

class scram.contrib.sites.migrations.0001_initial.Migration(name, app_label)

Bases: Migration

dependencies = []
operations = [<CreateModel  name='Site', fields=[('id', <django.db.models.fields.AutoField>), ('domain', <django.db.models.fields.CharField>), ('name', <django.db.models.fields.CharField>)], options={'ordering': ('domain',), 'db_table': 'django_site', 'verbose_name': 'site', 'verbose_name_plural': 'sites'}, bases=(<class 'django.db.models.base.Model'>,), managers=[('objects', <django.contrib.sites.models.SiteManager object>)]>]

scram.contrib.sites.migrations.0002_alter_domain_unique module

class scram.contrib.sites.migrations.0002_alter_domain_unique.Migration(name, app_label)

Bases: Migration

dependencies = [('sites', '0001_initial')]
operations = [<AlterField  model_name='site', name='domain', field=<django.db.models.fields.CharField>>]

scram.contrib.sites.migrations.0003_set_site_domain_and_name module

To understand why this file is here, please read:

http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django

class scram.contrib.sites.migrations.0003_set_site_domain_and_name.Migration(name, app_label)

Bases: Migration

dependencies = [('sites', '0002_alter_domain_unique')]
operations = [<RunPython <function update_site_forward>, <function update_site_backward>>]
scram.contrib.sites.migrations.0003_set_site_domain_and_name.update_site_backward(apps, schema_editor)

Revert site domain and name to default.

scram.contrib.sites.migrations.0003_set_site_domain_and_name.update_site_forward(apps, schema_editor)

Set site domain and name.

scram.contrib.sites.migrations.0004_alter_options_ordering_domain module

class scram.contrib.sites.migrations.0004_alter_options_ordering_domain.Migration(name, app_label)

Bases: Migration

dependencies = [('sites', '0003_set_site_domain_and_name')]
operations = [<AlterModelOptions  name='site', options={'ordering': ['domain'], 'verbose_name': 'site', 'verbose_name_plural': 'sites'}>]

Module contents

To understand why this file is here, please read:

http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django