A tutorial basic blog web-app based on the framework of Django 1.9.
Run successfully within Django 1.9.8 and Python 2.7.6
Install all the required libraries
pip install -r requirements.txt
(Optional) Delete demo post data
rm blog.sqlite3
python manage.py migrate
Create your own superuser account.
python manage.py createsuperuser
Collect static files
python manage.py collectstatic
Run web server
python manage.py runserver
Finally, you can view the web app with your local browser by accessing http://localhost:8000/
.
Also, you can access the administration page by logging in with your superuser account within the interface http://localhost:8000/admin/
.
Ver.1 Install & Admin
Ver.2 First App & Model
Ver.3 Customize Admin
Ver.4 Mapping URLs to Views
Ver.5 In App URLs
Ver.6 Template Context
Ver.7 Get Post Item with Query
Ver.8 URL Links & Get Absolute URL
Ver.9 ModelForm & Create View
Ver.10 Instance Update View & Messages
Ver.11 Delete View
Ver.12 Template & Inheritance
Ver.13 Setup Static Files
Ver.14 Implement Bootstrap
Ver.15 Pagination by QuerySet
Ver.16 File Uploads with FileField and ImageField
Ver.17 SlugField
Ver.18 Social Share Links
Ver.19 Custom Template Tag
Ver.20 Basic User Permissions
Ver.21 Associate User to Post with a Foreign Key
Ver.22 Using Facebook Comments
Ver.23 Item Publish Date & Handling Drafts
Ver.24 Search Posts
Ver.25 v1.0 (Stable Ver.)
Ver.26 Render Markdown
Ver.27 Implement Django Pagedown for Stack Overflow style Markdown
Ver.28 Responsive Image Inside of Post Markdown Content
Ver.29 Render & Truncate Markdown with Template Tags
Ver.30 Dynamic Preview of Form Data
Ver.31 Django Crispy Forms
Ver.32 Bootstrap Input Groups
Ver.33 Django Generic Foreign Keys
Ver.34 Model Managers & Instance Methods
Ver.35 Create Comments
Ver.36 Reply to Comments
Ver.37 jQuery fadeToggle for Comment Replies
Ver.38 Comment Thread
Ver.39 Count Words & Blog Post Read Time
Ver.40 Delete View with Confirmation & Permissions
Ver.41 User Login, Registration, Logout Form & View
Ver.42 User Login Required
Ver.43 Breadcrumb Navigation
Ver.44 v2.0 (Stable Ver.)
Ver.45 REST framework Installation
Ver.46 Post List API View
Ver.47 Post Update & Delete API View
Ver.48 Post Create API View
Ver.49 Filtering a Queryset in a ListAPIView
Ver.50 Pagination in a ListAPIView
Ver.51 Serializer Method Field
Ver.52 Comment API View
Ver.53 Comment Children & Reply Count
Ver.54 Comments in Post Detail API View
Ver.55 Comment Create Serializer Function
Ver.56 Comment Update & Delete in Detail API
Ver.57 Comment URL for Generic Foreign Key & Post API Permissions Update
Ver.58 User Register API
Ver.59 User Detail Serializer
Ver.60 API Home View
Curr. Ver. Django Rest Framework JWT Authentication