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 8067477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:18:45+00:00 2026-06-05T12:18:45+00:00

For example: using the module registration with templates in templates/registration and an url.py including:

  • 0

For example:
using the module registration with templates in templates/registration and
an url.py including:

url(r'^accounts/', include('registration.backends.default.urls'))

what would be the best way to address the registration link: /accounts/register/ without hardcoding it?

but in general, how do I refer an app (and eventually the views) and not use an hard coded URL?

I have seen once a dedicated function but I am not sure.

  • 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-06-05T12:18:47+00:00Added an answer on June 5, 2026 at 12:18 pm

    Inside your views and other Python modules you can use the reverse function. https://docs.djangoproject.com/en/1.4/topics/http/urls/#reverse

    In the template you would use the url template tag. https://docs.djangoproject.com/en/1.4/ref/templates/builtins/#url

    It helps to give your url patterns names to make this reversing as easy as possible. https://docs.djangoproject.com/en/1.4/topics/http/urls/#id2 The included url patterns in django-registration all have names that you can reference.

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

Sidebar

Related Questions

I'm trying to work out how to load a module using example http://dojotoolkit.org/reference-guide/dojo/registerModulePath.html I
I have a website, lets say: http://www.example.com/ I'm using rewrite module, but I have
I am looking for some example code using Qt and it's SQL module with
Can someone please provide an example of using set_bound() method from Test::MockObject module? Can
I am using drupal 7 and entity_registration module ( registration-7.x-1.0-alpha5) for event registration. There
I installed the Statistics::Descriptive module using cpan then test the example: use Statistics::Descriptive; $stat
For example I am using following URLs for user profile/dashboard: example.com/person/person/profile example.com/person/person/dashboard Where person
I've been using javascript module pattern for while. I showed an example of a
Can someone point me to an example of using Akka Camel integration module -
I am using the Borg pattern with mutual inclusion of modules. See the example

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.