Giter Club home page Giter Club logo

django_media_server's Introduction

License: Unlicense Django DjangoREST Flutter

Django Media Server

Super cool easy to use media server made on Django

Live Demo: https://django-media-server.herokuapp.com/web/ SignUp To Check it out!

Install Instructions

  • Clone the projects git clone https://github.com/ars-4/django_media_server.git
  • Create virtualenv and activate it
  • Open web\views.py and find this:
    if request.user is not None:
        person = Person.objects.get(id=2)

    else:
        person = Person.objects.get(user_id=request.user.id)
    context = {
        'categories': Tag.objects.all(),
        'person': person
    }
    return context
  • Change it to:
def categories(request):
   context = {
       'categories': Tag.objects.all()
   }
   return context
  • Install requirements.txt: pip install -r requirements.txt
  • Make migrations and migrate to db: py manage.py makemigrations & py manage.py migrate
  • Create super user: py manage.py createsuperuser
  • Run the server: py manage.py runserver
  • Open this url: http://127.0.0.1:8000/admin/ and login with superuser credentials
  • Create 4 Account Types with the following order:
    • Management (Admin Account Type) -> You can name it whatever you want
    • Trial (Default Account When User First SignUP)
    • Standard (Standard account type)
    • Expired (User who is expired)
  • Create a person with user as the previous made superuser
  • Create one more account with No staff login and create this user's person account with Standard Account Type
  • Change back web\views.py Categories Function in the file
  • Congrats your server is accessible at http://127.0.0.1:8000/web/

If you want to run the server on your current system IP run it via: py manage.py runserver 0.0.0.0:80 -> ( 80 is the default port for windows OS so if your IP is 192.168.0.7 server will be accessible to it without writing any port number in the end )

Other useful Info:

  • Bill Receipts and Month Timers are auto and will be added automatically when user signs up.
  • After the month of user first signed up a bill will be generated according to his account type's price
  • If bill is more than 3000 his account will auto expire. More than 3000 means 3001 and .... so on not 3000

Please help me contribute in making of Desktop and Mobile apps

django_media_server's People

Contributors

ars-4 avatar

Watchers

 avatar

Forkers

ars-1

django_media_server's Issues

Views Issue

Other than management accounts. Client can also view roles management views like he can add, update or delete packages.

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.