Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nathan R Lapierre
advisor
Commits
4a73fd34
Commit
4a73fd34
authored
Dec 08, 2013
by
Daniel W Bond
Browse files
runsever now works :-P
parent
2ef40a81
Changes
8
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
4a73fd34
...
...
@@ -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.
...
...
advisor/settings/settings.py
View file @
4a73fd34
...
...
@@ -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/'
advisor/settings/settings.pyc
View file @
4a73fd34
No preview for this file type
advisor/settings/urls.py
View file @
4a73fd34
...
...
@@ -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'
)),
)
advisor/templates/layout/base.html
→
advisor/templates/layout
s
/base.html
View file @
4a73fd34
File moved
advisor/templates/layout/footer.html
→
advisor/templates/layout
s
/footer.html
View file @
4a73fd34
File moved
advisor/templates/layout/navbar.html
→
advisor/templates/layout
s
/navbar.html
View file @
4a73fd34
File moved
advisor/trajectories/views.py
View file @
4a73fd34
...
...
@@ -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
)
possib
i
lity
=
allPrereqCoreq
(
course
,
remainingReqCourses
)
nextCourses
.
append
(
possib
i
lity
)
return
nextCourses
# how does one deal with "you have to take the coreq at the same time?"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment