I'm sorry if I'm asking the repetitive but i really need assistance I been
trying to setup a server for my company system but I had no progress.
As the tile subject mention the I'm Using Mod_wsgi 4.6.5 and Apache 2.4
for my Django is 2.1 and python 3.7
When try to run on my local machine I get
I apologise, I'm a hardware engineer, I'm not very familiar with coding;
I'm only on Django for the past 5 months. (under my boss order)
I had managed to develop and establish a Django App, and manage to upload
it to remote server *NameCheap*. There on the server, the issue is unable
to locate
Dear Anirudh Jain
Thank you for reply
Really, apprentice it
Yes we run collectstaitc command
And we try within setting.py files
Set path static_root/url as the same
As for web server software we using apache not nigx.
I apologize for not including this information
Really appreciate if you
I been trying 2 weeks on trying to pass variables form Django views into
html, but every time I run my code, it works but it doesn't display the
variable I see
from django.shortcuts import render
from zigview.models import tank_system
def index(request):
return render(request,'FrounterWeb/
On Monday, 12 November 2018 21:26:48 UTC+8, Cuneyt Mertayak wrote:
>
> The content for the `render` method is supposed to be a dictionary:
> https://docs.djangoproject.com/en/2.1/topics/http/shortcuts/#optional-arguments
>
> So change it to this render(requset, "FrounterWeb/body.html",{'tank':
ormation;
> What errors do you get?
> What are you seeing?
>
> Either way, this is not correct: tank = tank_system.object.get(id(5))
> It should be: tank = tank_system.object.get(id=5)
>
> I suggest going through the django tutorial if you haven't already.
>
want to display the properties of the ORM
>>> (tank_system) object I guess, change them to {{tank.EC}},
>>> {{tank. temp}}, respectively.
>>>
>>> Hope it helps!
>>>
>>> On Monday, November 12, 2018 at 4:13:21 AM UTC-8, Rookies DJ wrote:
>>
*Answer:*
Hi everyone Thanks for helping me but I found out my mistake and the cause
of the problems;
The problems are my URL, is not calling my def in views
On Monday, 12 November 2018 20:13:21 UTC+8, Rookies DJ wrote:
>
> I been trying 2 weeks on trying to pass variables form Django
I create my own custom filter tags to using in my project but every time i
put in my HTML it just product this errors Invalid filter:
I don't where i do wrong, I try putting the {%load tag%} with child
templates, it didn't work
I try name it differently
@register.filter("multiply", multiply)
9 matches
Mail list logo