Skip to content

Commit

Permalink
Upgrade to Django 1.5
Browse files Browse the repository at this point in the history
Reorganise file layout.
  • Loading branch information
anthonyyoud committed Mar 12, 2013
1 parent fd4b334 commit 02d7ac0
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion accounts/urls.py
Expand Up @@ -25,7 +25,7 @@
from registration.views import activate
from accounts.views import register

import settings
from numbas import settings



Expand Down
17 changes: 6 additions & 11 deletions manage.py
@@ -1,14 +1,9 @@
#!/usr/bin/env python
from django.core.management import execute_manager
import imp
try:
imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__)
sys.exit(1)

import settings
import os, sys

if __name__ == "__main__":
execute_manager(settings)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "numbas.settings")

from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion urls.py → numbas/urls.py
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from django.conf.urls import *
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
import settings

Expand Down

0 comments on commit 02d7ac0

Please sign in to comment.