Re: Static files won't match the path given

2019-05-11 Thread Rookies DJ
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

Static files won't match the path given

2019-05-10 Thread Rookies DJ
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

Django, mod_wsgi and apache2.4 = 403 forbidden

2019-01-28 Thread Rookies DJ
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

custom filter tag I can't get to work

2018-12-05 Thread Rookies DJ
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",

Re: Why I can't pass anything to my html? Django 2.1

2018-11-17 Thread Rookies DJ
*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

Re: Why I can't pass anything to my html? Django 2.1

2018-11-14 Thread Rookies DJ
y 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: >>>> >&

Re: Why I can't pass anything to my html? Django 2.1

2018-11-13 Thread Rookies DJ
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. > > On Tue, Nov 13, 201

Re: Why I can't pass anything to my html? Django 2.1

2018-11-13 Thread Rookies DJ
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':

Why I can't pass anything to my html? Django 2.1

2018-11-12 Thread Rookies DJ
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