"""fastagram URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin

from users.views import LoginView, UserProfileView
from fastagram.views import HomePage
from posts.views import PostListView, PostDetailView, \
    WritePostView, AddCommentView, TagCreateView, TagPostDetailView, \
    PostLikeView
from users.views import AuthSignupView, logout_user

from django.conf import settings
from django.conf.urls.static import static


urlpatterns = [
    url(r'^admin/', admin.site.urls),

    url(r'^$', HomePage.as_view(), name="home"),
    url(r'^login/$', LoginView.as_view(), name="login"),
    url(r'^posts/$', PostListView.as_view(), name="post_list"),
    url(r'^posts/write/$', WritePostView.as_view(), name="write"),
    url(r'^tags/(?P<slug>\w+)/$', TagPostDetailView.as_view(), name="tag-detail"),
    url(r'^posts/(?P<slug>\w+)/tags/$', TagCreateView.as_view(), name="tag-create"),
    url(r'^posts/(?P<slug>\w+)/like/$', PostLikeView.as_view(), name="like"),
    url(r'^posts/(?P<slug>\w+)/comment/$', AddCommentView.as_view(), name="comment"),
    url(r'^posts/(?P<slug>\w+)/$', PostDetailView.as_view(), name="post"),
    url(r'^signup/$', AuthSignupView.as_view(), name="signup"),
    url(r'^logout/$', logout_user, name="logout"),
    url(r'^(?P<slug>\w+)/$', UserProfileView.as_view(), name="profile"),

] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

ba14d6cef85e9d7623a6f4204cf5d6016d659c3d
<mask token>

<mask token>
urlpatterns = [url('^admin/', admin.site.urls), url('^$', HomePage.as_view(
    ), name='home'), url('^login/$', LoginView.as_view(), name='login'),
    url('^posts/$', PostListView.as_view(), name='post_list'), url(
    '^posts/write/$', WritePostView.as_view(), name='write'), url(
    '^tags/(?P<slug>\\w+)/$', TagPostDetailView.as_view(), name=
    'tag-detail'), url('^posts/(?P<slug>\\w+)/tags/$', TagCreateView.
    as_view(), name='tag-create'), url('^posts/(?P<slug>\\w+)/like/$',
    PostLikeView.as_view(), name='like'), url(
    '^posts/(?P<slug>\\w+)/comment/$', AddCommentView.as_view(), name=
    'comment'), url('^posts/(?P<slug>\\w+)/$', PostDetailView.as_view(),
    name='post'), url('^signup/$', AuthSignupView.as_view(), name='signup'),
    url('^logout/$', logout_user, name='logout'), url('^(?P<slug>\\w+)/$',
    UserProfileView.as_view(), name='profile')] + static(settings.MEDIA_URL,
    document_root=settings.MEDIA_ROOT)

<mask token>
from django.conf.urls import url
from django.contrib import admin
from users.views import LoginView, UserProfileView
from fastagram.views import HomePage
from posts.views import PostListView, PostDetailView, WritePostView, AddCommentView, TagCreateView, TagPostDetailView, PostLikeView
from users.views import AuthSignupView, logout_user
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [url('^admin/', admin.site.urls), url('^$', HomePage.as_view(
    ), name='home'), url('^login/$', LoginView.as_view(), name='login'),
    url('^posts/$', PostListView.as_view(), name='post_list'), url(
    '^posts/write/$', WritePostView.as_view(), name='write'), url(
    '^tags/(?P<slug>\\w+)/$', TagPostDetailView.as_view(), name=
    'tag-detail'), url('^posts/(?P<slug>\\w+)/tags/$', TagCreateView.
    as_view(), name='tag-create'), url('^posts/(?P<slug>\\w+)/like/$',
    PostLikeView.as_view(), name='like'), url(
    '^posts/(?P<slug>\\w+)/comment/$', AddCommentView.as_view(), name=
    'comment'), url('^posts/(?P<slug>\\w+)/$', PostDetailView.as_view(),
    name='post'), url('^signup/$', AuthSignupView.as_view(), name='signup'),
    url('^logout/$', logout_user, name='logout'), url('^(?P<slug>\\w+)/$',
    UserProfileView.as_view(), name='profile')] + static(settings.MEDIA_URL,
    document_root=settings.MEDIA_ROOT)

"""fastagram URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin

from users.views import LoginView, UserProfileView
from fastagram.views import HomePage
from posts.views import PostListView, PostDetailView, \
    WritePostView, AddCommentView, TagCreateView, TagPostDetailView, \
    PostLikeView
from users.views import AuthSignupView, logout_user

from django.conf import settings
from django.conf.urls.static import static


urlpatterns = [
    url(r'^admin/', admin.site.urls),

    url(r'^$', HomePage.as_view(), name="home"),
    url(r'^login/$', LoginView.as_view(), name="login"),
    url(r'^posts/$', PostListView.as_view(), name="post_list"),
    url(r'^posts/write/$', WritePostView.as_view(), name="write"),
    url(r'^tags/(?P<slug>\w+)/$', TagPostDetailView.as_view(), name="tag-detail"),
    url(r'^posts/(?P<slug>\w+)/tags/$', TagCreateView.as_view(), name="tag-create"),
    url(r'^posts/(?P<slug>\w+)/like/$', PostLikeView.as_view(), name="like"),
    url(r'^posts/(?P<slug>\w+)/comment/$', AddCommentView.as_view(), name="comment"),
    url(r'^posts/(?P<slug>\w+)/$', PostDetailView.as_view(), name="post"),
    url(r'^signup/$', AuthSignupView.as_view(), name="signup"),
    url(r'^logout/$', logout_user, name="logout"),
    url(r'^(?P<slug>\w+)/$', UserProfileView.as_view(), name="profile"),

] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
