Commit 4a73fd34 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

runsever now works :-P

parent 2ef40a81
......@@ -40,8 +40,7 @@ Type the following commands in your terminal (if you're on Windows, [Cygwin](htt
``pip install -r requirements.txt``
``create the database``
``python manage.py syncdb`` (the username and password are just for your machine-- you can set it as merely "me" and "password" if you like)
``python manage.py schemamigration --initial``
``python manage.py migrate trajectories``
``python manage.py schemamigration trajectories --initial``
``python manage.py runserver``
Next, open your web broswer of choice, and go to http//:127.0.0.1:8000/. You won't see too much. You'll need to add the courses and programs to the database.
......
......@@ -12,7 +12,6 @@ https://docs.djangoproject.com/en/1.6/ref/settings/
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
......@@ -26,6 +25,30 @@ TEMPLATE_DEBUG = True
ALLOWED_HOSTS = []
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.6/howto/static-files/
STATIC_ROOT = ''
STATIC_URL = '/static/'
STATICFILES_DIRS = (
'static',
)
STATICFILE_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
)
TEMPLATE_DIRS = (
'templates',
)
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
# Application definition
......@@ -69,7 +92,7 @@ DATABASES = {
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
TIME_ZONE = 'America/New_York'
USE_I18N = True
......@@ -78,7 +101,4 @@ USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.6/howto/static-files/
STATIC_URL = '/static/'
......@@ -31,5 +31,5 @@ urlpatterns = patterns('trajectories.views',
url(r'^$', 'about', name = 'about'),
url(r'^admin/', include(admin.site.urls)),
url(r'^admin/doc/' include('django.contrib.admindocs.urls')),
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
)
......@@ -32,8 +32,8 @@ def nextCourses(coursesTaken, remainingReqCourses):
elif course.coreq not in coursesTaken:
nextCourses.append(course)
else:
possiblity = allPrereqCoreq(course, remainingReqCourses)
append nextCourses.append(possiblity)
possibility = allPrereqCoreq(course, remainingReqCourses)
nextCourses.append(possibility)
return nextCourses
# how does one deal with "you have to take the coreq at the same time?"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment