Migration error in django -
i using django first time , unable error mean.
i creating app url dispatcher , error.i have created saperate urls.py file app , put code in main_app code
from django.conf.urls import url . import views urlpatterns = [ url(r'^$', views.index), ]
my project url dispatcher code
please figure out ?
as have started project only. can first start project , without adding or starting app first run these commands
python manage.py makemigrations python manage.py migrate python manage.py runserver
if says ok then, start main app add in
installed_apps = [ 'main', # other apps ]
and create urls in urls.py of both dispacther , main app have created. , run above 3 commands again.
Comments
Post a Comment