Skip to content

hafez-notebook/server

Repository files navigation

How to run

Linux

    git clone https://github.com/hafez-notebook/server.git && cd SmartNotebook-Server
    make

Then edit core/settings.py

    INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'notes',
    'users',
]
    TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, '<your_templates_path>')],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]
    DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.<your_database_engine',
        'HOST': '<db_host>',
        'NAME': '<db_name>',
        'USER': '<db_user>',
        'PASSWORD': '<db_password>',
        'PORT': '<db_port>'
    }
}
    SENDER_EMAIL = "<sender_email_address>"
    SENDER_EMAIL_PASSWORD = "<sender_email_password>"
    STATIC_URL = "<static url>"
    STATICFILES_DIRS = (os.path.join(BASE_DIR, '<your_static_path>'),)
    STATIC_ROOT = '<path_for_django_statics>'