I'm kinda new in using Django's startproject command from django-admin.py, and amazed with shortage of time that this command gave me. Althought I have one question about it for which I couldn't find answer on official documentation.
In my project skeleton folder which is used to build new project I have two folders with starting .(dot)
sing which is used in Linux Os-es like marker for hidden folders. Example:
.hiddenFolder
|
----
|
file.js
|
file.cfg
|
file.html
once when I hit:
django-admin startproject --template
/home/virt_env/project_env/project_folder/project_skeleton
--extension py,js,json myNewProject
myNewProject gets generated but those hidden folders .hiddenFolder
and .anotherHiddenFolder
and all files inside them are not placed inside newly generated project.
It feels like they are ignored and I do not know what should I try to put in command. Is there any flag available that tells to command
"do not ingnore hidden folders and files"
Or is there any alternative solution?
command not found: django-admin django-admin should be on your system path if you installed Django via pip . If it's not in your path, ensure you have your virtual environment activated and you can try running the equivalent command python -m django .
The admin.py file is used to display your models in the Django admin panel. You can also customize your admin panel.
WARNING: The script django-admin.exe is installed in 'C:\Users\radma\AppData\Local\Packages\PythonSoftwareFoundation. Python.
The django-admin.py script should be on your system path if you installed Django via its setup.py utility. If it's not on your path, you can find it in site-packages/django/bin within your Python installation.
Unfortunately, there isn't such option in "startproject" command. You can see source:
https://github.com/django/django/blob/master/django/core/management/templates.py#L129
This is done explicitly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With