[Python] Force django-admin startproject if project folder already exists

Discussão em 'Python' iniciado por Stack, Maio 28, 2025.

  1. Stack

    Stack Membro Participativo

    I want to start a new Django project in an already existing folder, and obviously get

    CommandError: '/home/user/projectfolder' already exists.


    Is there some way to force startproject command to create the project in an existing folder? I have some important data in that folder and also the git folder, so I don't want to move it somewhere and then move it back.

    Continue reading...

Compartilhe esta Página