Refactor: replace url() with path() for Django routes

Update URL generation to use path() instead of url(),
aligning with Django 4.x where url() is deprecated.
This commit is contained in:
Infinyte Solutions 2026-01-06 13:07:23 -05:00 committed by GitHub
parent 2e8d9d5e8e
commit a0f4b9ac0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ class pluginInstaller:
for items in data:
if items.find("manageservices") > -1:
writeToFile.writelines(items)
writeToFile.writelines(" url(r'^" + pluginName + "/',include('" + pluginName + ".urls')),\n")
writeToFile.writelines(" path("pluginName + "/',include('" + pluginName + ".urls')),\n")
else:
writeToFile.writelines(items)
@ -366,4 +366,4 @@ def main():
pluginInstaller.removePlugin(args.pluginName)
if __name__ == "__main__":
main()
main()