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

  • Home
  • SEARCH
  • 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 9253065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:07:13+00:00 2026-06-18T11:07:13+00:00

In my application data about a entry is displayed detailing their information. You can

  • 0

In my application data about a entry is displayed detailing their information. You can navigate between the entries via a hyperlink.
So far the code:

<a href="/parks/{{ park.id }} ">{{park.name}}</a>

Has been suffient in dealing with this. The id is captured in the urls.py and onto views.py

The problem I now face is to deal with my ‘location’ entry. Examples of locations are ‘Europe, UK’, ‘USA, New York’.
I know that:

<a href="/parks/{{ park.location }} ">{{park.location}}</a>

with:

url(r'^location/(?P<park_location>\d+)$', Location_Main),

won’t work, due to the spaces and commas etc.

How would I resolve this?
I would also like the ‘location’ view and ‘location’ url to handle the location of a parent company say ()

Thanks in advance

  • 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-18T11:07:15+00:00Added an answer on June 18, 2026 at 11:07 am

    Why not pass pass park.id and then in view get the park object and then get its location:

    the url:

    url(r'^location/(?P<park_id>\d+)$', Location_Main, name="park_location"),
    

    the template:

    <a href="{% url park_location park.id %}">{{park.location}}</a>
    

    the view:

    def Location_Main(request, park_id):
        park = get_object_or_404(Park, pk=park_id)
        location = park.location
    

    Alternatively send the location as GET parameter:

    the url:

    url(r'^location/$', Location_Main, name="park_location"),
    

    the template:

    <a href="{% url park_location %}?location={{park.location}}">{{park.location}}</a>
    

    the view:

    def Location_Main(request):
        location = request.GET.get('location')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Similar to this question asking about relatively light-weight data entry / editor application development,
By default settings are stored at: C:\Documents and Settings\\Local Settings\Application Data\<Project Name> How can
I'm writing a .NET web application in which administrators can customize the various data
I have an application that can not afford to lose data, so Postgresql is
I need to bulk load a large amount of data (about 7.000.000 entries) into
I have a multi-step data entry form in my ASP.NET MVC application. When the
I am writing a data entry application and am having problems dealing with add
I have a winform application that handles some data entry and billing. I'd like
I'm trying to create a simple data entry application for the Mac (not iPhone).
I'm planning a WPF application which will be able to create dynamic data entry

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.