Skip to content

ddnet/ddnet-django

Repository files navigation

DDNet Django

DDraceNetwork django

Installation

  1. Install Python 3.X

  2. Navigate to the root directory (ddnet-django/) and run: pip install -r requirements.txt - it will install the newest Django version and all required python libraries

  3. Navigate to ddnet-django/ddnet_django/

  4. Create settings_private.py file and fill there the following configuration with your individual settings

    from .settings import *
    
    # DEBUG = True
    
    ALLOWED_HOSTS = []
    
    # SECURITY WARNING: keep the secret key used in production secret!
    SECRET_KEY = '$$$django%ddnet%secret123123!!'
    
    # Database
    # https://docs.djangoproject.com/en/1.9/ref/settings/#databases
    
    DATABASES = {
        # this is where django-internal stuff goes
        'default': {
            'ENGINE': '',
            'NAME': '',
            'USER': '',
            'PASSWORD': '',
            'HOST': '',
            'PORT': '',
        },
    
        # this is the db to use for the skins app
        'skins_db': {
            'ENGINE': '',
            'NAME': '',
            'USER': '',
            'PASSWORD': '',
            'HOST': '',
            'PORT': '',
        },
    
        # this is the db to use for the maps app
        'ddnet_db': {
            'ENGINE': '',
            'NAME': '',
            'USER': '',
            'PASSWORD': '',
            'HOST': '',
            'PORT': '',
        },
    }
    
    # In case you use mysql or mariadb:
    # You will need to install pymysql first.
    #
    # import pymysql
    # pymysql.install_as_MySQLdb()
  5. Navigate back to the root directory ddnet-django/

  6. run setup_db.sh in order to set up the databases for all apps. Please note that the table record_maps in the maps database is assumend to be already there, django will not touch it.

  7. python manage.py runserver [host:port] will start the application on a default http://127.0.0.1:8000/ server or http://host:port/ if you specify the optional parameters

  8. python manage.py createsuperuser --username=username [email protected] will generate admin account

Contributing

History

Credits

  • @H-M-H
  • @kchaber

License

AGPL 3.0, see LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published