Re: Link does not work correctly

2019-03-24 Thread Amirat A
Hey! so i viewed your code, and on your about page you have this: Register (i found this here : recetas/greenf/greenfapp/templates/greenfapp/base.html) but if you change it to what you suggested it should work perfectly fine : Register hope i could help? On Tuesday, 12 March 2019

Re: Error in Django url mapping

2019-03-24 Thread omar ahmed
hello ... your code is good but you forgot to put comma after second path in urls.py urlpatterns = [ path('admin/', admin.site.urls), path('first_app/', include('first_app.urls')), ] On Saturday, March 23, 2019 at 6:08:24 PM UTC+2, The Aryas wrote: > > Hey Guys, I am facing problem

Re: How to filter 'Invalid HTTP_HOST header ...' errors

2019-03-24 Thread Mike Dewhirst
On 24/03/2019 9:28 pm, Jani Tiainen wrote: Hi. Usually HTTP_HOST should be generated from your frontend http server (nginx, apache or similar) and it shouldn't change randomly. If it does it's indication that someone actually had bypassed your http server and managed to call django directly.

RE: Error in Django url mapping

2019-03-24 Thread Thaddeaus Iorbee
In your urls.py first_app, change 'index' to ''. That is empty string. 127.0.0.1:8000/first_app That's all you need. It should work. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

RE: Error in Django url mapping

2019-03-24 Thread Thaddeaus Iorbee
Sorry, it should be first_project -- 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

Re: How to filter 'Invalid HTTP_HOST header ...' errors

2019-03-24 Thread Jani Tiainen
Hi. Usually HTTP_HOST should be generated from your frontend http server (nginx, apache or similar) and it shouldn't change randomly. If it does it's indication that someone actually had bypassed your http server and managed to call django directly. On Sun, Mar 24, 2019 at 2:48 AM Mike Dewhirst