在 django 中添加一个按钮!
I wanted to add buttons or a url adjacent to "ADD CUSTOMER" button as shown in the image. Please guide me regarding the same.Where should i be making the necessary changes ?
请在这里找到图片>> http://img138.imageshack.us/img138/170/query.png
谢谢
I wanted to add buttons or a url adjacent to "ADD CUSTOMER" button as shown in the image. Please guide me regarding the same.Where should i be making the necessary changes ?
please find the image here >> http://img138.imageshack.us/img138/170/query.png
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在 html 文件或 CSS 文件(如果有的话)中添加按钮/进行更改。如果您使用 Django,请在项目的 /templates 目录中进行更改,该目录包含 html 文件。
You add buttons/make changes in the html file, or your CSS file if you have one. If you're using Django make the changes in the /templates directory of your project, its the directory that contains the html files.
在这种情况下,您正在查看的是管理站点。此模板位于“python-path/lib/site-packages/django/contrib/admin/...”之类的位置,但您可以在项目中覆盖这些模板。我不确定做你想做的事情有多容易,但是你可以看到 此链接了解更多信息。
In this case what you are looking at is the admin site. The templates for this are located somewhere like "python-path/lib/site-packages/django/contrib/admin/...", but you can override these templates in your project. I'm not sure how easy it is to do what you're trying to do, but you can see this link for more information.