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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:01:35+00:00 2026-06-08T06:01:35+00:00

Hi I am a beginner with django and all I have left to deploy

  • 0

Hi I am a beginner with django and all I have left to deploy the site is a stupid url conf problem. I have a simple site with 5 pages that are home,contact,about,reasons, and benefits. Simple right, url conf will be (r'^home/$',index), and as follows for the rest of the pages. Here is the problem when I go to the home page /home/ fine. Now go to any other page on the navigation like /reasons/ or /about/,they dont get called like that, instead get called /home/reasons/ or /home/about/. Even more so if from /home/about/ I click back to home the call is /home/about/home. As you see this goes on forever. How can it be where every request to a page is a simple /about/ or /contact/ instead of /home/contact or /home/about.

I had defined one that went /home/contact/home/home/about/reasons/home I cant possibly put all those in urlconf

Note: this is all being ran on django dev server

  • 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-08T06:01:38+00:00Added an answer on June 8, 2026 at 6:01 am

    If your urls look like this:

    (r'^home/$', myapp.views.index)
    

    then use it in template as:

    <a href="{% url myapp.views.index %}>some text</a>
    

    to avoid wrong interpretation. Django will do the rest.

    For Django 1.5 use

    <a href="{% url 'myapp.views.index' %}>some text</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a beginner of Django. Now, I have a problem of getting templates.
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
Sorry, a beginner's question: I have a very simple function in my Django application
Hello I'm a Django Beginner. I have a calendar that I want to be
A python/django beginner's question: I have a datetime object (drive_date), a time object (start_time)
I'm a Beginner, trying to build a django project that runs on Google App
Beginner iOS dev here. I have a problem in my array. Im making an
Beginner in Android development. My code crashes. I have made a simple Java method
I am a total beginner to programming and Django so I'd appreciate help that
Beginner to assembly programming for x86. I have a simple asm file which I

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.