summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst11
-rw-r--r--helsinki.program/settings.py2
-rw-r--r--helsinki.program/urls_program.py6
-rw-r--r--helsinki.program/views.py2
-rw-r--r--setup.py33
5 files changed, 48 insertions, 6 deletions
diff --git a/README.rst b/README.rst
index 65cd260..cf67d4a 100644
--- a/README.rst
+++ b/README.rst
@@ -1,5 +1,8 @@
+Radio Helsinki Program Management
+=================================
+
Requirements
-============
+------------
- Django 1.3: http://pypi.python.org/pypi/Django/1.3
- PIL: http://pypi.python.org/pypi/PIL/1.1.6
@@ -7,3 +10,9 @@ Requirements
- PyYAML: http://pypi.python.org/pypi/PyYAML/3.09
- MySQL-python: http://pypi.python.org/pypi/MySQL-python/1.2.3
- django-haystack: http://pypi.python.org/pypi/django-haystack/1.1.0
+
+
+Author
+------
+Ernesto Rico-Schmidt
+Contributions: Johannes Raggam
diff --git a/helsinki.program/settings.py b/helsinki.program/settings.py
index ac4ad72..c5173a5 100644
--- a/helsinki.program/settings.py
+++ b/helsinki.program/settings.py
@@ -64,7 +64,7 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware',
)
-ROOT_URLCONF = 'helsinki.urls'
+ROOT_URLCONF = 'helsinki.program.urls'
TEMPLATE_DIRS = (
os.path.join(os.path.dirname(__file__), "templates"),
diff --git a/helsinki.program/urls_program.py b/helsinki.program/urls_program.py
index 637ad97..caa302b 100644
--- a/helsinki.program/urls_program.py
+++ b/helsinki.program/urls_program.py
@@ -2,8 +2,8 @@ from django.conf.urls.defaults import *
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
-from models import Host, Show, TimeSlot
-from views import CurrentShowView, DayScheduleView, RecommendationsView, ShowListView, TodayScheduleView, WeekScheduleView
+from helsinki.program.models import Host, Show, TimeSlot
+from helsinki.program.views import CurrentShowView, DayScheduleView, RecommendationsView, ShowListView, TodayScheduleView, WeekScheduleView
urlpatterns = patterns('',
('^$', TodayScheduleView.as_view()),
@@ -17,4 +17,4 @@ urlpatterns = patterns('',
('^shows/$', ShowListView.as_view()),
url('^show/(?P<slug>[\w-]+)/$', DetailView.as_view(model=Show), name='show-detail'),
url('^(?P<pk>\d+)/$', DetailView.as_view(model=TimeSlot), name='timeslot-detail'),
-) \ No newline at end of file
+)
diff --git a/helsinki.program/views.py b/helsinki.program/views.py
index 23c1483..b118161 100644
--- a/helsinki.program/views.py
+++ b/helsinki.program/views.py
@@ -2,7 +2,7 @@ from django.views.generic.list import ListView
from django.views.generic.base import TemplateView
from django.shortcuts import get_object_or_404
-from models import BroadcastFormat, MusicFocus, Note, Show, ShowInformation, ShowTopic, TimeSlot
+from helsinki.program.models import BroadcastFormat, MusicFocus, Note, Show, ShowInformation, ShowTopic, TimeSlot
from datetime import date, datetime, time, timedelta
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..47852d2
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,33 @@
+from setuptools import setup, find_packages
+import os
+
+version = '0.1'
+
+setup(name='helsinki.program',
+ version=version,
+ description="Program Management for Radio Helsinki, Graz",
+ long_description=open("README.rst").read() + "\n" +
+ open(os.path.join("docs", "CHANGES.rst")).read(),
+ # Get more strings from http://www.python.org/pypi?:action=list_classifiers
+ classifiers=[
+ "Programming Language :: Python",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ ],
+ keywords='django radio',
+ author='Ernesto Rico-Schmidt',
+ author_email='',
+ url='',
+ license='',
+ packages=find_packages(exclude=['ez_setup']),
+ namespace_packages=[],
+ include_package_data=True,
+ zip_safe=False,
+ install_requires=[
+ 'setuptools',
+ # -*- Extra requirements: -*-
+ 'python-dateutil',
+ ],
+ entry_points="""
+ # -*- Entry points: -*-
+ """,
+ )