I cloned a basic project. I was wondering which files do i have to copy so it becomes a completely self-contained project? I am referring to the css files, the templates, other apps?
Also, where will these files be located.
It depends on the layout of the Django project, but these are usually the basic files of a project.
settings.py
manage.py
urls.py
By going into urls.py, you will be able to see their their views are coming from, and those files should also be include. From the views, see what they import, and so on and so fourth until you reach the template files.
Related
I am trying to move the PyCharm .idea directory out of the project folder (a django project in this case).
I followed the instructions from JetBrains to move the .idea.properties file, which involves creating a custom .idea.properties file. I figured this might also provide a means to move the .idea folder, but having done this, it does not appear to have addressed the issue and if I create a new Django project the .idea directory is still in the Django project folder. I have looked at the contents of the custom .idea.properties file and although there is an entry relating to where it looks for .idea files to flag them as such, it doesn't appear to actually have a specific setting for the location of the .idea directory it creates for new projects.
As is often the case with JetBrains, I feel like I am missing the point somewhere and in this case searching on StackExchange or more general googling has not shed any light on the problem.
There is a workaround that I found that is in a nine-year old thread on the JetBrains 'YouTrack' bug tracking system (https://youtrack.jetbrains.com/issue/IDEA-170102?p=WI-343) but it refers to changing the Settings|Directories option in PyCharm, which I cannot locate although there are many items in the settings that refer to different directories.
Any help would be appreciated.
Instead of moving .idea directory, you can create new PyCharm project than add Content Root as original project folder.
This way you can work on the same code in different PyCharm instances
in PyCharm to change project's Content Root go to File | Settings | Project: | Project Structure.
See work in IDEA and PyCharm for the same project at the same time
I have a project using Visual Studio and its being developed on two different systems, its currently a github repo. I want to be able to keep the project settings for each system independent of each other. So every time I update my code from either system, I don't want the project settings to be updated. How do I do this?
Keep the solution and project files neutral. You want them to be tracked when you add/remove files to your projects. Pack your individual settings to a special .props file and let your project files use the properties. Put the .props file into .gitignore and you are done.
Look here Working with Project Properties for details on using property sheets.
.gitignore add files you do not want to share with others.
https://git-scm.com/docs/gitignore for documentation.
I believe, easily you can find ready to use templates for VS projects on web, so you won't have to create it by yourself (btw. creating new project in github, it will ask for if you want to have this .gitignore file, and ask what kind of project it will be, so all will be done for you).
.gitignore for Visual Studio Projects and Solutions
Or simply do not commit those settings ;)
In rails,
js files are located under
app/assets/javascripts
Similarly where to add js and css files in ember-cli app ?
app/styles/ should contain your stylesheets:
Contains your stylesheets, whether SASS, LESS, Stylus, Compass, or plain CSS
(though only one type is allowed, see Asset Compilation).
These are all compiled into <app-name>.css
If you need external JavaScript libraries, you should manage them in dependency sections of package.json and bower.json. You may have to include the assets manually in the build. This could be done by app.import() in ember-cli-build.js or by using ember-auto-import. Have a look in the User Guide for more details.
User Guide also contains a section about folder layout in ember-cli.
I am trying to create a Windows runtime application (in c++) and I want to store some "external" files in the application's Assets. I figured out there is a 'Content' flag which makes the file included in the package. However, if files are not located in the solution folder, all the files from all subfolders go directly into the Assets folder, which creates a huge mess. I want to keep my source folder structure. This works if the assets are located in the solution folder, but this is inconvenient for me.
On Android, you simply specify any assets folder location, and this folder is packaged as is. Can I do something like this on windows?
This post sort of gives answer to this question: Assets folder for Windows 8 Phone app.
However it feels like almost nobody including me have that drop-down option on the Add button (I am using VS2013 Ultimate Update 4).
So is there another solution? Can I for instance edit the visual studio project by hands?
Add as Link is only available for C# and VB Projects.
Im sure there is a very simple solution for this.
I have a bunch of .cpp / .h files from a project, say in directory ~/files
On the other hand, I want to create a c++ project using eclipse to work on those files, so I put my workspace on ~/wherever. Then I create a c++ project: ~/wherever/project, and include the source files (located in /~files).
The problem i'm having is that files are now duplicated in ~/wherever/project, and I would like to avoid that, specially so I know which copy of the file to commit.
Is this possible? Im sure it is, but cant get it.
Thanks in advance.
You could try:
creating the project directly above the ~/files (which is not very clean, given the location of the sources in your home dir)
using a linked folder
importing existing sources in your project: details all the options (when your sources are also managed by a VCS like CVS, or when your sources are not managed)
Create a file or folder in your project as per normal (choose File->New->Folder), give it a name, and click on the Advanced button. This reveals a file-choose field where you can browse for the resource you want to "virtually" include in the project. Click Okay and the file/folder you named is now linked outside of the project.