Git Product home page Git Product logo

ran-django-template's Introduction

ran-django-template


python3.5 python3.6 python3.7 django2.1.5 Build Status

Author: Ziran Gong

Feature

For Site

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

For Blog

  • Rich text editor
  • Article management and counting, including adding, deleting and editing
  • Tag management, including adding, deleting and editing
  • Classified management, including adding, deleting and editing
  • 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 * * *
2.2.x x x x

Notice: 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

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.
It need send a email to [email protected] and just can be used for non-business projects.

ran-django-template's People

Contributors

nature1995 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.