Discussion:
how to fix this problem using 2.1.3 version
Abba Haruna
2018-11-26 13:34:36 UTC
Permalink
if settings.DEBUG:
# urlpatterns += patterns('',
# ('media/(?P.*)',
# 'django.views.static.serve',
# {'document_root': settings.MEDIA_ROOT}))



this is the result

File "C:\Users\Abba\Desktop\rest_picker\restaurants\urls.py", line 22
if settings.DEBUG:
^
SyntaxError: invalid syntax
--
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/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yavin Aalto Arba
2018-11-26 13:47:12 UTC
Permalink
did you import settings?
Post by Abba Haruna
# urlpatterns += patterns('',
# ('media/(?P.*)',
# 'django.views.static.serve',
# {'document_root': settings.MEDIA_ROOT}))
this is the result
File "C:\Users\Abba\Desktop\rest_picker\restaurants\urls.py", line 22
^
SyntaxError: invalid syntax
--
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/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%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-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Abba Haruna
2018-11-26 22:47:12 UTC
Permalink
Yes lets me show you the code
Post by Yavin Aalto Arba
did you import settings?
Post by Abba Haruna
# urlpatterns += patterns('',
# ('media/(?P.*)',
# 'django.views.static.serve',
# {'document_root': settings.MEDIA_ROOT}))
this is the result
File "C:\Users\Abba\Desktop\rest_picker\restaurants\urls.py", line 22
^
SyntaxError: invalid syntax
--
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/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%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 a topic in the
Google Groups "Django users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/django-users/syLm4GpiFqg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
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-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CA%2B%2Be-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%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/CAL67j7HimVSAk%3DLzx8Lp-HjBfWtZXC5CTxie3p6TRrttZtT%3Dpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Abba Haruna
2018-11-26 22:48:25 UTC
Permalink
# from django.conf.urls import patterns, url
from django.conf.urls.static import static
from django.views.generic import ListView
from restaurants.models import Food
from django.conf import settings

urlpatterns = ('restaurants.views',
path('',ListView.as_view(model=Food, template_name='restaurants/index.html',
name='index'),
path('food/(?P&lt;food_id&gt;\d+)/',
'choose_town', name='choose_town'),
path('food/(?P&lt;food_id&gt;\d+)/town/(?P&lt;town_id&gt;\d+)/',
'choose_restaurant',
name='choose_restaurant'),
path('rest/(?P&lt;rest_id&gt;\d+)/',
'restaurant',
name='restaurant'),
path('(?P&lt;rest_id&gt;\d+)/vote/',
'vote',
name='vote'),
)


if settings.DEBUG:
urlpatterns += patterns('',
('media/(?P.*)',
'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}))
Post by Yavin Aalto Arba
did you import settings?
Post by Abba Haruna
# urlpatterns += patterns('',
# ('media/(?P.*)',
# 'django.views.static.serve',
# {'document_root': settings.MEDIA_ROOT}))
this is the result
File "C:\Users\Abba\Desktop\rest_picker\restaurants\urls.py", line 22
^
SyntaxError: invalid syntax
--
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/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%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 a topic in the
Google Groups "Django users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/django-users/syLm4GpiFqg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
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-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CA%2B%2Be-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%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/CAL67j7Gk5G0FKfMK3P7NX2PfrS7C_-88GE-5nRUm%2BtURcLtBqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Michal Petrucha
2018-11-26 13:53:24 UTC
Permalink
Post by Abba Haruna
# from django.conf.urls import patterns, url
from django.conf.urls.static import static
from django.views.generic import ListView
from restaurants.models import Food
from django.conf import settings
urlpatterns = ('restaurants.views',
path('',ListView.as_view(model=Food, template_name='restaurants/index.html',
name='index'),
You've got an unclosed parenthesis on the line above.
Post by Abba Haruna
'choose_town', name='choose_town'),
'choose_restaurant',
name='choose_restaurant'),
'restaurant',
name='restaurant'),
'vote',
name='vote'),
)
urlpatterns += patterns('',
('media/(?P.*)',
'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}))
Post by Yavin Aalto Arba
did you import settings?
Post by Abba Haruna
# urlpatterns += patterns('',
# ('media/(?P.*)',
# 'django.views.static.serve',
# {'document_root': settings.MEDIA_ROOT}))
this is the result
File "C:\Users\Abba\Desktop\rest_picker\restaurants\urls.py", line 22
^
SyntaxError: invalid syntax
--
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/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%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 a topic in the
Google Groups "Django users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/django-users/syLm4GpiFqg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
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-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CA%2B%2Be-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%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.
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/CAL67j7Gk5G0FKfMK3P7NX2PfrS7C_-88GE-5nRUm%2BtURcLtBqw%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/20181126135324.GK8269%40koniiiik.org.
For more options, visit https://groups.google.com/d/optout.
Abba Haruna
2018-11-26 23:01:25 UTC
Permalink
even if i close it is not working

On Mon, Nov 26, 2018 at 5:54 AM Michal Petrucha <
Post by Abba Haruna
Post by Abba Haruna
# from django.conf.urls import patterns, url
from django.conf.urls.static import static
from django.views.generic import ListView
from restaurants.models import Food
from django.conf import settings
urlpatterns = ('restaurants.views',
path('',ListView.as_view(model=Food,
template_name='restaurants/index.html',
Post by Abba Haruna
name='index'),
You've got an unclosed parenthesis on the line above.
Post by Abba Haruna
'choose_town', name='choose_town'),
'choose_restaurant',
name='choose_restaurant'),
'restaurant',
name='restaurant'),
'vote',
name='vote'),
)
urlpatterns += patterns('',
('media/(?P.*)',
'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}))
Post by Yavin Aalto Arba
did you import settings?
Post by Abba Haruna
# urlpatterns += patterns('',
# ('media/(?P.*)',
# 'django.views.static.serve',
# {'document_root': settings.MEDIA_ROOT}))
this is the result
File "C:\Users\Abba\Desktop\rest_picker\restaurants\urls.py", line 22
^
SyntaxError: invalid syntax
--
You received this message because you are subscribed to the Google
Groups
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
"Django users" group.
To unsubscribe from this group and stop receiving emails from it,
send an
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
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/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%40googlegroups.com
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
<
https://groups.google.com/d/msgid/django-users/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%40googlegroups.com?utm_medium=email&utm_source=footer
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
.
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/syLm4GpiFqg/unsubscribe
.
Post by Abba Haruna
Post by Yavin Aalto Arba
To unsubscribe from this group and all its topics, send an email to
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-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%40mail.gmail.com
Post by Abba Haruna
Post by Yavin Aalto Arba
<
https://groups.google.com/d/msgid/django-users/CA%2B%2Be-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%40mail.gmail.com?utm_medium=email&utm_source=footer
Post by Abba Haruna
Post by Yavin Aalto Arba
.
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.
Post by Abba Haruna
To unsubscribe from this group and stop receiving emails from it, send
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/CAL67j7Gk5G0FKfMK3P7NX2PfrS7C_-88GE-5nRUm%2BtURcLtBqw%40mail.gmail.com
.
Post by Abba Haruna
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/syLm4GpiFqg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
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/20181126135324.GK8269%40koniiiik.org
.
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/CAL67j7F01LfUrP-fgb-wyuUY7-ZjiGt-fUce_h9Wr%3DNRfV6OxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Yavin Aalto Arba
2018-11-26 14:34:42 UTC
Permalink
It's kinda all over the place.

1. conventions:
urlpatterns is a list not a tuple
2.
'restaurants.views', without include? what's this for?

3. You did not close the parenthesis correctly in the second item, here's
how its supposed to be written:

path('',ListView.as_view(model=Food,
template_name='restaurants/index.html', name='index'))


4.you are using path and instead of path_re
Post by Abba Haruna
even if i close it is not working
On Mon, Nov 26, 2018 at 5:54 AM Michal Petrucha <
Post by Abba Haruna
Post by Abba Haruna
# from django.conf.urls import patterns, url
from django.conf.urls.static import static
from django.views.generic import ListView
from restaurants.models import Food
from django.conf import settings
urlpatterns = ('restaurants.views',
path('',ListView.as_view(model=Food,
template_name='restaurants/index.html',
Post by Abba Haruna
name='index'),
You've got an unclosed parenthesis on the line above.
Post by Abba Haruna
'choose_town', name='choose_town'),
'choose_restaurant',
name='choose_restaurant'),
'restaurant',
name='restaurant'),
'vote',
name='vote'),
)
urlpatterns += patterns('',
('media/(?P.*)',
'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}))
Post by Yavin Aalto Arba
did you import settings?
Post by Abba Haruna
# urlpatterns += patterns('',
# ('media/(?P.*)',
# 'django.views.static.serve',
# {'document_root': settings.MEDIA_ROOT}))
this is the result
File "C:\Users\Abba\Desktop\rest_picker\restaurants\urls.py", line
22
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
^
SyntaxError: invalid syntax
--
You received this message because you are subscribed to the Google
Groups
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
"Django users" group.
To unsubscribe from this group and stop receiving emails from it,
send an
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
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/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%40googlegroups.com
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
<
https://groups.google.com/d/msgid/django-users/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%40googlegroups.com?utm_medium=email&utm_source=footer
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
.
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/syLm4GpiFqg/unsubscribe.
Post by Abba Haruna
Post by Yavin Aalto Arba
To unsubscribe from this group and all its topics, send an email to
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-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%40mail.gmail.com
Post by Abba Haruna
Post by Yavin Aalto Arba
<
https://groups.google.com/d/msgid/django-users/CA%2B%2Be-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%40mail.gmail.com?utm_medium=email&utm_source=footer
Post by Abba Haruna
Post by Yavin Aalto Arba
.
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.
Post by Abba Haruna
To unsubscribe from this group and stop receiving emails from it, send
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/CAL67j7Gk5G0FKfMK3P7NX2PfrS7C_-88GE-5nRUm%2BtURcLtBqw%40mail.gmail.com
.
Post by Abba Haruna
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/syLm4GpiFqg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
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/20181126135324.GK8269%40koniiiik.org
.
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/CAL67j7F01LfUrP-fgb-wyuUY7-ZjiGt-fUce_h9Wr%3DNRfV6OxQ%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CAL67j7F01LfUrP-fgb-wyuUY7-ZjiGt-fUce_h9Wr%3DNRfV6OxQ%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/CA%2B%2Be-ZXDd2%2BraNoy2_PbbJaPPLVtj7LA-gZdudQ6ReuiMWhJ5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Michal Petrucha
2018-11-26 14:42:36 UTC
Permalink
Post by Yavin Aalto Arba
It's kinda all over the place.
urlpatterns is a list not a tuple
2.
'restaurants.views', without include? what's this for?
3. You did not close the parenthesis correctly in the second item, here's
path('',ListView.as_view(model=Food,
template_name='restaurants/index.html', name='index'))
4.you are using path and instead of path_re
5. You should either escape the backslashes in your regular
expressions, or use raw string literals.
--
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/20181126144236.GL8269%40koniiiik.org.
For more options, visit https://groups.google.com/d/optout.
Abba Haruna
2018-11-27 04:31:19 UTC
Permalink
okay thank you lets me trying
Post by Yavin Aalto Arba
It's kinda all over the place.
urlpatterns is a list not a tuple
2.
'restaurants.views', without include? what's this for?
3. You did not close the parenthesis correctly in the second item, here's
path('',ListView.as_view(model=Food, template_name='restaurants/index.html', name='index'))
4.you are using path and instead of path_re
Post by Abba Haruna
even if i close it is not working
On Mon, Nov 26, 2018 at 5:54 AM Michal Petrucha <
Post by Abba Haruna
Post by Abba Haruna
# from django.conf.urls import patterns, url
from django.conf.urls.static import static
from django.views.generic import ListView
from restaurants.models import Food
from django.conf import settings
urlpatterns = ('restaurants.views',
path('',ListView.as_view(model=Food,
template_name='restaurants/index.html',
Post by Abba Haruna
name='index'),
You've got an unclosed parenthesis on the line above.
Post by Abba Haruna
'choose_town', name='choose_town'),
'choose_restaurant',
name='choose_restaurant'),
'restaurant',
name='restaurant'),
'vote',
name='vote'),
)
urlpatterns += patterns('',
('media/(?P.*)',
'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}))
Post by Yavin Aalto Arba
did you import settings?
Post by Abba Haruna
# urlpatterns += patterns('',
# ('media/(?P.*)',
# 'django.views.static.serve',
# {'document_root': settings.MEDIA_ROOT}))
this is the result
File "C:\Users\Abba\Desktop\rest_picker\restaurants\urls.py", line
22
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
^
SyntaxError: invalid syntax
--
You received this message because you are subscribed to the Google
Groups
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
"Django users" group.
To unsubscribe from this group and stop receiving emails from it,
send an
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
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/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%40googlegroups.com
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
<
https://groups.google.com/d/msgid/django-users/9f08ad47-6d28-44ef-ba8c-7bfbb9aca8be%40googlegroups.com?utm_medium=email&utm_source=footer
Post by Abba Haruna
Post by Yavin Aalto Arba
Post by Abba Haruna
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in
the
Post by Abba Haruna
Post by Yavin Aalto Arba
Google Groups "Django users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/django-users/syLm4GpiFqg/unsubscribe.
Post by Abba Haruna
Post by Yavin Aalto Arba
To unsubscribe from this group and all its topics, send an email to
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-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%40mail.gmail.com
Post by Abba Haruna
Post by Yavin Aalto Arba
<
https://groups.google.com/d/msgid/django-users/CA%2B%2Be-ZX%3DkfFRPBe_edkvQg1vD3F89FUrHfQ-JOKpR793zHS4qA%40mail.gmail.com?utm_medium=email&utm_source=footer
Post by Abba Haruna
Post by Yavin Aalto Arba
.
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.
Post by Abba Haruna
To unsubscribe from this group and stop receiving emails from it, send
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/CAL67j7Gk5G0FKfMK3P7NX2PfrS7C_-88GE-5nRUm%2BtURcLtBqw%40mail.gmail.com
.
Post by Abba Haruna
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/syLm4GpiFqg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
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/20181126135324.GK8269%40koniiiik.org
.
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/CAL67j7F01LfUrP-fgb-wyuUY7-ZjiGt-fUce_h9Wr%3DNRfV6OxQ%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CAL67j7F01LfUrP-fgb-wyuUY7-ZjiGt-fUce_h9Wr%3DNRfV6OxQ%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 a topic in the
Google Groups "Django users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/django-users/syLm4GpiFqg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
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-ZXDd2%2BraNoy2_PbbJaPPLVtj7LA-gZdudQ6ReuiMWhJ5Q%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CA%2B%2Be-ZXDd2%2BraNoy2_PbbJaPPLVtj7LA-gZdudQ6ReuiMWhJ5Q%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/CAL67j7FeahYT%3D7wVuT%2BomoPkRqcNiYOtiO0RdAbRo%3DRBVvjGow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...