Build a django+react blog

I haven't found a job recently, so I honed my skills at school. Before that, I built a django crawler data display website.

However, the front and back ends were not separated. The project is here https://github.com/Yangzhedi/spiderwebsite .

Because the company I was in before was working on projects with react, I planned to use react+django to build a separate blog.

In this way, each player can play with each other, and the interference with each other is minimized, and there is only the connection of data between them.

The project of this blog is here https://github.com/Yangzhedi/myBlog

The installation environment, the installation of modules, etc. will not be discussed here.

The default here is that a blog project has been established, which is the directory of the entire blog.


Put css files, some pictures, reactjs js files and some package.json and webpack configuration in static.

The html template is placed in the templates, that is, there is at least one export file of webpack. My export file is index.html, which means that the js packaged and compiled by webpack will be displayed in index.html.

The index.html here is a separate display before and after, and index2.html is a separate display before and after, which can also be used normally.




To be continued. . .

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326760397&siteId=291194637