Browse Source

Fix cislo URL

remotes/origin/vysl
Tomas Gavenciak 10 years ago
parent
commit
7542adb996
  1. 2
      Makefile
  2. 11
      mamweb/settings.py
  3. 2
      seminar/urls.py

2
Makefile

@ -86,7 +86,7 @@ push_test:
(chown -Rf :mam . || true ) && \ (chown -Rf :mam . || true ) && \
(chmod -Rf g+w . || true ) && \ (chmod -Rf g+w . || true ) && \
echo 'Reloading apache ... (You may have to start it manually on error!)' && \ echo 'Reloading apache ... (You may have to start it manually on error!)' && \
~/etc/apache2/apache2ctl -k reload && \ ~/etc/apache2/apache2ctl -k restart && \
echo Done." echo Done."
@echo "Test pushed to ${TEST_SERVER}:${TEST_DIR} successfully." @echo "Test pushed to ${TEST_SERVER}:${TEST_DIR} successfully."

11
mamweb/settings.py

@ -23,8 +23,15 @@ ALLOWED_HOSTS = ['127.0.0.1']
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', # 'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db-local.sqlite3'), # 'NAME': os.path.join(BASE_DIR, 'db-local.sqlite3'),
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'mam-prod',
'USER': 'mam',
'TEST': {
'NAME': 'mam-test',
}
} }
} }

2
seminar/urls.py

@ -8,7 +8,7 @@ urlpatterns = patterns('',
url(r'^archiv/cisla/$', views.CislaView.as_view()), url(r'^archiv/cisla/$', views.CislaView.as_view()),
url(r'^rocnik/(?P<rocnik>\d+)/$', views.RocnikView.as_view(), name='seminar_rocnik'), url(r'^rocnik/(?P<rocnik>\d+)/$', views.RocnikView.as_view(), name='seminar_rocnik'),
url(r'^cislo/(?P<rocnik>\d+).(?P<cislo>\d+)/$', views.CisloView.as_view(), name='seminar_cislo'), url(r'^cislo/(?P<rocnik>\d+)\.(?P<cislo>\d+)/$', views.CisloView.as_view(), name='seminar_cislo'),
url(r'^problem/(?P<pk>\d+)/$', views.ProblemView.as_view(), name='seminar_problem'), url(r'^problem/(?P<pk>\d+)/$', views.ProblemView.as_view(), name='seminar_problem'),
url(r'^soustredeni/$', views.SoustredeniListView.as_view(), url(r'^soustredeni/$', views.SoustredeniListView.as_view(),

Loading…
Cancel
Save