问题描述
我正在跟踪一个有关Django的教程,但我陷入了困境,因此我搜索了另一个教程,然后遇到了重新安装Linux系统x6的情况(由于〜/ .bashrc中的Python更改)和类似的东西
我是新来的人,也是Python和Django(初学者)的新人。还在学习,但是我有经验(8年),曾在NCR等各种公司工作……以及作为自由职业者的其他人,在那我学到了很多sys admin /后端知识。
重点是:所有其他教程中突然出现的情况(同时我相信Pycharm进行了更新,我无法提取创建的标签。
因此,在我的base.html中,pages.app中的所有.html页面都在模板文件夹中,所有设置都在设置中....
但是,我的{{标签}}没有显示!
以下是一些信息,... 我有同样的问题!
在型号中:
from django.http import HttpResponse
from django.shortcuts import render
from .models import *
from django import templatetags
from django import template
# Create your views here.
def home_view(request):
return render(request,"home.html",{})
def contact_view(request):
return render(request,"contact.html",{})
def about_view(request):
my_context:{
"my_text": "This is about us","my_number" : 123
}
return render(request,'about.html',my_context)
def social_view(request):
return render(request,"social.html",{})
我在源文件夹中有'template dir'添加了所有设置 Settings
请帮助我不能继续上课,我想学习DJANGO以及开始学习PYTHON时的初级水平 所以我可以继续前进,我厌倦了制作newapp,项目,更改Python解释器,然后陷入(x6)的情况以重新安装Ubuntu ...
所以现在,这是最长的时间,即不重新安装相同的操作系统并进行适当的练习并学习Python和Django ...:(
from django.http import HttpResponse
from django.shortcuts import render
from .models import *
from django import templatetags
from django import template
# Create your views here.
def home_view(request):
return render(request,{})
请问有任何想法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)