All Projects → nature1995 → Ran Django Template

nature1995 / Ran Django Template

Licence: gpl-3.0
An awesome Django + Bootstrap4 project template for Django 2.0+ include IOT restful api

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Ran Django Template

Lumen Api Starter
Lumen 8 基础上扩展出的API 启动项目,精心设计的目录结构,规范统一的响应数据格式,Repository 模式架构的最佳实践。
Stars: ✭ 197 (+121.35%)
Mutual labels:  restful-api, starter-template
Batio
A fast and extensible micro-framework for PHP to build RESTful API.
Stars: ✭ 87 (-2.25%)
Mutual labels:  restful-api
Clojurice
An opinionated starter app for full-stack web applications in Clojure
Stars: ✭ 70 (-21.35%)
Mutual labels:  starter-template
Aztro
The Astrology API 💫 Get daily horoscope!
Stars: ✭ 78 (-12.36%)
Mutual labels:  restful-api
Jokeapi
A REST API that serves uniformly and well formatted jokes in JSON, XML, YAML or plain text format that also offers a great variety of filtering methods
Stars: ✭ 71 (-20.22%)
Mutual labels:  restful-api
Phoenix react playground
An example setup for a Phoenix+React project with sensible defaults.
Stars: ✭ 80 (-10.11%)
Mutual labels:  starter-template
Gorse
An open source recommender system service written in Go
Stars: ✭ 1,148 (+1189.89%)
Mutual labels:  restful-api
Taco Api
🍉 Brazilian Table of Food Composition (TACO) - JSON API
Stars: ✭ 87 (-2.25%)
Mutual labels:  restful-api
Python Ilorest Library Old
Python library for iLO RESTful API
Stars: ✭ 85 (-4.49%)
Mutual labels:  restful-api
Parvula
An extremely simple & flexible CMS generated from flat files with a complete RESTful API —
Stars: ✭ 76 (-14.61%)
Mutual labels:  restful-api
Restfm
RESTful web services for FileMaker server.
Stars: ✭ 76 (-14.61%)
Mutual labels:  restful-api
Api Blueprint Boilerplate
Minimalistic boilerplate to quick-start API specification using API Blueprint description language.
Stars: ✭ 71 (-20.22%)
Mutual labels:  starter-template
Evolutility Server Node
Model-driven REST or GraphQL backend for CRUD and more, written in Javascript, using Node.js, Express, and PostgreSQL.
Stars: ✭ 84 (-5.62%)
Mutual labels:  restful-api
Profile Card
Tailwind CSS Starter Template - Profile Card (Single page website for your profile/links)
Stars: ✭ 69 (-22.47%)
Mutual labels:  starter-template
Twitter Clone
Twitter clone. The target is learning Vue framework and technique of backend to implement a SPA website.
Stars: ✭ 87 (-2.25%)
Mutual labels:  restful-api
Springboot security restful api
SpringBoot + SpringSecurity + RESTful API --- Maven Project Demo
Stars: ✭ 68 (-23.6%)
Mutual labels:  restful-api
Graceful
Elegant Python REST toolkit built on top of falcon
Stars: ✭ 73 (-17.98%)
Mutual labels:  restful-api
Jayme
Abstraction layer that eases RESTful interconnections in Swift
Stars: ✭ 79 (-11.24%)
Mutual labels:  restful-api
Ghostwind
Tailwind CSS Starter Template - Ghostwind (Ghost Casper theme in Tailwind CSS)
Stars: ✭ 89 (+0%)
Mutual labels:  starter-template
Swag Bot
My first ever discord bot using discord.js. The bot has a total of 77 commands, and it is capable of manipulating texts and images, analyzing data, searching information, and playing music. It has high level features like xp system, coins database, and spam detector.
Stars: ✭ 86 (-3.37%)
Mutual labels:  restful-api

ran-django-template


python3.5 python3.6 python3.7 django3.0 Build Status

Feature

For Site

  • [x] Create Django web server in local
  • [x] Gallery and carousel control in home page
  • [x] Beautify site admin interface
  • [x] Restful API for IOT control
  • [x] Oauth2.0 for third party account login,such as: Github
  • [x] QR code generator
  • [x] PC, Mobile auto adaptation
  • [x] Support Font awesome, django-jet, Bootstrap, Animate.css

For Blog

  • [x] Rich text editor
  • [x] Article management and counting, including adding, deleting and editing
  • [x] Tag management, including adding, deleting and editing
  • [x] Classified management, including adding, deleting and editing
  • [x] Read more

Documentation

Add INSTALLED_APPS setting:

    INSTALLED_APPS = [
		'jet.dashboard', #  before your django admin
		'jet',	#  before your django admin
	    	'apps.gallery.apps.GalleryConfig',
		'allauth',
		'allauth.account',
		'allauth.socialaccount',
		'allauth.socialaccount.providers.github',
		'myauth',
		'widget_tweaks',
		'werkzeug_debugger_runserver',
		'django_extensions',
		'rest_framework',
		'apps.myapp',
		'apps.blogs',
		'apps.qrcreate',
		'apps.blog',    # Blog for new version
		'django_summernote',
    ]

How to run it

git clone https://github.com/nature1995/ran-django-template.git
cd ran-django-template
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver 0.0.0.0:8000

Access the web page though this link: http://0.0.0.0:8000/

Compatibility

The codes are tested using Travis-CI platform with django 2.1.5 and Python 3.5, 3.6, 3.7. Django\Python | 3.5 | 3.6 | 3.7 --------------- | --- | --- | --- 2.0.x | * | * | * 2.1.x | * | * | * 3.0.0 | * | * | *

Notice:

  1. Because the jet admin do not support django==3.0.0. Please remove jet in setting.py and urls.py, if you would like to use django == 3.0.0

  2. Django 2.1.x need to using the following change:**

If you have the ERROR message with render() got an unexpected keyword argument 'renderer';, please find Python folder: \lib\site-packages\django\forms\boundfield.py. Then, comment the as_widget, line 93, like the follow:

return widget.render(
	name=self.html_initial_name if only_initial else self.html_name,
	value=self.value(),
	attrs=attrs,
	# renderer=self.form.renderer,
)

Demo

Web Page: https://ranxiaolang.com or https://www.zran.xyz

image

Result01.png

Result01.png Result03.png

Result01.png Result03.png Result02.png

Site Admin installation

Add 'jet.dashboard' application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before 'jet'):

INSTALLED_APPS = (
    ...
    'jet.dashboard',  # before your django admin
    'jet',  # before your django admin
    'django.contrib.admin',
    ...
)

Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes): before 'jet'):

urlpatterns = patterns(
    ...
    path(r'admin/', admin.site.urls),
    path('jet/', include('jet.urls', 'jet')),  # Django JET URLS
    path('jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')),  # Django JET dashboard URLS
    ...
)
before 'jet'):

For Google Analytics widgets only install python package:

pip install google-api-python-client==1.4.1

Create database tables:

python manage.py migrate dashboard
# or
python manage.py syncdb

Collect static if you are in production environment: before 'jet'):

python manage.py collectstatic

Others

Admin Account

python manage.py createsuperuser

username: ranxiaolang
email: YOUR EMAIL  
password: ranxiaolang  

Access the web page though this link: http://0.0.0.0:8000/admin

Django Restframework
Access the web page though this link: http://0.0.0.0:8000/iot/

TODO

  • [ ] Add more social Oauth2.0
  • [ ] Add comment
  • [ ] Add site map

Author

License

This software is licensed under the GNU General Public License v3.0 License. For more information, read the file LICENSE.
Just can be used for non-business projects.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].