Django error after Upgrade #1295

Closed
opened 2025-12-29 16:31:09 +01:00 by adam · 2 comments
Owner

Originally created by @davelaramee-ssense on GitHub (Oct 13, 2017).

Issue type

[ ] Feature request
[X ] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.1
  • Running Ubuntu 16.04
  • Postgresql 9.5

Description

Hi!

After upgrading netbox to 2.2.1 following the steps from readthedocs.io I get the following error and the pages won't load:
See attachment for screenshot.
screenshot 2017-10-12 23 30 07

<class 'django.template.exceptions.TemplateSyntaxError'>
Invalid filter: 'startswith'

It seems I may have screwed up something but sadly I have no experience with django/python so I do not know what I should look for, I was hoping you guys could help me out.

Thanks in advance!

Originally created by @davelaramee-ssense on GitHub (Oct 13, 2017). <!-- Before opening a new issue, please search through the existing issues to see if your topic has already been addressed. Note that you may need to remove the "is:open" filter from the search bar to include closed issues. Check the appropriate type for your issue below by placing an x between the brackets. If none of the below apply, please raise your issue for discussion on our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please note that issues which do not fall under any of the below categories will be closed. ---> ### Issue type [ ] Feature request <!-- Requesting the implementation of a new feature --> [X ] Bug report <!-- Reporting unexpected or erroneous behavior --> [ ] Documentation <!-- Proposing a modification to the documentation --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) --> ### Environment * Python version: 3.5.2<!-- Example: 3.5.4 --> * NetBox version: 2.2.1 <!-- Example: 2.1.3 --> * Running Ubuntu 16.04 * Postgresql 9.5 ### Description Hi! After upgrading netbox to 2.2.1 following the steps from readthedocs.io I get the following error and the pages won't load: See attachment for screenshot. <img width="656" alt="screenshot 2017-10-12 23 30 07" src="https://user-images.githubusercontent.com/29760840/31529143-709becbe-afa5-11e7-9458-4049b317e1df.png"> <class 'django.template.exceptions.TemplateSyntaxError'> Invalid filter: 'startswith' It seems I may have screwed up something but sadly I have no experience with django/python so I do not know what I should look for, I was hoping you guys could help me out. Thanks in advance! <!-- BUG REPORTS must include: * A list of the steps needed to reproduce the bug * A description of the expected behavior * Any relevant error messages (screenshots may also help) FEATURE REQUESTS must include: * A detailed description of the proposed functionality * A use case for the new feature * A rough description of any necessary changes to the database schema * Any relevant third-party libraries which would be needed -->
adam closed this issue 2025-12-29 16:31:09 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 13, 2017):

I can't find any instance of that filter being used in the code base. Have you made any modifications to the code? And could you please provide a full stack trace of the error (you can set DEBUG=True in the configuration to get this).

@jeremystretch commented on GitHub (Oct 13, 2017): I can't find any instance of that filter being used in the code base. Have you made any modifications to the code? And could you please provide a full stack trace of the error (you can set `DEBUG=True` in the configuration to get this).
Author
Owner

@davelaramee-ssense commented on GitHub (Oct 13, 2017):

:)

Indeed I had the title changed and found out a trailing <<<<<<HEAD in templates/_base.html
I fixed that and your awesome product is back online!

Thanks Jeremy for your very fast answer, and also thanks for your networking blog, you've taught me quite a few things!

@davelaramee-ssense commented on GitHub (Oct 13, 2017): :) Indeed I had the title changed and found out a trailing <<<<<<HEAD in templates/_base.html I fixed that and your awesome product is back online! Thanks Jeremy for your very fast answer, and also thanks for your networking blog, you've taught me quite a few things!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1295