Skip to content

Trying to add new app but templates are a mess #3843

Answered by luzfcb
ronaldgreeff asked this question in Q&A
Discussion options

You must be logged in to vote

I will try to answer the 3 questions that were asked:

1 - How to create a new django app to cookiecuter-django based project:

1 - create the <name-of-the-app> app with python manage.py startapp
2 - move <name-of-the-app> directory to <project_slug> directory
3 - edit <project_slug>/<name-of-the-app>/apps.py and
change name = "<name-of-the-app>" to name = "<project_slug>.<name-of-the-app>"
4 - add "<project_slug>.<name-of-the-app>.apps.<NameOfTheAppConfigClass>", on your LOCAL_APPS on config/settings/base.py

2 - How to explicitly customize the template used by django views that inherit from TemplateResponseMixin:

For the ListView/DetailView problem, it would probably be nice if you had it …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by luzfcb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants