when creating a Scarpy project with:
scrapy startproject xxx
The project xxx will be placed under the current folder. Is there any way I can set a default path, say C:/Projects/Scrapy/ such that whenever the command above is used, the project will be put under this path.
Thanks
SK
You can't set a default one. But you can specify where you create it
scrapy startproject xxx C:/Projects/Scrapy/
If you still want to override it then you will need to create windows batch file and use that batch file to create project
Related
I am new to Odoo and I need to know what is the basic steps of adding a new module.
More specifically I need to know how to add custom modules to the addons-path.
In Odoo document they explain this step as this
$ ./odoo-bin --addons-path=../custom,../enterprise/,addons
but did not work for me.
For adding a new module you should do these steps:
Build your module with your written code or scaffold command.
Add the module path in your config file at addons-path = '',''
Change your URL like this: http://localhost:8091/web?debug=1
Go to apps and from up tabs
Select update app list and refresh your page.
Now you can see your module in the apps.
If you are not getting your custom module in Odoo after adding the path then you can try to add the full path of your folder into addons-path.
To get the full path of your custom folder just right-click on the folder and go to properties and find the path of your folder.
Also, you have to make sure to Apply the Update App list in your Odoo App Dashboard after restarting the server with custom addons.
I have a reference to PbxGroupPsiElement, and I'm trying to create a file inside using an action. To create a file I'm using following command: PbxGroupPsiElement.getDirectoryPsiElement().createFile("Test.swift");
It does create a file in directory, but in AppCode is not attached. How I can add it automatically to PbxGroupPsiElement?
Thank you.
Wehn we try to import the custom action to Kaizala portal, it throw "missing package.json" error,the package.json exist in the zip.
Zip all the files into a single zip file
Make sure that the zip does not include another directory inside it but the files are
present at the root directory of the zip
For more help you may go through this link (Microsoft Docs) :-
https://learn.microsoft.com/en-us/kaizala/actions/tutorial
We find this error, mostly when we make mistake of zipping the folder, rather zipping only the folder contents.
If you're using Windows do not select Custom Action Source Folder to zip.
Go inside the Custom Kaizala Action folder you created and Select All then try zipping.
Check Practice Tutorial: Creating a new Kaizala Action
Step 9: Create the Kaizala Action package
Zip all the files into a single zip file
Make sure that the zip does not include another directory inside it – but the files are present at the root directory of the zip
I am using the Go plugin for IntelliJ Idea.
I'm not sure how I got my project working like this but I am able to run my Main.go file and it includes all my other files in the project that I can reference. That is perfect.
The problem now is that when I go and create a new "*.go" file it's not included in the IDE build and I get compiled errors wherever I refer to the contents of that file.
How can I fix this?
i think you can set GOPATH in the ~/.bash_profile, e.g.
GOPATH=~/code/go
export GOPATH
and source ~/.bash_profile or restart the terminal. it will go to effect;
then put *.go or go project related with the main.go under the GOPATH.
finally, main.go will find the *.go.
There are two types of run configurations for Go applications:
- Go Single file -> which is the equivalent of go run file.go
- Go Application -> which is the equivalent of go build file / package and run the binary
By the sound of it, you want to run a Go Application with Run kind set to package. There you'll need to type the full package name, for example: github.com/dlsniper/demo/cmd/democmd
At the moment support for running multiple files / building a directory is not present (there are some issues opened for it)
I have performed a load test using JMETER.
But now not able to generate reports for the test.
To generate report I have followed these steps:
Create a new variable JAVA_HOME in the environment variable and set the path for the JDK.
Create another variable ANT_HOME and set the path for the Apache-ant.
Create another variable PATH and set the path for apache-ant up to BIN folder.
Place the ant-jmeter-1.0.9.jar file in side ‘Extras’ folder. Which is located in the path jakarta-jmeter-2.3.2->extras
Navigate to the ‘build.xml’ folder of the jmeter which is located in the path jakarta-jmeter-2.3.2->extras->build.xml.
Set the classpathref = “D:\loadtest\jakarta-jmeter-2.4\extras\ant-jmeter-1.0.9.jar “
Set jmeterhome=”D:\loadtest\jakarta-jmeter-2.4″
Set style=”D:\loadtest\jakarta-jmeter-2.4\jmeter-results-detail-report${style_version}.xsl” and save it.
Now copy jmx file and the build.xml file put it in a folder (Loadtest) where ever you want to generate the report.
Open command prompt and navigate to the folder where jmx and build file is located.
To run a test and create the output report:
Type the command “ant -Dtest=script”(for eg. I have my test.jms file and the command is ant -Dtest=test)
By following above steps Reports are not generated but I got following error:
BUILD FAILED
D:\Loadtest\result\build.xml:85: Reference D:/Loadtest/jakarta-jmeter-2.4/
extras/ant-jmeter.jar not found.
Can you help me find the solution?
Check jMeter version. The error says you're using 2.4, but your Jmeter home points to 2.3.2.
Did you include ant-jmeter-1.1.1.jar in your Ant classpath ? Adding the jar to $ANT_HOME/lib will make this happen automatically.
See:
http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php
ant-jmeter-1.1.1.jar is in jmeter/extras folder.
Furthermore I suggest you upgrade to last JMeter 2.7 version as it contains enhancements of the report.
Regards
Philippe M.
http://www.ubik-ingenierie.com/-Solutions-