SplotyCode / aktracker

A simple example, based on Python3 and MySQL, upload and show multimedia.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django-MySQL-Example

A simple example, based on Python3 and MySQL, upload and show multimedia, like musics, pictures or videos.

Getting started

1.Change the default DATABASES in setting.py:

DATABASES = {
'default': {
    'ENGINE': 'django.db.backends.mysql',
    'NAME': 'Schema name in DataBase',
    'USER':'root',
    'PASSWORD':'Database password',
    'HOST':'127.0.0.1',
    'PORT':'3306'
    }
}

2.Start Django Server:

python manage.py runserver

3.View the webside:

http://127.0.0.1:8000/upload
http://127.0.0.1:8000/artupload
http://127.0.0.1:8000/musupload
http://127.0.0.1:8000/vidupload

These three URLs are upload multimedia.

http://127.0.0.1:8000/show/

This URL can show every thing which you upload.

About

A simple example, based on Python3 and MySQL, upload and show multimedia.


Languages

Language:JavaScript 81.1%Language:CSS 15.5%Language:Python 2.6%Language:HTML 0.9%