Cookiecutter Django template with the code structure I usually use
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alfred 560f8cfb34 First template version 2 months ago
{{cookiecutter.repo_name}} First template version 2 months ago
README.md First template version 2 months ago
cookiecutter.json Replace app_title by app_name 2 months ago

README.md

Cookiecutter for Django projects

This is a Cookiecutter template for Django projects.

Features

  • Dependencies management using Poetry.
  • Module for being used as standalone application or redistributable application.
  • Structure on templates directory.
  • Example command.
  • Styles with SASS.
  • Webcomponents with FicusJS.

Quickstart

Create application with:

cookiecutter https://git.alfredgg.dev/alfred/cookiecutter-django

You will need to add the django library:

poetry add django

Run it with:

poetry run python ./manage.py runserver

Gotchas

Get the virtual environment path:

poetry env list --full-path

Develop style sheets, from application/static/application/styles/sass folder:

sass --watch main.scss:../stylesheet.css

If you are gonna use Postgres you can remove those comments from default.py settings file and will need to add the proper library:

poetry add psycopg2-binary