Why doesn't Django automatically create the templates folder? - python-3.x

when I use django2.0 I met an error:django.template.exceptions.TemplateDoesNotExist: name.html. I find the problem is that the django didn't create the template directory automatically. I use commanddjango-admin startproject demo to start my project, but I can't see the template directory as tutorial.
May I ask what's the problem?

Related

I'm using tailwindCSS for a simple html site but deployment on netlify does not work, why?

I've been learning how to use tailwind css by following the offical video tutorial and I just wanted to try to deploy the site example to Netlify to see if it works using the drag and drop feature.
This means taking the entire project folder and dumping it into netlify. This usually works with vanilla html css js sites but for some reason I get the error
Page Not Found Looks like you've followed a broken link or entered a URL that doesn't exist on this site.
This is how the project structured looked like:
What am I doing wrong? Inside the build folder there is another file called tailwind.css
On your Netlify dashboard, change the publish directory to the directory where your index.html file resides: public/. That should do it.
You can also, as you said, take everything out of the public folder and put it at the same level as the other folder and files, which makes the index.html available at the root of the project. However, then you lose your project's file organization.
I've fixed the problem.
The trick was to take everything out of the public folder and put it at the same level as the other folder and files.
This would make the index.html file available at the root of the project and would allow the site to work properly once deployed.

How to configure the server in angular to get files?

I just run the ng serve command and go to the server. But if I drop the file house.jpg into the src folder, then when I access the address http://localhost:4200/house.jpg then I don’t see this file, the main page of the project opens.
I did not find anything about it in the official documentation, I ask the help of professionals
You need to follow the Angular Structure Guide. As said above, you need to put your images and other files you want to use frontend-side in the assets folder.
The assets folder contains image and other asset files to be copied as-is when you build your application.
Notice you can create any folders you want in assets if you want to order your files.

Using components in nod_ modules folder in Angular5

I am developing a web site using AngularJS 5. I have downloaded a web template from the internet. It has a login page. I want to edit the UI of that login page. When I searched for the login component, it is in a folder called #nebular in node_modules folder. 'src' folder does not contain 'login component' Then how can I edit login UI?
The node_modules may contain the built version of the login. Copy the files from #node_modules and put it into your src/app/ and import it as a component. Then, try editing the template file.
But I recommend to use the angular CLI to create a template rather than from a web-template. Then, make a components yourself for UI.

jdl file missing in new project

When I create a jhipster thru eclipse plugin, I get src/model/Model.jdl
However this file is not available when I create the project thru online page, https://start.jhipster.tech/#/generate-application.
Did I miss can option while creating this project?
If you have the jdl for the User and Authority, kindly post the same. I am curious to know if authority.name is an enum. If so, how can I add few more entries to that list.
There's no JDL for User and Authority because they are not generated by the entity sub generator. I don't use Eclipse so I can't say how this Model.jdl file was created but you can easily create it from command line in your project directory by running jhipster export-jdl src/model/Model.jdl

How do I edit files with Web IDE in Bluemix DevOps?

My ultimate goal is to simply edit the package.json file to add the momentjs library so I can access it my node red app running in bluemix, but my question is even more fundamental.
My setup:
I have a bluemix nodejs app running a simple node red app I created. I want to use the moment.js library to do some date math and understand I need to update the dependencies file in the package.json file.
Question:
When I go to my Bluemix console runtime screen for node.js I can see the package.json file and can click on it to see the contents, but can't edit. I have tried creating projects/Git and can't see this file. I can use CLI using CF and get to the file and view it but again I just don't know how to edit it.
I would really like to understand how I can see these files and edit/source code control them using the Web IDE and just can't figure it out. I do fundamentally understand source code control just don't understand how to set this all so I can specifically see this file.
Main goal is simply to update the package.json file in the app directory.
In your Bluemix Dashboard,click on your APP and in the APP Overview you will see ADD GIT BUTTON(top right corner).
Click on it and once you've added your project to GIT, you will get a GIT URL.
Go to that URL and click on EDIT CODE( you can update your package.json) and then commit the changes.

Resources