python - Django database tables not being created -
so have existing project worked on django 1.8 , python 2.7.
i've since tried run project under django 1.9 , python 3.5.1...
but i'm running problem, tables aren't being created in new database when run
python3.5 manage.py migrate
here log i'm seeing:
[gpsp@localhost gpsp]$ python3.5 manage.py migrate /usr/local/lib/python3.5/site-packages/django/template/utils.py:37: removedindjango110warning: haven't defined templates setting. must before upgrading django 1.10. otherwise django unable load templates. "unable load templates.", removedindjango110warning) /home/gpsp/gpsp/gpsp/urls.py:36: removedindjango110warning: django.conf.urls.patterns() deprecated , removed in django 1.10. update urlpatterns list of django.conf.urls.url() instances instead. url(r'^admin/', include(admin.site.urls)), /usr/local/lib/python3.5/site-packages/django/conf/urls/__init__.py:89: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got loginregistration.views.login). pass callable instead. t = url(prefix=prefix, *t) /usr/local/lib/python3.5/site-packages/django/conf/urls/__init__.py:89: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got loginregistration.views.logout). pass callable instead. t = url(prefix=prefix, *t) /usr/local/lib/python3.5/site-packages/django/conf/urls/__init__.py:89: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got loginregistration.views.register). pass callable instead. t = url(prefix=prefix, *t) /usr/local/lib/python3.5/site-packages/django/conf/urls/__init__.py:89: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got puzzles.views.mypuzzles). pass callable instead. t = url(prefix=prefix, *t) /usr/local/lib/python3.5/site-packages/django/conf/urls/__init__.py:89: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got createpuzzle.views.planning). pass callable instead. t = url(prefix=prefix, *t) /usr/local/lib/python3.5/site-packages/django/conf/urls/__init__.py:89: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got createpuzzle.views.submitplan). pass callable instead. t = url(prefix=prefix, *t) /usr/local/lib/python3.5/site-packages/django/conf/urls/__init__.py:89: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got play.views.request_piece). pass callable instead. t = url(prefix=prefix, *t) /usr/local/lib/python3.5/site-packages/django/conf/urls/__init__.py:89: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got play.views.localplay). pass callable instead. t = url(prefix=prefix, *t) /usr/local/lib/python3.5/site-packages/django/conf/urls/__init__.py:89: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got applicationtester.views.googlemaps). pass callable instead. t = url(prefix=prefix, *t) /usr/local/lib/python3.5/site-packages/django/conf/urls/__init__.py:89: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got applicationtester.views.widget). pass callable instead. t = url(prefix=prefix, *t) /home/gpsp/gpsp/gpsp/urls.py:42: removedindjango110warning: django.conf.urls.patterns() deprecated , removed in django 1.10. update urlpatterns list of django.conf.urls.url() instances instead. (r'^media/(?p<path>.*)$', 'django.views.static.serve', {'document_root': settings.media_root}), /usr/local/lib/python3.5/site-packages/django/conf/urls/__init__.py:89: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got django.views.static.serve). pass callable instead. t = url(prefix=prefix, *t) operations perform: apply migrations: admin, contenttypes, sessions, auth running migrations: rendering model states... done applying contenttypes.0001_initial... ok applying auth.0001_initial... ok applying admin.0001_initial... ok applying admin.0002_logentry_remove_auto_add... ok applying contenttypes.0002_remove_content_type_name... ok applying auth.0002_alter_permission_name_max_length... ok applying auth.0003_alter_user_email_max_length... ok applying auth.0004_alter_user_username_opts... ok applying auth.0005_alter_user_last_login_null... ok applying auth.0006_require_contenttypes_0002... ok applying auth.0007_alter_validators_add_error_messages... ok applying sessions.0001_initial... ok [gpsp@localhost gpsp]$
could of these depreciation warnings prevent tables being created?
all applications installed in settings.py.
you first need create migration files apps:
python manage.py makemigrations app_name
if want run apps:
python manage.py makemigrations
and migrate schemes
python manage.py migrate
update:
you need insert apps installed_apps
Comments
Post a Comment