Size: a a a

2020 February 24

М

Максим in Python KZ
usage: manage.py migrate [-h] [--version] [-v {0,1,2,3}] [--settings SETTINGS]
                        [--pythonpath PYTHONPATH] [--traceback] [--no-color]
                        [--noinput] [--database DATABASE] [--fake]
                        [--fake-initial] [--run-syncdb]
                        [app_label] [migration_name]
manage.py migrate: error: unrecognized arguments: core common
источник

BQ

Bumin Qaghan in Python KZ
Пиши тогда по одному)
источник

BQ

Bumin Qaghan in Python KZ
./manage.py migrate manholes
источник

BQ

Bumin Qaghan in Python KZ
И тд
источник

М

Максим in Python KZ
CommandError: App 'manholes' does not have migrations.
источник

М

Максим in Python KZ
ls
common  core  dicts  manage.py  manholes  smart_manhole  static
источник

BQ

Bumin Qaghan in Python KZ
Максим
ls
common  core  dicts  manage.py  manholes  smart_manhole  static
ls manholes
Сделай
источник

BQ

Bumin Qaghan in Python KZ
Нету миграций у тебя
источник

М

Максим in Python KZ
~/manholeenv/manhole/manholes$ ls
init.pyinit.py  admin.py  filters.py  serializers.py  tasks.py  urls.py
pycache  apps.py   models.py   signals.py      tests.py  views.py
источник

MM

Meir M in Python KZ
А где миграции?
источник

BQ

Bumin Qaghan in Python KZ
Максим
~/manholeenv/manhole/manholes$ ls
init.pyinit.py  admin.py  filters.py  serializers.py  tasks.py  urls.py
pycache  apps.py   models.py   signals.py      tests.py  views.py
Пиздец) тебе передали код без миграций
источник

BQ

Bumin Qaghan in Python KZ
Сделай
python manage.py makemigrations manholes dicts core common
источник

М

Максим in Python KZ
Migrations for 'dicts':
 dicts/migrations/0001_initial.py
   - Create model ManholeEventType
Migrations for 'manholes':
 manholes/migrations/0001_initial.py
   - Create model Manhole
   - Create model ManholeEvent
   - Create model ManholeService
Migrations for 'core':
 core/migrations/0001_initial.py
   - Create model UserNotification
   - Create model UserProfile
   - Add field profile to usernotification
источник

BQ

Bumin Qaghan in Python KZ
Максим
Migrations for 'dicts':
 dicts/migrations/0001_initial.py
   - Create model ManholeEventType
Migrations for 'manholes':
 manholes/migrations/0001_initial.py
   - Create model Manhole
   - Create model ManholeEvent
   - Create model ManholeService
Migrations for 'core':
 core/migrations/0001_initial.py
   - Create model UserNotification
   - Create model UserProfile
   - Add field profile to usernotification
А теперь
python manage.py migrate
источник

М

Максим in Python KZ
Operations to perform:
 Apply all migrations: admin, auth, authtoken, contenttypes, core, dicts, django_celery_results, djcelery, fcm, manholes, sessions
Running migrations:
 Applying dicts.0001_initial... OK
 Applying manholes.0001_initial... OK
 Applying core.0001_initial... OK
источник

BQ

Bumin Qaghan in Python KZ
Максим
Operations to perform:
 Apply all migrations: admin, auth, authtoken, contenttypes, core, dicts, django_celery_results, djcelery, fcm, manholes, sessions
Running migrations:
 Applying dicts.0001_initial... OK
 Applying manholes.0001_initial... OK
 Applying core.0001_initial... OK
А теперь суперюзера создавай
источник

BQ

Bumin Qaghan in Python KZ
И в админку заходи
источник

М

Максим in Python KZ
да блин )
источник

М

Максим in Python KZ
user создался а это что ?
источник

BQ

Bumin Qaghan in Python KZ
Покажи urls.py
источник