Re: URL Concatenation Issue

2018-06-01 Thread Melvyn Sopacua
On vrijdag 1 juni 2018 00:14:32 CEST John Regis, Jr. wrote:

> I have *href="about/"*. Also tried *href="./about/"* and same result.

Please revisit this section in the tutorial[1]. If you haven't done the 
tutorial at all, 
please do it before trying a project on your own. You are missing a few 
fundamentals the tutorial touches upon, such as the basics of URLs and URL 
paths[2].
-- 
Melvyn Sopacua


[1] 
https://docs.djangoproject.com/en/2.0/intro/tutorial03/#removing-hardcoded-urls-in-templates
[2] https://stackoverflow.com/a/904066/1600649

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/138901869.PMmXthNE3q%40fritzbook.
For more options, visit https://groups.google.com/d/optout.


Re: URL Concatenation Issue

2018-05-31 Thread John Regis, Jr.
In blog/urls.py I have my my homepage mapped to my view.index. Are you
saying to also map view.about as well? Also, when you say namespace are you
saying to create a dictionary and include my index (blog) and about pages
as values? New to Python so I'm trying to still wrap my head around the
utilization of python dictionaries.

On Wed, May 30, 2018 at 10:42 PM, Aditya Singh 
wrote:

> For this you have provide an app inside your urls and refer to it as
> home:about where home is the app name and about is the page to be rendered.
> Also provide namespace in the urls so that the url is linked to the app
> name.
> Kind Regards,
> Aditya
>
> On Thu, May 31, 2018, 7:54 AM Spence Patrick 
> wrote:
>
>> Is your link tag href="./about" or href="/about/"
>>
>> On Wed, May 30, 2018, 19:14  wrote:
>>
>>> Hello,
>>>
>>> I'm debugging an issue that I'm having with my URL patterns. In my HTML
>>> I have an "about me" page that is linking to an about.html file in my
>>> templates/blog/ directory. When I load the homepage and click on the "about
>>> me" link than "domain.com/about/" loads, which matches the URL pattern
>>> in my blog/urls.py file, and the page renders perfectly fine.
>>>
>>> However, while on the "about me" page I can't link to any other page
>>> because the URL pattern starts to concatenate instead of overwrite (if that
>>> makes any sense). For example, if I click on "about me" again than Django
>>> tries to load domain.com/about/about and I get an error.
>>>
>>> I'm using a python 3.5.2 venv and I'm running Django 2.0.5. I'm new to
>>> programming by the way (to include Python, Django, HTML/CSS).
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/django-users/1213b3f9-c74b-4af9-b585-61f2423720f0%
>>> 40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/CAD6-5Ch7%3DSTQGPdPg3iU%3Dvy2H1GMqcFnycBqb5bquXGDDV6ZB
>> A%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/django-users/UB1iqDXjy3g/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAEPfumjqtuz9bTfh%2Bfk%3D8iFYOKUQwSGpQqwwuyqX%2BQ%
> 3DABgL3%3Dw%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BtE7VRZfAQo58YojBDg0WShaM3h2PBu3B5-VHKyXKP870HYkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: URL Concatenation Issue

2018-05-31 Thread John Regis, Jr.
I have *href="about/"*. Also tried *href="./about/"* and same result.

On Wed, May 30, 2018 at 10:23 PM, Spence Patrick  wrote:

> Is your link tag href="./about" or href="/about/"
>
> On Wed, May 30, 2018, 19:14  wrote:
>
>> Hello,
>>
>> I'm debugging an issue that I'm having with my URL patterns. In my HTML I
>> have an "about me" page that is linking to an about.html file in my
>> templates/blog/ directory. When I load the homepage and click on the "about
>> me" link than "domain.com/about/" loads, which matches the URL pattern
>> in my blog/urls.py file, and the page renders perfectly fine.
>>
>> However, while on the "about me" page I can't link to any other page
>> because the URL pattern starts to concatenate instead of overwrite (if that
>> makes any sense). For example, if I click on "about me" again than Django
>> tries to load domain.com/about/about and I get an error.
>>
>> I'm using a python 3.5.2 venv and I'm running Django 2.0.5. I'm new to
>> programming by the way (to include Python, Django, HTML/CSS).
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/1213b3f9-c74b-4af9-b585-61f2423720f0%
>> 40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/django-users/UB1iqDXjy3g/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAD6-5Ch7%3DSTQGPdPg3iU%3Dvy2H1GMqcFnycBqb5bquXGDDV6ZB
> A%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BtE7VRQvg2_fir6merUXc1dzzMnupdnbBypTQyguwErLycuFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: URL Concatenation Issue

2018-05-30 Thread Aditya Singh
For this you have provide an app inside your urls and refer to it as
home:about where home is the app name and about is the page to be rendered.
Also provide namespace in the urls so that the url is linked to the app
name.
Kind Regards,
Aditya

On Thu, May 31, 2018, 7:54 AM Spence Patrick 
wrote:

> Is your link tag href="./about" or href="/about/"
>
> On Wed, May 30, 2018, 19:14  wrote:
>
>> Hello,
>>
>> I'm debugging an issue that I'm having with my URL patterns. In my HTML I
>> have an "about me" page that is linking to an about.html file in my
>> templates/blog/ directory. When I load the homepage and click on the "about
>> me" link than "domain.com/about/" loads, which matches the URL pattern
>> in my blog/urls.py file, and the page renders perfectly fine.
>>
>> However, while on the "about me" page I can't link to any other page
>> because the URL pattern starts to concatenate instead of overwrite (if that
>> makes any sense). For example, if I click on "about me" again than Django
>> tries to load domain.com/about/about and I get an error.
>>
>> I'm using a python 3.5.2 venv and I'm running Django 2.0.5. I'm new to
>> programming by the way (to include Python, Django, HTML/CSS).
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/1213b3f9-c74b-4af9-b585-61f2423720f0%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAD6-5Ch7%3DSTQGPdPg3iU%3Dvy2H1GMqcFnycBqb5bquXGDDV6ZBA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEPfumjqtuz9bTfh%2Bfk%3D8iFYOKUQwSGpQqwwuyqX%2BQ%3DABgL3%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: URL Concatenation Issue

2018-05-30 Thread Spence Patrick
Is your link tag href="./about" or href="/about/"

On Wed, May 30, 2018, 19:14  wrote:

> Hello,
>
> I'm debugging an issue that I'm having with my URL patterns. In my HTML I
> have an "about me" page that is linking to an about.html file in my
> templates/blog/ directory. When I load the homepage and click on the "about
> me" link than "domain.com/about/" loads, which matches the URL pattern in
> my blog/urls.py file, and the page renders perfectly fine.
>
> However, while on the "about me" page I can't link to any other page
> because the URL pattern starts to concatenate instead of overwrite (if that
> makes any sense). For example, if I click on "about me" again than Django
> tries to load domain.com/about/about and I get an error.
>
> I'm using a python 3.5.2 venv and I'm running Django 2.0.5. I'm new to
> programming by the way (to include Python, Django, HTML/CSS).
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1213b3f9-c74b-4af9-b585-61f2423720f0%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD6-5Ch7%3DSTQGPdPg3iU%3Dvy2H1GMqcFnycBqb5bquXGDDV6ZBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


URL Concatenation Issue

2018-05-30 Thread johnregis021
Hello,

I'm debugging an issue that I'm having with my URL patterns. In my HTML I 
have an "about me" page that is linking to an about.html file in my 
templates/blog/ directory. When I load the homepage and click on the "about 
me" link than "domain.com/about/" loads, which matches the URL pattern in 
my blog/urls.py file, and the page renders perfectly fine.

However, while on the "about me" page I can't link to any other page 
because the URL pattern starts to concatenate instead of overwrite (if that 
makes any sense). For example, if I click on "about me" again than Django 
tries to load domain.com/about/about and I get an error.

I'm using a python 3.5.2 venv and I'm running Django 2.0.5. I'm new to 
programming by the way (to include Python, Django, HTML/CSS).

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1213b3f9-c74b-4af9-b585-61f2423720f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.