I wish this help you My solution was to comment out urlpatterns defined in registration\auth_urls.py, and redefine them as a copy of urlpatterns defined in django.contrib.auth. Here's my auth_urls.py after the change:
URL patterns for the views included in ``django.contrib.auth``.
Including these URLs (via the ``include()`` directive) will set up the
following patterns based at whatever URL prefix they are included
* User login at ``login/``.
* User logout at ``logout/``.
* The two-step password change at ``password/change/`` and
* The four-step password reset at ``password/reset/``,
``password/reset/confirm/``, ``password/reset/complete/`` and
The default registration backend already has an ``include()`` for
these URLs, so under the default setup it is not necessary to manually
include these views. Other backends may or may not include them;
consult a specific backend's documentation for details.
from django.conf.urls.defaults import *
#from django.contrib.auth import views as auth_views
from django.contrib.auth import urls as auth_urls
urlpatterns = auth_urls.urlpatterns
Commented out, this is what caused my problems:
urlpatterns = patterns('',
Any of those help What django does is it use's the URLValidator to see if the url is valid or not. what you could is use the same validations which is present in django.core EDIT: For example lets say you have to validate if django official website with url https://www.djangoproject.com/, exists or not. the code would simply look like this:
from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
my_url_validator = URLValidator(verify_exists=True) #creates a URLValidator object with verify_exists.
my_url = "https://www.djangoproject.com/" #url to be verified
#check if url is valid :)
#not valid!! :_(
#fix: custom stuff to the rescue :)
Django release 1.5: 'url' requires a non-empty first argument. The syntax changed in Django 1.5
around this issue In my case, this was due to a conflict with the youtube-dl package having similarly-named classes, variables and methods as the django-compressor package. I was able to confirm this by "hacking" the names of the various tokens in both instances, resulting in an error argument 5: : expected LP_OVERLAPPED2 instance instead of pointer to OVERLAPPED3 I have removed the youtube-dl package from my environment for now as a temporary solution to getting this running in my local dev environment.