Ich habe diese Befehle ausgeführt:
Code: Select all
cd ~
mkdir social_mvp
cd social_mvp
mkdir socialsite
mkdir core
mkdir -p core/templates/core
mkdir -p core/static/core/css
touch manage.py requirements.txt
touch socialsite/__init__.py socialsite/settings.py socialsite/urls.py socialsite/wsgi.py socialsite/asgi.py
python3 -m venv venv
source venv/bin/activate
pip install django channels
django-admin startproject socialsite .
wenn ich „django-admin startproject socialsite“ ausführe. Ich erhalte eine Fehlermeldung;
Code: Select all
$ django-admin startproject socialsite .
CommandError: 'socialsite' conflicts with the name of an existing file or directory.
Wie geht das richtig?
Sollte ich nicht zuerst „manage.py“ und den Ordner „socialsite/“ manuell erstellen? Was ist die richtige Befehlsreihenfolge für Django + Channels?
Mobile version