Project Structure
Below is the structure of a new project.
.
├── compose
├── django_app
├── docs
├── frontend
├── manage.py
├── package-lock.json
├── package.json
├── requirements.in
├── requirements.txt
compose
contains config files forDocker Compose
django_app
contains Django apps, I will talk about it in the next section.docs
contains all doc stufffrontend
is a NPM project bundled by Webpack.- Some files are omitted for brevity.
django_app
Below is the files in the django_app
directory.
.
├── __init__.py
├── asgi.py
├── celery.py
├── cms
├── core
├── demo_celery
├── demo_tasks
├── settings.py
├── static
├── templates
├── tests
├── urls.py
├── users
└── wsgi.py
The django_app
contains below Django apps
core
contains some core code.users
contains user models and views.cms
contains some page models based on Wagtail CMS.demo_tasks
is a Django app to show you how to makeStimulus
,Turbo
work with Django.demo_celery
is a Django app to show you how to makeStimulus
,Turbo
work with Celery.
The django_app
also contains below files and directory
celery.py
is entry file for Celery.settings.py
is the Django settings file.static
contains static assets.templates
contains all template files.tests
contains all testing stuff.