I am trying to write a program by running Django using the manage.py runningerver ip: port file in my Linux box as a non-root user. My first goal is that if the user enters the URL in the browser http: // ip: port , he should display something or welcome content.
So, I changed my mysite / url.py like this:
urlpatterns = patterns('', ('', ''), (r'^admin/', include(admin.site.urls)), )
python manage.py runningerver: starts and starts normally, but in the browser I get the following exception:
Exception type: Incorrect Configured Exceptional value: empty name for the URL pattern view is not allowed (for the pattern '')
So, how can you build a url like this:
www.google.com www.mail.yahoo.com www.mysite.com
Thanks in advance
source share