简体   繁体   English

href HTML呼叫页面“ UP”目录

[英]href HTML call to page “UP” Directory

This question is simple, but confusing to explain. 这个问题很简单,但难以解释。 Feel free to edit the question. 随时编辑问题。

I'm making a django site and want to link to my admin site. 我正在建立一个django网站,并希望链接到我的管理网站。

current url structure is /livestream/... everything. 当前的url结构是/ livestream / ...一切。

I understand these href, all I need is how the path goes down the directory to link to a page, but I want to link to a page that is at the same 'level' as livestream 我理解这些href,我所需要的只是路径如何沿着目录向下链接到页面,但我想链接到与实时流处于同一“级别”的页面

I want to link to /admin/ page. 我想链接到/ admin /页面。

How do I do this? 我该怎么做呢?

Current URL for admin: http://{server numbers}/admin/ 管理员当前的网址:http:// {服务器号} / admin /

Current URL for index [where the link is coming from]: http://{same server numbers}/livestream/ 索引的当前URL [链接来自何处]:http:// {相同的服务器编号} / livestream /

用这个:

<a href="../admin/">The Link</a>

../admin ../admin

The .. sends you up a level. ..使您更上一层楼。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM