Skip to content

How to create a new Django app for a cookiecutter-django based project #4339

Discussion options

You must be logged in to vote

Hello @CurtMRosenblad , this is the step by step of creating a new app in a project that was created using cookiecutter-django.
Try to use this way and let me know if the step-by-step solves the problem or not.

How to create a new django app for a cookiecutter-django based project:

1 - create the <name-of-the-app> app with python manage.py startapp <name-of-the-app>

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>, on your LOCAL_APPS on config/settings/base.py

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@abe-101
Comment options

@abe-101
Comment options

Answer selected by CurtMRosenbladWheeler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants