Пример #1
0
from django.contrib import admin
from django.conf import settings

try:
    STANDALONE = settings.STANDALONE
except AttributeError:  # pragma: no cover
    STANDALONE = False

urlpatterns = [
    url(r'^$',
        LandingView.as_view(), name='pfc-landing'),
    url(r'^understanding-financial-aid-offers/',
        include('paying_for_college.disclosures.urls',
                namespace='disclosures')),
    url(r'^repaying-student-debt/$',
        StandAloneView.as_view(template_name='repay_student_debt.html'),
        name='pfc-repay'),
    url(r'^choosing-a-student-loan/$',
        StandAloneView.as_view(template_name='choose_a_loan.html'),
        name='pfc-choose'),
    url(r'^managing-college-money/$',
        StandAloneView.as_view(template_name='manage_your_money.html'),
        name='pfc-manage'),
    url(r'^demo/$',
        StandAloneView.as_view(template_name='just-a-demo.html'),
        name='pfc-demo'),
]

if STANDALONE:
    urlpatterns += [
    url(r'^paying-for-college/admin/', include(admin.site.urls)),
Пример #2
0
from django.conf.urls import url
from paying_for_college.views import StandAloneView

urlpatterns = [
    url(r'^$',
        StandAloneView.as_view(template_name='repay_student_debt.html'),
        name='pfc-repay')
]
Пример #3
0
from django.conf.urls import url
from paying_for_college.views import StandAloneView

urlpatterns = [
    url(r'^choose-a-student-loan/$',
        StandAloneView.as_view(template_name='choose_a_loan.html'),
        name='pfc-choose'),
    url(r'^manage-your-college-money/$',
        StandAloneView.as_view(template_name='manage_your_money.html'),
        name='pfc-manage'),
]