Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6329097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:35:17+00:00 2026-05-24T17:35:17+00:00

Hello I am trying to pass different urls from my site into a template.

  • 0

Hello I am trying to pass different urls from my site into a template.

I thought it would be done by using this in the template

{% url myappname.module.views.urlfunction %}

but that returns an error, saying that “Caught AttributeError while rendering: ‘str’ object has no attribute ‘regex'”

I am not sure what that means. I followed this example url template tag in django template

urlpatterns = patterns('',
url(r'^$', 'myappname.module.views.start'),

and this is what I have entered in my template

{% url myappname.module.views.start %}

I have also tried this url pattern and template combo to no avial:

urlpatterns = patterns('',
url(r'^$', 'myappname.module.views.start', name="home"),

{% url "home" %}

What am I doing wrong?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:35:17+00:00Added an answer on May 24, 2026 at 5:35 pm

    In last example instead of

    {% url "home" %}
    

    try

    {% url home %}
    

    without quotes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hello i am trying to load a list of filenames from a folder into
Hello I am trying to pass array data into the jquery dialog box and
Hello I am trying to pass in varrays from PHP to Oracle. I am
I am trying to pass the elements event into a JavaScript function click using
hello i am trying to pass a cookie from one page to another, and
This must be simple. I am trying to pass sub-element into a JSF component.
Hello am trying to update a column in my sql database using values from
Hello i am trying to create a const in python using this example found
hello i am trying to pass parameters from asp LinkButton to a sub routine
Im trying to pass some variables from the URL to the PHP script. Now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.