Django

  • ์–˜๋Š” makemigrations

  • ์–˜๋Š” migrate

ImportError : cannot import 'url' from 'django.conf.urls' after upgrading to Django 4.0

๋ฌธ์ œ

error when running python manage.py runserver

์›์ธ

django.conf.urls.url() was deprecated in Django 3.0, and is removed in Django 4.0+.

ํ•ด๊ฒฐ

replace url() with re_path(). re_path uses regexes like url, so you only have to update the import and replace url with re_path.

์ฝ”๋“œ

reference

Django REST Framework: 'BasePermissionMetaclass' object is not iterable

reference

You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.

'dict' object has no attribute ''

Error Code: 3730. Cannot drop table '' referenced by a foreign key constraint

Unknown column '' in 'field list' in Sequelize

Python django ModuleNotFountError : No module name ''

[django] Serializer์— ๋ถ„๋ช…ํžˆ ํ•ด๋‹น ํ•„๋“œ๊ฐ€ ์žˆ๋Š”๋ฐ ์—†๋‹ค๊ณ  ํ•˜๋Š” ๊ฒฝ์šฐ

์ถœ์ฒ˜: https://dongza.tistory.com/20 [๋ˆˆ๋ˆ„๋‚œ๋‚˜:ํ‹ฐ์Šคํ† ๋ฆฌ]

Django์—์„œ migrations error ๋ฐœ์ƒํ•  ๋•Œ migration ์ดˆ๊ธฐํ™”ํ•˜๊ธฐ - ์žก๋™์‚ฌ๋‹ˆ ์•„์นด์ด๋ธŒ

Last updated