Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django-admin.py startproject is ignoring hidden files

Tags:

python

django

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?

like image 242
dzordz Avatar asked Feb 09 '15 09:02

dzordz


People also ask

Why is my django admin command not working?

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 .

What does admin py do in django?

The admin.py file is used to display your models in the Django admin panel. You can also customize your admin panel.

Where is django admin exe?

WARNING: The script django-admin.exe is installed in 'C:\Users\radma\AppData\Local\Packages\PythonSoftwareFoundation. Python.

Where is admin py located?

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.


1 Answers

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.

like image 131
Eugene Soldatov Avatar answered Sep 24 '22 17:09

Eugene Soldatov