Discussion:
URL path not working with Django ver 2.1.2
Ben Hamlitsch
2018-11-23 01:22:58 UTC
Permalink
This is the message I get when I run python manage.py runserver

[image: Screen Shot 2018-11-22 at 7.18.58 PM.png]


This is my setup in Atom


[image: Screen Shot 2018-11-22 at 7.22.10 PM.png]


ANY help you can provide much appreciated.
--
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+***@googlegroups.com.
To post to this group, send email to django-***@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/11324094-eea3-488c-b8dd-9e0cc1d38262%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yavin Aalto Arba
2018-11-23 07:30:38 UTC
Permalink
Path is not using regular expressions. Use empty quotes and it should work.
Post by Ben Hamlitsch
This is the message I get when I run python manage.py runserver
[image: Screen Shot 2018-11-22 at 7.18.58 PM.png]
This is my setup in Atom
[image: Screen Shot 2018-11-22 at 7.22.10 PM.png]
ANY help you can provide much appreciated.
--
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
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/11324094-eea3-488c-b8dd-9e0cc1d38262%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/11324094-eea3-488c-b8dd-9e0cc1d38262%40googlegroups.com?utm_medium=email&utm_source=footer>
.
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+***@googlegroups.com.
To post to this group, send email to django-***@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%2B%2Be-ZUdOsZRJwJwikmbMN-EzTuY9H%2BOf61XpWGXquLgpX_L%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
gordon nchy
2018-11-23 08:12:48 UTC
Permalink
in your url u tried to make use of regularexpression sign i.e ^$ so i
suggest u will have to make it a raw string in this way ( r'^$' ).


gnchy
Post by Yavin Aalto Arba
Path is not using regular expressions. Use empty quotes and it should work.
Post by Ben Hamlitsch
This is the message I get when I run python manage.py runserver
[image: Screen Shot 2018-11-22 at 7.18.58 PM.png]
This is my setup in Atom
[image: Screen Shot 2018-11-22 at 7.22.10 PM.png]
ANY help you can provide much appreciated.
--
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
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/11324094-eea3-488c-b8dd-9e0cc1d38262%
40googlegroups.com
<https://groups.google.com/d/msgid/django-users/11324094-eea3-488c-b8dd-9e0cc1d38262%40googlegroups.com?utm_medium=email&utm_source=footer>
.
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
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%2B%2Be-ZUdOsZRJwJwikmbMN-EzTuY9H%
2BOf61XpWGXquLgpX_L%3Dw%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CA%2B%2Be-ZUdOsZRJwJwikmbMN-EzTuY9H%2BOf61XpWGXquLgpX_L%3Dw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
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+***@googlegroups.com.
To post to this group, send email to django-***@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/CAEYkjC0Bw3woM0L3nTiPOfPeJ6Z3B7FyLpG6%2BNcbaB%2B3NaTR-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Jani Tiainen
2018-11-23 08:20:23 UTC
Permalink
Hi,

And if you want to still use old regular expressions you can use "re_path"
instead of "path".
Post by Ben Hamlitsch
This is the message I get when I run python manage.py runserver
[image: Screen Shot 2018-11-22 at 7.18.58 PM.png]
This is my setup in Atom
[image: Screen Shot 2018-11-22 at 7.22.10 PM.png]
ANY help you can provide much appreciated.
--
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
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/11324094-eea3-488c-b8dd-9e0cc1d38262%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/11324094-eea3-488c-b8dd-9e0cc1d38262%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...
--
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+***@googlegroups.com.
To post to this group, send email to django-***@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/CAHn91odfGEDdU4cYSQKp3ZV41WCQ_ZF0v8nTd7hf7LstcYNZag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Ben Hamlitsch
2018-11-23 13:03:22 UTC
Permalink
Excellent thank you very much for your help.

Ben Hamlitsch
Hi,
And if you want to still use old regular expressions you can use "re_path" instead of "path".
Post by Ben Hamlitsch
This is the message I get when I run python manage.py runserver
This is my setup in Atom
<Screen Shot 2018-11-22 at 7.22.10 PM.png>
ANY help you can provide much appreciated.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
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/11324094-eea3-488c-b8dd-9e0cc1d38262%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Jani Tiainen
- Well planned is half done, and a half done has been sufficient before...
--
You received this message because you are subscribed to the Google Groups "Django users" group.
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/CAHn91odfGEDdU4cYSQKp3ZV41WCQ_ZF0v8nTd7hf7LstcYNZag%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+***@googlegroups.com.
To post to this group, send email to django-***@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/36524A17-A455-4183-A833-FF9EA23EC968%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...