1 | Operations to perform:
|
---|
2 | Synchronize unmigrated apps: app_sec, admin, contenttypes, auth, sessions
|
---|
3 | Apply all migrations: app_main
|
---|
4 | Synchronizing apps without migrations:
|
---|
5 | Creating tables...
|
---|
6 | Installing custom SQL...
|
---|
7 | Installing indexes...
|
---|
8 | Running migrations:
|
---|
9 | Applying app_main.0001_initial...Traceback (most recent call last):
|
---|
10 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/apps/config.py", line 152, in get_model
|
---|
11 | return self.models[model_name.lower()]
|
---|
12 | KeyError: 'classpg'
|
---|
13 |
|
---|
14 | During handling of the above exception, another exception occurred:
|
---|
15 |
|
---|
16 | Traceback (most recent call last):
|
---|
17 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/db/migrations/state.py", line 76, in render
|
---|
18 | model = self.apps.get_model(lookup_model[0], lookup_model[1])
|
---|
19 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/apps/registry.py", line 190, in get_model
|
---|
20 | return self.get_app_config(app_label).get_model(model_name.lower())
|
---|
21 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/apps/config.py", line 155, in get_model
|
---|
22 | "App '%s' doesn't have a '%s' model." % (self.label, model_name))
|
---|
23 | LookupError: App 'app_main' doesn't have a 'classpg' model.
|
---|
24 |
|
---|
25 | During handling of the above exception, another exception occurred:
|
---|
26 |
|
---|
27 | Traceback (most recent call last):
|
---|
28 | File "./manage.py", line 10, in <module>
|
---|
29 | execute_from_command_line(sys.argv)
|
---|
30 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/core/management/__init__.py", line 427, in execute_from_command_line
|
---|
31 | utility.execute()
|
---|
32 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/core/management/__init__.py", line 419, in execute
|
---|
33 | self.fetch_command(subcommand).run_from_argv(self.argv)
|
---|
34 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/core/management/base.py", line 288, in run_from_argv
|
---|
35 | self.execute(*args, **options.__dict__)
|
---|
36 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/core/management/base.py", line 337, in execute
|
---|
37 | output = self.handle(*args, **options)
|
---|
38 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/core/management/commands/migrate.py", line 146, in handle
|
---|
39 | executor.migrate(targets, plan, fake=options.get("fake", False))
|
---|
40 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/db/migrations/executor.py", line 62, in migrate
|
---|
41 | self.apply_migration(migration, fake=fake)
|
---|
42 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/db/migrations/executor.py", line 96, in apply_migration
|
---|
43 | migration.apply(project_state, schema_editor)
|
---|
44 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/db/migrations/migration.py", line 107, in apply
|
---|
45 | operation.database_forwards(self.app_label, schema_editor, project_state, new_state)
|
---|
46 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/db/migrations/operations/models.py", line 27, in database_forwards
|
---|
47 | apps = to_state.render()
|
---|
48 | File "/var/local/venvs/cms-1.7-3.4/lib/python3.4/site-packages/django/db/migrations/state.py", line 86, in render
|
---|
49 | model=lookup_model,
|
---|
50 | ValueError: Lookup failed for model referenced by field app_sec.ClassA.page: app_main.ClassPg
|
---|