Include folder of yaml configuration files in python egg - python-2.7

I am using yaml for configuration in a project now I am trying to make egg file of that project and that folder is not available in that egg file.
How to include that folder in egg file.

Related

Not able to ignore static files from getting pushed to git in Django project

I had pushed a new Django project BTRE to my git repository. But I can't ignore the static files from pushed to the repository even though I have mentioned the directories in .gitignore file.
-BTRE_Project
|-btre
|-static
This is my .gitignore file:
# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
# in your Git repository. Update and uncomment the following line accordingly.
btre/static/
I have tried deleting the repository and pushing again after updating the .gitignore file.
if you want to ignore your static folder and all the files inside static folder than put this in your .gitignore file
static/
this will ignore static directory and files inside that
You can add ignore by adding the folder path in .gitignore file also use git lfs if you want to commit static files.

How can I store my static files to some other github repo?

I am doing a Django Project and I want to store some files (which should be accessible from the project w,r) to some github project as I don't want to store the files and the projects in the same repo.
Any suggestion of doing that?
Let's say, for example, that you want to upload all files with a .css extension to a separate project.
You need to create two files in the root folder of each project. and call them .gitignore
(Don't forget the point at first)
In the repository where you want all files except css files, write in the .gitignore file:
*.css
In the repository where you only want the css files, write in the .gitignore file:
*
!*.css
You will now push the .gitignore files, respectively, to each of the projects you created.

Visual Studio adds git directory one directory too high

For a Django project, I want the git directory in the same directory as the manage.py file. When I create a new python web project in Visual Studio it creates the git directory one directory above where I would put the manage.py file. How do I put the git directory in the right place?
Let's say I create a new project in a folder called "project_dir". The .git directory is placed there. Visual studio creates a sub-folder with the project name (call it project_name) and only allows you to add files and folders within that sub-folder. I want the git data in project_name.
project_dir
├───.git
├───.gitignore
├───project_name.sln
├───project_name
│ ├───manage.py
│ └───project_name.pyproj
When I create a new project I do not have "create new directory for solution" checked. I seems like it's creating a directory for the solution file (.sln) anyway.
Alternative way is you can create the project using command line and run git init command in your project folder. This will initialize the git repo in your project folder.
At the same level with manage.py.

Virtualenvwrapper not using project_home

I installed virtualenvwrapper on ubuntu. I added the following lines to the top of bashrc file:
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/myprojects
source /usr/local/bin/virtualenvwrapper.sh
everething works perfect except that when I use django-admin start project command, the project gets created in my home directory not the directory I specified in bashrc file which is myprojects.
shouldn't new projects be created in myprojects folder?
thanks in advance.
I assume you're running django-admin startproject in your home folder? django-admin doesn't know anything about virtualenvwrapper and, unless you explicitly specify a folder, it creates the project in the current folder. See https://docs.djangoproject.com/en/dev/ref/django-admin/#startproject-projectname-destination

gradle war task generates META-INF folder in root of war file

My gradle war task seems to generate a META-INF in the root of my war file. Is this a bug in gradle?
AFAIK meta-inf doesnt belong in the root of war files.
Here is my build.gradle:
apply plugin:'war'
sourceCompatibility = 1.7
Here is my project layout:
Here is the contents of the war. Notice the META-INF folder
Am I doing something wrong?
Like Jar archives, War archives are expected to have a META-INF/MANIFEST.MF file.
PS: Please do not double-post. I already answered your question at http://forums.gradle.org.