<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Tips on Shaowen Chen's Website</title><link>https://www.chenshaowen.com/en/tags/tips/</link><description>Recent content in Tips on Shaowen Chen's Website</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>&amp;copy;2016 - {year}, All Rights Reserved.</copyright><lastBuildDate>Fri, 20 Dec 2019 00:00:00 +0000</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><atom:link href="https://www.chenshaowen.com/en/tags/tips/atom.xml" rel="self" type="application/rss+xml"/><item><title>How to Build a Java Project</title><link>https://www.chenshaowen.com/en/blog/how-to-compile-a-java-project.html</link><pubDate>Fri, 20 Dec 2019 00:00:00 +0000</pubDate><atom:modified>Fri, 20 Dec 2019 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/how-to-compile-a-java-project.html</guid><description>First, the compiler needs to compile .java text files into .class bytecode, and then the JVM executes the .class bytecode files. The process is not complicated; this article mainly records some of the related steps during compilation and runtime. 1. A Single Source File Create a text file Hello.java 1</description><dc:creator>微信公众号</dc:creator><category>Java</category><category>Maven</category><category>Build</category><category>Tips</category><category>R&amp;D</category></item><item><title>Git Tips You Didn't Know</title><link>https://www.chenshaowen.com/en/blog/git-skills-you-do-not-notice.html</link><pubDate>Fri, 17 May 2019 00:00:00 +0000</pubDate><atom:modified>Fri, 17 May 2019 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/git-skills-you-do-not-notice.html</guid><description>1. Pages GitHub, GitLab, Bitbucket and others all offer a free static page hosting service called Pages. With the Pages service you can publish documentation, blogs, and more. Taking GitHub as an example, using Pages usually takes just a few simple steps: Create a new project: [username].github.io Commit static html</description><dc:creator>微信公众号</dc:creator><category>Tips</category><category>Git</category><category>Processes</category><category>Development</category><category>R&amp;D</category></item><item><title>How to Safely Access request from Anywhere in Django</title><link>https://www.chenshaowen.com/en/blog/how-to-secure-get-request-in-django.html</link><pubDate>Tue, 26 Jun 2018 00:00:00 +0000</pubDate><atom:modified>Tue, 26 Jun 2018 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/how-to-secure-get-request-in-django.html</guid><description>In Django, request holds all the information for a single request. Backend processing logic frequently needs information from request. For example, the DRF framework may want to be able to obtain request at any time, or pass some parameters globally. There are third-party Django apps with tools that can satisfy</description><dc:creator>微信公众号</dc:creator><category>Django</category><category>Python</category><category>R&amp;D</category><category>Tips</category><category>Learning</category><category>DRF</category><category>Thread Safety</category></item><item><title>Django Snippets</title><link>https://www.chenshaowen.com/en/blog/snippets-of-django.html</link><pubDate>Thu, 22 Jun 2017 23:52:06 +0000</pubDate><atom:modified>Thu, 22 Jun 2017 23:52:06 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/snippets-of-django.html</guid><description>1. Auto-Register All Models in Admin admin.py
1 2 3 4 5 6 7 8 9 10 # -*- coding: utf-8 -*- import inspect from django.contrib import admin from . import models for name, obj in inspect.getmembers(models): try: if inspect.isclass(obj): admin.site.register(getattr(models, name)) except Exception as e: pass 2. Get All View Names Get all view names of the project</description><dc:creator>微信公众号</dc:creator><category>Django</category><category>Python</category><category>R&amp;D</category><category>Learning</category><category>Tips</category></item></channel></rss>