hi, i have a name url pattern:
url( r'^login/', 'login', {'template_name': "config/templates/ login.html"},name="config-login"), this works perfectly in the template for {% url config_login %} but wouldn't it hurt the dry principle to write the login-url in the settings.py? right, so i want to do something like this: from django.db.models import permalink LOGIN_URL = permalink("config-login",()) but the first line raises an import error (don't know if i can use permalink just as url with a named url pattern): ./manage.py runserver Error: Can't find the file 'settings.py' in the directory containing './manage.py'. It appears you've customized things. You'll have to run django-admin.py, passing it your settings module. (If the file settings.py does indeed exist, it's causing an ImportError somehow.) tanks for your help! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---