Stuck on the real basics. I have a project called say "project_fred", have an app in there called "fred", do a pip install of django-material. The project and app already have customisations to have email address as the sole authentication method. Done the addition of material, material.frontend and material.admin to installed apps. Is there a way to scaffold out the material support files if I already have an app defined?
I'm suspect there's a missing fred.apps.fredConfig needed in INSTALLED_APPS along the way too.
fredcontain models, views, urls, templates? is it in your project settings?
TEMPLATES. As for the static files, you have to run manage.py collectstatic in your production. Regarding the FredConfig, well, before installing django-material you should have had FredConfig in the installed apps already, otherwise your project would not know that it should use/display the fred app.
index.htmlis simply a template and usually you put it in
project/templates/fred/index.html. I suggest the first one as it means you will be able to locate all your app templates quickly (ie. each app has template folder), as opposed to having 1 massive templates folder in your project directory (it's still useful to have it, for some project wide stuff).
fredapp as simply
'fred.apps.FredConfig'in your settings, then you can, in your
__init__.pyfile in your
fredapp add line:
default_app_config = 'fred.apps.FredConfig'
django.contrib.adminfor example instead of
default_app_config = 'django.contrib.admin.apps.AdminConfig'- but it doesn't matter in the end
pip install django-material --upgradeshould do the magic (I believe it's now version 1.2 that is the newest, at least for django-material-pro)