Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
steering
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
steering
Commits
f44cf658
Commit
f44cf658
authored
11 years ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://github.com/nnrcschmdt/helsinki
parents
ff12c7be
14fc181b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
LICENSE
+1
-1
1 addition, 1 deletion
LICENSE
README.rst
+10
-7
10 additions, 7 deletions
README.rst
program/utils.py
+7
-3
7 additions, 3 deletions
program/utils.py
pv/templates/program/show_detail.html
+4
-1
4 additions, 1 deletion
pv/templates/program/show_detail.html
with
22 additions
and
12 deletions
LICENSE
+
1
−
1
View file @
f44cf658
Copyright (c) 2011, Ernesto Rico-Schmidt
Copyright (c) 2011
-2014
, Ernesto Rico-Schmidt
All rights reserved.
Redistribution and use in source and binary forms, with or without
...
...
This diff is collapsed.
Click to expand it.
README.rst
+
10
−
7
View file @
f44cf658
...
...
@@ -10,30 +10,33 @@ To get setup you must have the following installed:
* Python 2.7
* virtualenv 1.11
Setting up the environment
--------------------------
Create a virtual environment where the dependencies will live::
$ virtualenv -
-no-site-packages helsinki
$ source
helsinki
/bin/activate
(
helsinki
)$
$ virtualenv -
p python2.7 python
$ source
python
/bin/activate
(
python
)$
Install the project dependencies::
(helsinki)$ pip install -r requirements.txt
(python)$ pip install -r requirements.txt
Setting up the database
-----------------------
By default the project is set up to run on a SQLite database. You can run::
(helsinki)$ python manage.py syncdb
(helsinki)$ python manage.py loaddata program/fixtures/*.yaml
(python)$ python manage.py syncdb
(python)$ python manage.py loaddata program/fixtures/*.yaml
Running a web server
--------------------
In development you should run::
(
helsinki
)$ python manage.py runserver
(
python
)$ python manage.py runserver
This diff is collapsed.
Click to expand it.
program/utils.py
+
7
−
3
View file @
f44cf658
...
...
@@ -3,7 +3,11 @@ from django.conf import settings
import
json
import
urllib
def
get_automation_id_choices
():
shows_list
=
json
.
load
(
urllib
.
urlopen
(
settings
.
AUTOMATION_BASE_URL
))[
'
shows
'
]
shows
=
[(
s
[
'
id
'
],
s
[
'
title
'
])
for
s
in
shows_list
]
return
shows
\ No newline at end of file
base_url
=
getattr
(
settings
,
'
AUTOMATION_BASE_URL
'
,
None
)
shows
=
[]
if
base_url
:
shows_list
=
json
.
load
(
urllib
.
urlopen
(
base_url
))[
'
shows
'
]
shows
=
[(
s
[
'
id
'
],
s
[
'
title
'
])
for
s
in
shows_list
]
return
shows
This diff is collapsed.
Click to expand it.
pv/templates/program/show_detail.html
+
4
−
1
View file @
f44cf658
...
...
@@ -67,7 +67,10 @@
<h2>
Sendungstipps
</h2>
<ul
class=
"recommendations-list"
>
{% for note in show.notes.all reversed %}
<li><a
href=
"{% url timeslot-detail note.timeslot.id %}"
title=
"{{ note.title }}"
>
{{ note.start|date:"d. M Y" }}:
</a>
{{ note.title }}
</li>
<li>
<a
href=
"{% url timeslot-detail note.timeslot.id %}"
title=
"{{ note.title }}"
>
{{ note.start|date:"d. M Y" }}:
</a>
<div
class=
"title"
>
{{ note.title }}
</div>
</li>
{% endfor %}
</ul>
{% endif %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment