# Path: app/views/index_views.py
# RANDOM_BOOKS_COUNT = 6
# def index(request):
# def home(request):
# def login_response(request, username, password):
# def user_login(request):
# def is_user_exists(request, form):
# def is_mail_exists(request, form):
# def sign_in(request):
# def restore_data(request, form):
# 
# Path: app/views/additional_views.py
# def user_logout(request):
# def share_txt(request, file):
# def share_xml(request, file):
# def unsubscribe(request, token):
# def payment_success(request):
# 
# Path: app/views/add_book_views.py
# READ_PRIVILEGES = 0o644
# def add_book(request):
# def generate_authors(request, form):
# def generate_books(request, form):
# def add_book_successful(request, form):
# 
# Path: app/views/selected_book_views.py
# BOOK_COVER_HEIGHT = 350
# COMMENTS_PER_PAGE = 20
# COMMENTS_START_PAGE = 1
# RANDOM_BOOKS_COUNT = 6
# def selected_book(request, book_id):
# def store_image(request, form):
# def add_book_to_home(request, form):
# def remove_book_from_home(request, form):
# def change_rating(request, form):
# def set_rating(request, rating_form):
# def add_comment(request, form):
# def load_comments(request, form):
# def report_book(request, form):
# 
# Path: app/views/library_views.py
# MOST_READ_BOOKS_COUNT = 9
# def all_categories(request):
# def selected_category(request, category_id):
# def selected_author(request, author_id):
# def sort(request, form):
# def find_books(request, form):
# def load_books(request, category_id, form):
# 
# Path: app/views/read_book_views.py
# def open_book(request, book_id):
# def set_current_page(request, form):
# 
# Path: app/views/profile_views.py
# AVATAR_WIDTH = 250
# def profile(request, profile_id):
# def load_uploaded_books(request, profile_id, form):
# def upload_avatar(request):
# def change_password(request, form):
# 
# Path: app/views/about_views.py
# def about(request):
# def send_message(request, form):
# 
# Path: app/views/reminder_views.py
# def update_reminder(request):


from django.conf.urls import include, url
from django.conf.urls.static import static
from django.conf import settings
from django.contrib import admin
from app.views import (index_views, additional_views, add_book_views, selected_book_views, library_views,
                       read_book_views, profile_views, about_views, reminder_views)
    url(r'home-add-book', selected_book_views.add_book_to_home, name='add_book_home_app'),
    url(r'home-remove-book', selected_book_views.remove_book_from_home, name='remove_book_home_app'),
    url(r'change-rating', selected_book_views.change_rating, name='change_rating_app'),
    url(r'comment-add', selected_book_views.add_comment, name='add_comment_app'),
    url(r'load-comments', selected_book_views.load_comments, name='load_comments_app'),
    url(r'report-book', selected_book_views.report_book, name='report-book'),

    # Library urls.
    url(r'library', library_views.all_categories, name='categories'),
    url(r'^category/(?P<category_id>\d+)/$', library_views.selected_category, name='category'),
    url(r'^category/(?P<category_id>\d+)/load-books/$', library_views.load_books, name='load_books'),
    url(r'sort', library_views.sort, name='book_sort'),
    url(r'search-book', library_views.find_books, name='search_book_app'),
    url(r'^author/(?P<author_id>\d+)/$', library_views.selected_author, name='author'),

    # Profile urls.
    url(r'profile/(?P<profile_id>\d+)/$', profile_views.profile, name='profile'),
    url(r'profile/(?P<profile_id>\d+)/load-books/$', profile_views.load_uploaded_books, name='load_uploaded_books_app'),
    url(r'upload-avatar', profile_views.upload_avatar, name='upload_avatar'),
    url(r'change-password', profile_views.change_password, name='change_password'),

    # About project urls.
    url(r'about', about_views.about, name='about'),
    url(r'send-message', about_views.send_message, name='send_message'),

    # Additional urls.
    url(r'logout', additional_views.user_logout, name='logout'),
    url(r'unsubscribe/(?P<token>[0-9a-zA-Z_-]+)/', additional_views.unsubscribe, name='unsubscribe'),
    url(r'(?P<file>[%&+ \w]+.txt)', additional_views.share_txt, name='share_txt'),
    url(r'(?P<file>[%&+ \w]+.xml)', additional_views.share_xml, name='share_xml'),

# Path: app/views/index_views.py
# RANDOM_BOOKS_COUNT = 6
# def index(request):
# def home(request):
# def login_response(request, username, password):
# def user_login(request):
# def is_user_exists(request, form):
# def is_mail_exists(request, form):
# def sign_in(request):
# def restore_data(request, form):
# 
# Path: app/views/additional_views.py
# def user_logout(request):
# def share_txt(request, file):
# def share_xml(request, file):
# def unsubscribe(request, token):
# def payment_success(request):
# 
# Path: app/views/add_book_views.py
# READ_PRIVILEGES = 0o644
# def add_book(request):
# def generate_authors(request, form):
# def generate_books(request, form):
# def add_book_successful(request, form):
# 
# Path: app/views/selected_book_views.py
# BOOK_COVER_HEIGHT = 350
# COMMENTS_PER_PAGE = 20
# COMMENTS_START_PAGE = 1
# RANDOM_BOOKS_COUNT = 6
# def selected_book(request, book_id):
# def store_image(request, form):
# def add_book_to_home(request, form):
# def remove_book_from_home(request, form):
# def change_rating(request, form):
# def set_rating(request, rating_form):
# def add_comment(request, form):
# def load_comments(request, form):
# def report_book(request, form):
# 
# Path: app/views/library_views.py
# MOST_READ_BOOKS_COUNT = 9
# def all_categories(request):
# def selected_category(request, category_id):
# def selected_author(request, author_id):
# def sort(request, form):
# def find_books(request, form):
# def load_books(request, category_id, form):
# 
# Path: app/views/read_book_views.py
# def open_book(request, book_id):
# def set_current_page(request, form):
# 
# Path: app/views/profile_views.py
# AVATAR_WIDTH = 250
# def profile(request, profile_id):
# def load_uploaded_books(request, profile_id, form):
# def upload_avatar(request):
# def change_password(request, form):
# 
# Path: app/views/about_views.py
# def about(request):
# def send_message(request, form):
# 
# Path: app/views/reminder_views.py
# def update_reminder(request):


# Path: Plamber/urls.py
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.conf import settings
from django.contrib import admin
from app.views import (index_views, additional_views, add_book_views, selected_book_views, library_views,
                       read_book_views, profile_views, about_views, reminder_views)

    url(r'home-add-book', selected_book_views.add_book_to_home, name='add_book_home_app'),
    url(r'home-remove-book', selected_book_views.remove_book_from_home, name='remove_book_home_app'),
    url(r'change-rating', selected_book_views.change_rating, name='change_rating_app'),
    url(r'comment-add', selected_book_views.add_comment, name='add_comment_app'),
    url(r'load-comments', selected_book_views.load_comments, name='load_comments_app'),
    url(r'report-book', selected_book_views.report_book, name='report-book'),

    # Library urls.
    url(r'library', library_views.all_categories, name='categories'),
    url(r'^category/(?P<category_id>\d+)/$', library_views.selected_category, name='category'),
    url(r'^category/(?P<category_id>\d+)/load-books/$', library_views.load_books, name='load_books'),
    url(r'sort', library_views.sort, name='book_sort'),
    url(r'search-book', library_views.find_books, name='search_book_app'),
    url(r'^author/(?P<author_id>\d+)/$', library_views.selected_author, name='author'),

    # Profile urls.
    url(r'profile/(?P<profile_id>\d+)/$', profile_views.profile, name='profile'),
    url(r'profile/(?P<profile_id>\d+)/load-books/$', profile_views.load_uploaded_books, name='load_uploaded_books_app'),
    url(r'upload-avatar', profile_views.upload_avatar, name='upload_avatar'),
    url(r'change-password', profile_views.change_password, name='change_password'),

    # About project urls.
    url(r'about', about_views.about, name='about'),
    url(r'send-message', about_views.send_message, name='send_message'),

    # Additional urls.
    url(r'logout', additional_views.user_logout, name='logout'),
    url(r'unsubscribe/(?P<token>[0-9a-zA-Z_-]+)/', additional_views.unsubscribe, name='unsubscribe'),
    url(r'(?P<file>[%&+ \w]+.txt)', additional_views.share_txt, name='share_txt'),
    url(r'(?P<file>[%&+ \w]+.xml)', additional_views.share_xml, name='share_xml'),

    url(r'^update-reminder', reminder_views.update_reminder, name='update_reminder'),