158π
β
Just use the current directory:
cd /home/user/projectfolder
django-admin.py startproject project .
The use of .
just instructs Django to create a project in the current directory while:
django-admin.py startproject
instructs Django to create a project and create the necessary directory
If only the project name is given, both the project directory and
project package will be named and the project directory
will be created in the current working directory.
This fails because of the existing directory which is not a bug but a constrain in order to prevent accidents.
π€petkostas
15π
You can make too like this:
django-admin startproject name_project path_project
Example:
django-admin startproject example /tmp/example
- [Django]-Sorting related items in a Django template
- [Django]-What's the idiomatic Python equivalent to Django's 'regroup' template tag?
- [Django]-How to allow users to change their own passwords in Django?
Source:stackexchange.com