Mirco
Shyam
Anonymous
i have header.html in (project)/templates/(project)/ i how to render this file in app
Mirco
Anonymous
how to make a nav active
Anonymous
while i am miving from from one app to another
Anonymous
i am very lazy man
Anonymous
thats why using django
Mirco
Yup, but here is not Google
So first make a search, try to understand
When you are so stuck , write here and we will help ya
Anonymous
yo man
Yegor
Hi fellows, how can I set inf cookie age for max_age param?
Anonymous
hey i have used this but it not working
Anonymous
{% if activate == 'home' %}active{% endif %}
Mirco
Share your code using pastebin
Happy
Ragul
Hi
Happy
Mirco
Happy
Anonymous
us have alresdy used it but is not working
Anonymous
listin
Anonymous
how do i share my code here
007
Use dpaste.de
Anonymous
https://dpaste.de/vAuU
Anonymous
yes
Anonymous
now you can review it
Anonymous
while i am useing with I throw an error message in my consol
Anonymous
'with' expected at least one variable assignment
Anonymous
what does it mean
Happy
<a class="nav-link {% if url_name == 'home %}active{% endif %}" href="{% url 'home:index' %}">Home</a>
it's wrong.
007
Use addClass Js Method to assigning class to div
Anonymous
Anonymous
Happy
https://docs.djangoproject.com/en/2.2/ref/templates/builtins/#if
Happy
'home ??
Happy
maybe it's a typo?
007
Here you want check url_check variable value is equal to 'home' or not, if value is 'home' then that add 'home' class to style , am i right ?
Happy
Anonymous
pvs
How to get last saved object?
Happy
review 12th line.
Anonymous
yes
007
Anonymous
Anonymous
is it required
Anonymous
still not working
Happy
What does the stack show?
Anonymous
this is not working
Anonymous
i dont know why even i have used around 5-6 methids
Happy
Anonymous
home tab is not getting active
Anonymous
remain things are working fine
Happy
<a class="nav-link {% if url_name == "home" %}active{% endif %}" href="{% url 'home:index' %}">{{ url_name }}</a>
what's home tab show?
pvs
Anonymous
Anonymous
Not working
Anonymous
No url is not null
Anonymous
I have checked
Mirco
Anonymous
hey
Anonymous
i am trying to makemigrations
Anonymous
but it shows me No change detected
Mirco
And obviously if you have made changes or create models
Anonymous
yes i have rebuld the model
Anonymous
it makemigration command is running fine
Anonymous
but when i start migrate
Anonymous
ii shows no changes detcted
Anonymous
even i have deleted the table from databse that created before
Mirco
Do you have the app into INSTALLED_APPS ?
Anonymous
yes already installed
Anonymous
I have reset my migrations
Anonymous
now it is working fine