# Path: realestate/listing/views.py
# class ListingList(ListView):
# class ListingForSaleList(ListView):
# class ListingForRentList(ListView):
# class ListingView(FormMixin, DetailView):
# class MapView(JSONResponseMixin, AjaxResponseMixin, View):
# class AgentList(ListView):
# class AgentListing(ListView):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def post(self, request, *args, **kwargs):
#     def form_valid(self, form):
#     def get_ajax(self, request, *args, **kwargs):
#     def get_queryset(self):
#     def get_queryset(self):
# 
# Path: realestate/api/urls.py

# 
# Path: realestate/home/views.py
# class ContactView(FormView):
#     template_name = 'home/contact-us.html'
#     form_class = ContactForm
#     success_url = reverse_lazy('thank-you')
# 
#     def form_valid(self, form):
#         form.send_email()
#         return super(ContactView, self).form_valid(form)
# 
# class IndexView(TemplateView):
#     template_name = 'index.html'
# 
#     def get_context_data(self, **kwargs):
#         context = super(IndexView, self).get_context_data(**kwargs)
#         recentp = Listing.objects.active().order_by('-created_at')[:config.RECENTLY_ADDED]
#         context['recent'] = recentp
#         return context
# 
# class ListingFeed(Feed):
#     title = "Recent Listing Feed"
#     link = "/rss/"
#     description = "Recent Listing Feed"
#     description_template = "home/rss-item-description.html"
# 
#     def items(self):
#         return Listing.objects.order_by('-last_modified')[:10]
# 
#     def item_title(self, item):
#         return item.title
# 
# Path: realestate/listing/sitemap.py
# class ListingSitemap(Sitemap):
#     def items(self):
#     def lastmod(self, obj):


from django.conf.urls import *
from django.conf import settings
from django.contrib import admin
from django.views.generic import TemplateView
from realestate.listing import views  as listing_views
from realestate.api.urls import router as api_router
from realestate.home.views import ContactView, IndexView, ListingFeed
from realestate.listing import sitemap


admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'^properties/$', listing_views.ListingList.as_view(), name='all_properties'),

# Path: realestate/listing/views.py
# class ListingList(ListView):
# class ListingForSaleList(ListView):
# class ListingForRentList(ListView):
# class ListingView(FormMixin, DetailView):
# class MapView(JSONResponseMixin, AjaxResponseMixin, View):
# class AgentList(ListView):
# class AgentListing(ListView):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def post(self, request, *args, **kwargs):
#     def form_valid(self, form):
#     def get_ajax(self, request, *args, **kwargs):
#     def get_queryset(self):
#     def get_queryset(self):
# 
# Path: realestate/api/urls.py

# 
# Path: realestate/home/views.py
# class ContactView(FormView):
#     template_name = 'home/contact-us.html'
#     form_class = ContactForm
#     success_url = reverse_lazy('thank-you')
# 
#     def form_valid(self, form):
#         form.send_email()
#         return super(ContactView, self).form_valid(form)
# 
# class IndexView(TemplateView):
#     template_name = 'index.html'
# 
#     def get_context_data(self, **kwargs):
#         context = super(IndexView, self).get_context_data(**kwargs)
#         recentp = Listing.objects.active().order_by('-created_at')[:config.RECENTLY_ADDED]
#         context['recent'] = recentp
#         return context
# 
# class ListingFeed(Feed):
#     title = "Recent Listing Feed"
#     link = "/rss/"
#     description = "Recent Listing Feed"
#     description_template = "home/rss-item-description.html"
# 
#     def items(self):
#         return Listing.objects.order_by('-last_modified')[:10]
# 
#     def item_title(self, item):
#         return item.title
# 
# Path: realestate/listing/sitemap.py
# class ListingSitemap(Sitemap):
#     def items(self):
#     def lastmod(self, obj):


# Path: realestate/urls.py
from django.conf.urls import *
from django.conf import settings
from django.contrib import admin
from django.views.generic import TemplateView
from realestate.listing import views  as listing_views
from realestate.api.urls import router as api_router
from realestate.home.views import ContactView, IndexView, ListingFeed
from realestate.listing import sitemap



admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'^properties/$', listing_views.ListingList.as_view(), name='all_properties'),

    url(r'^sale/$', listing_views.ListingForSaleList.as_view(), name='properties_for_sale'),