Changeset afc5348 for asadb/urls.py


Ignore:
Timestamp:
Feb 8, 2013, 4:44:17 AM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
3cb9b1e
Parents:
8124413
git-author:
Alex Dehnert <adehnert@…> (02/08/13 04:44:17)
git-committer:
Alex Dehnert <adehnert@…> (02/08/13 04:44:17)
Message:

Import settings from django.conf (ASA-#126)

For some reason, importing the settings module directly is discouraged, and you
should instead use the settings object from django.conf (see
https://docs.djangoproject.com/en/dev/topics/settings/#using-settings-in-python-code).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/urls.py

    rde2f0ac rafc5348  
     1from django.conf import settings
    12from django.conf.urls.defaults import *
    23from django.contrib.auth.views import login, logout
     
    67from django.contrib import admin
    78admin.autodiscover()
    8 
    9 import settings
    109
    1110import groups.urls
Note: See TracChangeset for help on using the changeset viewer.