You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
I follwed along the official tutorial here, and when I ran ./manage.py makemigrations helloworld, django won't make migrations by giving me this error
django.core.exceptions.ImproperlyConfigured: Cannot import 'helloworld'. Check that 'demo.helloworld.apps.HelloworldConfig.name' is correct.
Turned out app name helloworld was not recognised, so I had to change apps.py like the following
from django.apps import AppConfig
class HelloworldConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
# name = 'helloworld'
name = 'demo.helloworld' # new
And in demo/urls.py, I used path, rather than url. If a user uses django 3 version, path would be better in my opinion.
from django.contrib import admin
from django.urls import path, include
from django.views import generic
from material.frontend import urls as frontend_urls
urlpatterns = [
path('admin/', admin.site.urls),
path('', generic.RedirectView.as_view(url='/workflow/', permanent=False)),
path('', include(frontend_urls)),
#]
The text was updated successfully, but these errors were encountered:
I follwed along the official tutorial here, and when I ran
./manage.py makemigrations helloworld
, django won't make migrations by giving me this errorTurned out app name
helloworld
was not recognised, so I had to changeapps.py
like the followingAnd in
demo/urls.py
, I usedpath
, rather thanurl
. If a user uses django 3 version, path would be better in my opinion.The text was updated successfully, but these errors were encountered: