V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
python30
V2EX  ›  Python

Python django 用这个方法做的二级域名.怎么排名全没了?

  •  
  •   python30 · 2019-03-28 12:35:18 +08:00 · 2217 次点击
    这是一个创建于 1855 天前的主题,其中的信息可能已经有所发展或是发生改变。

    www.xxx.com 电脑站 www.xxx.com/m 手机站 以前用上面还有少少关键词排名很高.百度还能来上千 IP

    class BaseView(View): 
      @property 
      def ismobile(self): 
      	return 'm.xxxx.com' in self.request.get_host() 
          
          
    
    class Index(BaseView, BaseMixin, ListView): 
      model = Info 
      context_object_name = 'info_list' 
      
      def get_template_names(self): 
      	if self.ismobile: 
      		return 'm/m_index.html' 
      	else: 
      		return 'index/index.html' 
              ```
              
              
    django 用这个方法做的网站.对搜索排名不好吗? 
    
    www.xxx.com 
    m.xxx.com 
    现在用上面的代码 
    然后百度一个关键词也没了 
    全消失了
    
    12 条回复    2019-03-29 13:17:20 +08:00
    AwayEM
        1
    AwayEM  
       2019-03-28 12:37:36 +08:00 via iPhone
    你的网站有点厉害啊
    python30
        2
    python30  
    OP
       2019-03-28 12:54:25 +08:00
    @AwayEM 为什么这样说?
    privil
        3
    privil  
       2019-03-28 12:56:56 +08:00
    @python30 #2 xxx.com 不适合用来举例,你自己可以点点看
    Vegetable
        4
    Vegetable  
       2019-03-28 12:58:57 +08:00
    @privil NSFW!!!
    daya
        5
    daya  
       2019-03-28 12:59:34 +08:00 via iPhone
    请使用 example.com 作为域名示例
    IanPeverell
        6
    IanPeverell  
       2019-03-28 13:39:35 +08:00
    在公司闲着无聊点了一下,然后瞬间关了,还好没人看我屏幕(捂脸逃)
    FreshUncle
        7
    FreshUncle  
       2019-03-28 14:01:47 +08:00
    ntuwang
        8
    ntuwang  
       2019-03-28 14:11:59 +08:00
    @python30 兄弟 你的网站流量很大吧,Python django 能支撑柱吗?考虑 Go 不?
    loading
        9
    loading  
       2019-03-28 14:13:51 +08:00 via Android
    这种站还差技术员吗?都是业内顶尖技术的。
    loading
        10
    loading  
       2019-03-28 14:14:26 +08:00 via Android
    @livid 建议把楼主的地址修改一下。nsfw
    zw1027
        11
    zw1027  
       2019-03-28 15:05:44 +08:00
    好像看看 LZ 的源码学习一下,用到的都是我很少碰的内容...
    Latin
        12
    Latin  
       2019-03-29 13:17:20 +08:00
    666
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3263 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:11 · PVG 21:11 · LAX 06:11 · JFK 09:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.