<filename>HedyNet/HedyNet/urls.py
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
from django.views.generic.base import RedirectView

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from mailchimp2.views import SubscribeFormView

from .views import HomeTemplateView, VisitTemplateView, MailingListView

urlpatterns = patterns('',
    url(r'^$', HomeTemplateView.as_view(), name="home"),
    url(r'^visit$', VisitTemplateView.as_view(), name="visit"),

    url(r'^about$', TemplateView.as_view(template_name='about.html'), name="about"),
    url(r'^policies$', TemplateView.as_view(template_name='policies.html'), name="policies"),
    url(r'^codeofconduct$', TemplateView.as_view(template_name='codeofconduct.html'), name="codeofconduct"),
    url(r'^wishlist$', TemplateView.as_view(template_name="wishlist.html"), name="wishlist"),
    url(r'^sitemap$', TemplateView.as_view(template_name="sitemap.html"), name="sitemap"),
    url(r'^tos$', TemplateView.as_view(template_name="tos.html"), name="tos"),
    url(r'^donations$', TemplateView.as_view(template_name="donations.html"), name="donations"),
    url(r'^visit$', TemplateView.as_view(template_name="visit.html"), name="visit"),
    url(r'^membership$', TemplateView.as_view(template_name="membership.html"), name="membership"),    
    url(r'^resources$', TemplateView.as_view(template_name="resources.html"), name="resources"),
    #url(r'^events$', TemplateView.as_view(template_name="events.html"), name="events"),
    url(r'^events$', RedirectView.as_view(url="http://www.meetup.com/SeattleAttic/"), name="events"),
    url(r'^openhouse$', TemplateView.as_view(template_name="openhouse.html"), name="openhouse"),

    (r'^mailinglists/', include('mailchimp2.urls')),
    url(r'^mailinglist', MailingListView.as_view(), name="mailing_list"),

    (r'^accounts/', include('allauth.urls')),
    (r'^avatar/', include('avatar.urls')),

    (r'^faq/', include('FAQ.urls')),
    (r'^profiles/', include('profiles.urls')),
    (r'^payments/', include('payments.urls')),
    (r'^othersites/', include('othersites.urls')),
    (r'^', include('promotions.urls')),
    #(r'^applications/', include('applications.urls')),
    
    # Examples:
    # url(r'^$', 'HedyNet.views.home', name='home'),
    # url(r'^HedyNet/', include('HedyNet.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    url(r'twilio.xml$', TemplateView.as_view(template_name="twilio.xml"), name="twilio_xml"),
)

<filename>HedyNet/HedyNet/urls.py
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
from django.views.generic.base import RedirectView

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from mailchimp2.views import SubscribeFormView

from .views import HomeTemplateView, VisitTemplateView, MailingListView

urlpatterns = patterns('',
    url(r'^$', HomeTemplateView.as_view(), name="home"),
    url(r'^visit$', VisitTemplateView.as_view(), name="visit"),

    url(r'^about$', TemplateView.as_view(template_name='about.html'), name="about"),
    url(r'^policies$', TemplateView.as_view(template_name='policies.html'), name="policies"),
    url(r'^codeofconduct$', TemplateView.as_view(template_name='codeofconduct.html'), name="codeofconduct"),
    url(r'^wishlist$', TemplateView.as_view(template_name="wishlist.html"), name="wishlist"),
    url(r'^sitemap$', TemplateView.as_view(template_name="sitemap.html"), name="sitemap"),
    url(r'^tos$', TemplateView.as_view(template_name="tos.html"), name="tos"),
    url(r'^donations$', TemplateView.as_view(template_name="donations.html"), name="donations"),
    url(r'^visit$', TemplateView.as_view(template_name="visit.html"), name="visit"),
    url(r'^membership$', TemplateView.as_view(template_name="membership.html"), name="membership"),    
    url(r'^resources$', TemplateView.as_view(template_name="resources.html"), name="resources"),
    #url(r'^events$', TemplateView.as_view(template_name="events.html"), name="events"),
    url(r'^events$', RedirectView.as_view(url="http://www.meetup.com/SeattleAttic/"), name="events"),
    url(r'^openhouse$', TemplateView.as_view(template_name="openhouse.html"), name="openhouse"),

    (r'^mailinglists/', include('mailchimp2.urls')),
    url(r'^mailinglist', MailingListView.as_view(), name="mailing_list"),

    (r'^accounts/', include('allauth.urls')),
    (r'^avatar/', include('avatar.urls')),

    (r'^faq/', include('FAQ.urls')),
    (r'^profiles/', include('profiles.urls')),
    (r'^payments/', include('payments.urls')),
    (r'^othersites/', include('othersites.urls')),
    (r'^', include('promotions.urls')),
    #(r'^applications/', include('applications.urls')),
    
    # Examples:
    # url(r'^$', 'HedyNet.views.home', name='home'),
    # url(r'^HedyNet/', include('HedyNet.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    url(r'twilio.xml$', TemplateView.as_view(template_name="twilio.xml"), name="twilio_xml"),
)

# Uncomment the next two lines to enable the admin: #url(r'^events$', TemplateView.as_view(template_name="events.html"), name="events"), #(r'^applications/', include('applications.urls')), # Examples: # url(r'^$', 'HedyNet.views.home', name='home'), # url(r'^HedyNet/', include('HedyNet.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: