Skip to content

Simplify initial setup #230

@mofr

Description

@mofr

Pain points (as shown by the winter-getting-started project):

Django-related:

  • Have to run django-admin startproject which generates a lot of visible boilerplate and clutter
    • manage.py
    • settings.py
    • urls.py
    • wsgi.py
  • Have to manually add rest_framework to INSTALLED_APPS
  • Have to call create_django_urls_for_package
  • Have to manually setup DEFAULT_RENDERER_CLASSES
  • Need to adjust ALLOWED_HOSTS before deployment
  • Non-trivial test fixture is required:
    • DJANGO_SETTINGS_MODULE
    • django.setup
    • LiveServerTestCase (replaced with httpx)
  • Complex openapi setup
    • Need to manually set SWAGGER_SETTINGS
    • Need to manually set STATIC_ROOT
    • Adding drf_yasg to INSTALLED_APPS
    • Setting up whitenoise
    • Have to write a lot of code for the most simple case

Not related to Django:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions